C Multiple Choice Questions

  1. Which of the following is a valid Integer Constant?
    1. 35,75
    2. 3 455
    3. +3333
    4. *56
Answer :
C
Explanation:
Added By : Shrutika


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

  1. Which of the following is NOT a valid Real Constant?
    1. +345.23
    2. 45 22.22
    3. 0.000564
    4. -3.2
Answer :
B
Explanation:
Added By : Shrutika


  1. Select valid option for 8.3e20 exponential real constant.
    1. 8.3 is exponential and 20 is mantissa
    2. 8.3 is mantissa and 20 is exponential
    3. 8.3 and 20 are mantissa
    4. 8.3 and 20 are exponential
Answer :
B
Explanation:
Added By : Shubhi

  1. Select best option to consturct Character Constant
    1. A Character constant is a single alphabet, a single digit or a single special symbol
    2. Must be enclosed within single inverted commas.
    3. Both option (A) and (B)
    4. None of the above
Answer :
C
Explanation:
Added By : Sailesh

  1. Which of the following is NOT a valid Character Constant?
    1. ’P’
    2. ’2’
    3. ’PQ’
    4. ’#’
Answer :
C
Explanation:
Added By : Sandhya


  1. The best data structure to check whether an arithmetic expression has balanced parenthesis is a
    1. Queue
    2. Stack
    3. Tree
    4. List
Answer :
B
Explanation:
Added By : Rajesh

  1. Which of the following data structures is useful in traversing a given graph by Depth first search(DFS)?
    1. Stack
    2. Queue
    3. List
    4. None of the above
Answer :
A
Explanation:
Added By : Jaipal

Post Your Question
Social Sharing
Search