C Language MCQ - Online Programming Quiz

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


Do You Like This? Please take 5 seconds to share with your firends.

1 comments:

Unknown said...

best practice

Post a Comment