A function can return
1.Two values
2.No value
3. Only one value
4.Many values
A library files that come with C are
1.Program examples
2. Files that contain function which carry out various commonly used operations and calculations
3.The compiler and liner
4.Text editor for program development
A single character input from the keyboard can be obtained by using the function
1. Scan f( )
2.Put char( )
3.Get char( )
4.Print f( )
A variable is an algebraic expression that temporarily assumes the properties of a constant is called
1.Function
2.Dummy parameter
3.Parameter
4.Operator
A variable that holds the memory address of another object is called
1. Memory variable
2.Constant
3.Pointer
4.Integer
allows the user to use
1.One-dimensional array
2.Two-dimensional array
3.Three dimensional array
4.Multi dimensional arrays
An error in the program is called
1.A function
2.A bug
3.A variable
4.An error only
An expression
1. is a name that substitutes for a sequence of characters
2. causes the computer to carry out some action
3.is a collection of data objects and operations that can be evaluated to a single value
4.all of these
An identifier in C
1.can obtain both upper case and lower case
2.is made up of letters numerals and the underscore
3. is a name of thing such as variable and function
4.all of these
An unary operator! Represents
1.Unary minus
2.Logical not operator
3.Decrement operator
4.Increment operator
An unary operator! Represents
1.Unary minus
2.Logical not operator
3.Decrement operator
4.Increment operator
By default, any real number in ‘C’ is treated as
1.depends upon memory model that you are using
2.a long double
3.a double
4.a float
By pressing ___ key, the user can exit the turbo C environment.
1. Ctrl + X
2.Alt + X
3.Ctrl + A
4.Enter
By using ____ the speed of the process can be increased.
1.Integer
2.Unsigned integer
3.Short integer
4. Long integer
C contains which of the following two special pointer operators?
1.% and &
2.& and &&
3.*and &&
4.* and &
Each block of a C program is referred as
1.Integer
2.Event
3.Variables
4.Function
Each element in a structure has a
1.Unique variable
2.Unique name
3.Name
4.Space
Enumeration is a
1. Set of legal values possible for a variable
2. List of operators
3. List of strings
4.Set of numbers
For two-dimensional arrays data are usually entered
1.Array wise
2.Element wise
3.Row-wise
4.Column-wise
In C, square brackets [ ] are used in
1.Statements
2.Functions
3.Arrays
4.Pointer
In do-while structure, the condition is checked at ___
1. the beginning of the loop
2.the end of the loop only
3.the centre of the loop
4. any statement of the loop
In programming, repeating some code is usually called ___
1.Looping
2.Compiling
3.Structure
4.Control structure
In the for loop structure, the clauses namely ___ are optional.
1.Assign and logic
2.Assign and alter
3.Logic and alter
4.Assign, logic and alter
In which header file are the library functions used for I/O purpose kept?
1.stdio.h
2.math.h
3. stdio.h or math.h
4.none of these
In which of the following it is convenient to group related data items as one entry?
1.Array
2.Matrix
3.Token
4.Determinant
Almost every C program begins with the statement
1.# include <stdio.h>
2.Print f( )
3.SCAN( )
4.Main( )
Keywords cannot be used as ____
1.Variables
2.Variables or constant names
3.Constant names
4.None of the above
Main( ) is an example of
1.Header
2.Statement
3.User defined function
4. Library function
Ready made library functions are used for
1.Output
2.Input
3. Neither input nor output
4. Input and output
Running any C program involves
1.Creating/ editing
2.Compiling and linking
3.Executing
4.All the above steps
Subscripted variable is any type such as
1.Int
2.Float
3.Int, float or char
4.Char
The break statement is used to exit from a
1.Do loop
2.For loop
3.Switch statement
4.All of these
The first character of the variable name
1.May be a number
2.Must be an alphabet
3.Must be an underscore
4.Must be an alphabet or underscore
The functions scan f( ) reads
1.any possible variable type
2.any possible number
3.character strings
4. a single character
The functions that are defined according to our requirements are called ____
1.Good functions
2.Modules
3.User defined functions
4.Library functions
The general form of do while statements is
1.Do while expression
2. Do statement while (expression);
3.Do statement while statement
4.Do expression while statement
The general form of the condition expression is
1. Expression ? expression 2 : expression 3
2.Expression 3? Expression 2: expression 1
3.Expression 2? expression 3? Expression 1
4.None of these
The header file `setjmp.h’ can be used for providing
1.Character type identification and translation
2. Support for string handling functions
3.Diagnostic and debugging assistance
4.Links to assembly language for calls
The math library is set up for the user by the file
1.Time .h
2.Math .h
3.Limits .h
4.Float .h
The maximum length of the variable is ___ characters.
1.22
2.32
3.52
4.62
The method in which a problem has been divided into many smaller problems is called ___
1.Problem approach
2.Top Down approach
3.New approach
4.None of these
The method of checking the pseudo codes is called ___
1.Sequencing
2.Walk through
3.Branching
4.Iteration
The most common use of the one dimensional array in C is
1.Function
2.Data
3.Character
4.String
The most popular loop for array manipulation is the ___ loop.
1.for
2.while
3.do while
4.any
The operator << and >> are
1.Assignment operators
2.Bitwise logical operators
3.Logical operators
4.Relational operators
The single character input/output functions are
1.scan f ( ) and print f ( )
2.get char ( ) and print f ( )
3.scan f ( ) and put char ( )
4.get char ( ) and put char ( )
The two operators && and || are
1.Relational operators
2. Equality operators
3.Arithmetic operators
4. Logical operators
The __ is a program that links the object code of the program with the library function code that is necessary for the program to run.
1.C linker
2.Compiler
3.C compiler
4.Editing
When one loop is constructed within another loop it is called a
1.For loop
2.Do loop
3.Do-while loop
4.Nested loop
Whenever a C program is executed, execution starts from
1.Scanf function
2. Void function
3.Any function
4. Main function
Which header file should be included if it is required to develop a function that can accept variable number of arguments?
1.Stdarg.h
2.Stdio.h
3.Stdlib.h
4.Vardar.h
Which is not necessary when using bar codes in supermarkets?
1.Price on the shelf
2.Price on the goods
3.Point-of sale (POS) terminal
4.Check digit on the bar code
Which language makes use of object oriented approach?
1.C
2.C++
3.Java
4.C++ and Java
Which of the following are called white space characters?
1.The blank space
2.New line character
3.Blank space & new line character
4.None of the above
Which of the following is a storage class specification in C?
1.static
2.automatic
3.external
4.all of these
Which of the following is an intermediate language?
1.Pseudo code
2.Basic
3.FORTRAN
4.Computer language
Which of the following operators in ‘C’ programming language takes only integer operands?
1.+
2.*
3./
4.%
Which of the following statement is used to skip a part of the loop?
1.Break
2.Continue
3.Both
4. None of the above
Which of the following statements is correct?
1.Provides no features to manipulate composite objects
2.C provides no file access features
3.C provides no input-output features
4. All of these
Which one of the following indicates the solution method?
1.Algorithm
2.Program
3. Flow chart
4.All the above
_ are declared within the body of a function.
1.Variables
2. Local variables
3.Main functions
4.Arrays
_ groups a number of program statements into a single unit.
1.Array
2.Structure
3.Variable
4.Function
_ is an effective tool for programming scientific, mathematical and engineering computations.
1.Parameter
2. Main function
3.Recursion
4.Local variable
_ is in between English and the high level computer language.
1.Mnemonic code
2.Binary code
3.Pseudo code
4.Flow chart
__ have no meaning outside the body of a function.
1.Variables
2.Main functions
3.Global variables
4. Local variables