C Multiple Choice Questions

  1. Every C statement must end with a ___?
    1. , (Comma)
    2. ; (Semicolon)
    3. : (Colon)
    4. ? (Question Mark)
Answer :
B
Explanation:
Added By : Shobhit


  1. Which of the following is valid commenting style in C?
    1. /* comment */
    2. // comment
    3. /* Comment line 1 <br> Comment line 2 */
    4. All of the above
Answer :
D
Explanation:
Added By : Sandhya

  1. Which of the following is an invalid form of comment in C?
    1. /* formula */ a = a + b;
    2. a = a + /* formula */ b;
    3. /* Calculating /* Age of person */ */
    4. All are valid
Answer :
C
Explanation:
Added By : Sandhya


  1. C is a_________?
    1. Machine Level Programming Language
    2. Assembly Level Programming Language
    3. High Level Programming Language
    4. Low Level Programming Language
Answer :
C
Explanation:
Added By : Prashant

  1. Constant is an entity _______?
    1. that sometime change
    2. that may change
    3. that does not change
    4. that carries special meaning
Answer :
C
Explanation:
Added By : Shyam

  1. What is/are the major types of C Constant?
    1. Primary Constant
    2. Secondary Constant
    3. Both option (A) and (B)
    4. None of the above
Answer :
B
Explanation:
Added By : Prashant


  1. Select best option to consturct Integer Constant
    1. An integer constant must have at least one digit that can be either positive or negative
    2. Must not have a decimal point
    3. No comma or blank allowed within integer constant
    4. All of the above
Answer :
D
Explanation:
Added By : Varun

  1. Which of the following is NOT a valid Integer Constant?
    1. 3
    2. +343
    3. -765
    4. 10,000
Answer :
D
Explanation:
Added By : Varun

Post Your Question
Social Sharing
Search