C Multiple Choice Questions

  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


  1. Which of the following is allowed in a C Arithmetic instruction
    1. []
    2. {}
    3. ()
    4. None of the above
Answer :
C
Explanation:
Added By : Nitin Goyal

  1. A C variable cannot start with
    1. An alphabet
    2. A number
    3. A special symbol other than underscore
    4. both (b) and (c)
Answer :
D
Explanation:
Added By : Nitin Goyal

  1. C programs are converted into machine language with the help of
    1. An Editor
    2. A compiler
    3. An operating system
    4. None of the above
Answer :
B
Explanation:
A compiler is a system software that converts high level language into machine level language.
Added By : Nitin Goyal


  1. For 16-bit compiler allowable range for integer constants is ______ ?
    1. -3.4e38 to 3.4e38
    2. -32767 to 32768
    3. -32768 to 32767
    4. -32668 to 32667
Answer :
C
Explanation:
Added By : Nitin Goyal

  1. C Language developed at _____?
    1. AT & T's Bell Laboratories of USA in 1972
    2. AT & T's Bell Laboratories of USA in 1970
    3. Sun Microsystems in 1973
    4. Cambridge University in 1972
Answer :
A
Explanation:
Added By : Nitin Goyal

Post Your Question
Social Sharing
Search