C Multiple Choice Questions

  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

  1. What is right way to Initialization array?
    1. int num[6] = { 2, 4, 12, 5, 45, 5 } ;
    2. int n{} = { 2, 4, 12, 5, 45, 5 } ;
    3. int n{6} = { 2, 4, 12 } ;
    4. int n(6) = { 2, 4, 12, 5, 45, 5 } ;
Answer :
A
Explanation:
Added By : Rohit


  1. What is an array?
    1. An array is a collection of variables that are of the dissimilar data type.
    2. An array is a collection of variables that are of the same data type.
    3. An array is not a collection of variables that are of the same data type.
    4. None of the above.
Answer :
B
Explanation:
Added By : Rohit

  1. Which of the following shows the correct hierarchy of arithmetic operations in C
    1. / + * -
    2. * - / +
    3. + - / *
    4. * / + -
Answer :
D
Explanation:
Added By : Nitin Goyal

Social Sharing
Search