C Multiple Choice Questions

  1. In switch statement, each case instance value must be _______?
    1. Constant
    2. Variable
    3. Special Symbol
    4. None of the avobe
Answer :
A
Explanation:
Added By : Abhijit Kumar

  1. Which operators are known as Ternary Operator?
    1. ::, ?
    2. ?, :
    3. ?, ;;
    4. None of the avobe
Answer :
B
Explanation:
Added By : Abhijit Kumar


  1. Which is the right way to declare constant in C?
    1. int constant var =10;
    2. int const var = 10;
    3. const int var = 10;
    4. B & C Both
Answer :
D
Explanation:
Added By : Abhijit Kumar

  1. What is constant?
    1. Constants have fixed values that do not change during the execution of a program
    2. Constants have fixed values that change during the execution of a program
    3. Constants have unknown values that may be change during the execution of a program
    4. None of the above
Answer :
A
Explanation:
Added By : Abhijit Kumar

  1. What is Keywords?
    1. Keywords have some predefine meanings and these meanings can be changed.
    2. Keywords have some unknown meanings and these meanings cannot be changed.
    3. Keywords have some predefine meanings and these meanings cannot be changed.
    4. None of the above
Answer :
C
Explanation:
Added By : Abhijit Kumar

  1. What is C Tokens?
    1. The smallest individual units of c program
    2. The basic element recognized by the compiler
    3. The largest individual units of program
    4. A & B Both
Answer :
D
Explanation:
Added By : Abhijit Kumar


  1. Bitwise operators can operate upon?
    1. double and chars
    2. floats and doubles
    3. ints and floats
    4. ints and chars
Answer :
D
Explanation:
Added By : Mukesh

  1. perror( ) function used to ?
    1. Work same as printf()
    2. prints the error message specified by the compiler
    3. prints the garbage value assigned by the compiler
    4. None of the above
Answer :
B
Explanation:
Added By : Mukesh

Post Your Question
Social Sharing
Search