1) A self contained
block of statements that perform a coherent task of some kind is called a?
a. Monitor
b. Function
c. Program
d. Structure
Answer = B
2) Recursion is
sometimes called ?
a. Circular definition
b. Complex definition
c. Procedure
d. Union
Answer =A
3) The directive that
can be used to test whether an expression evaluates to a nonzero value or not
is ?
a. #if
b. #elif
c. #endif
d. #exit
Answer = A
4) The number of
arguments supplied from the command line, by conversion is known as ?
a. arg c
b. arg v
c. #define
d. #include
Answer = A
5) The expression
X=4+2%-8 evaluates ?
a. -6
b. 6
c. 4
d. None
Answer =B
6) Determine which of
the following is valid character constant ?
a. '//'
b. '\0'
c. 'xyz'
d. '\052'
Answer = A
7) Given the statement
, maruti.engine.bolts=25 . Which of the following is true?
a. Structure bolts is nested within
structure engine
b. Structure engine is nested within structure
maruti
c. Structure maruti is nested within structure
engine
d. Structure maruti nested within structure bolts
Answer =B
8) To access a
structure element using a pointer, ......... operator is used?
a. dot ( . )
b. pointer ( & )
c. pointer ( * )
d. arrow ( -> )
Answer =D
9) The ........
operator is a technique to forcefully convert one data type to the other ?
a. Cast
b. Conversion
c. Type
d. Uniary
Answer = A
10) Which of the
following numerical value is invalid constant ?
a. assignment operator
b. relational operator
c. logical operator
d. bitwise shift operator
Answer = D
0 comments:
Post a Comment