C Multiple Choice Questions

  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


  1. What is the right way to access value of structure variable book{ price, page }?
    1. printf("%d%d", book.price, book.page);
    2. printf("%d%d", price.book, page.book);
    3. printf("%d%d", price::book, page::book);
    4. printf("%d%d", price->book, page->book);
Answer :
A
Explanation:
Added By : Mukesh

  1. An array elements are always stored in _________ memory locations.
    1. Sequential
    2. Random
    3. Sequential and Random
    4. None of the above
Answer :
A
Explanation:
Added By : Rohit

Post Your Question
Social Sharing
Search