C Multiple Choice Questions

  1. Which of the following is a Compound assignment operators?
    1. +=
    2. *=
    3. /=
    4. All the above
Answer :
D
Explanation:
Added By : Srinivas

  1. What will be the output of 5.0 / 2?
    1. 2
    2. 3
    3. 0
    4. 2.5
Answer :
D
Explanation:
An operation between an integer and real always yields a real result. In this operation the integer is first promoted to a real and then the operation is performed.
Added By : Arya Bansal


  1. What is %f, %d, %s and %c?
    1. Number Specifier
    2. Format Specifier
    3. Access Specifier
    4. None of the above
Answer :
B
Explanation:
Added By : Arya Bansal

  1. Which of the following is correct set of keywords?
    1. unsigned, external, typedef, signed
    2. unsigned, volatile, typedef, every
    3. unsigned, volatile, typedef, sizeof
    4. None of the above
Answer :
C
Explanation:
Added By : Arya Bansal

  1. The keywords are also called
    1. Safe words
    2. Static words
    3. Reserved words
    4. Reused words
Answer :
C
Explanation:
Added By : Arya Bansal

  1. Every C Program must have one function called?
    1. switch()
    2. main()
    3. struct()
    4. for()
Answer :
B
Explanation:
Added By : Satyam Parkash


  1. Which is the correct syntax to declare constant pointer?
    1. int *const constPtr;
    2. *int constant constPtr;
    3. const int *constPtr;
    4. A and C both
Answer :
D
Explanation:
Added By : Rajput Naresh

  1. In which linked list last node address is null?
    1. Doubly linked list
    2. Circular list
    3. Singly linked list
    4. None of the above
Answer :
C
Explanation:
Added By : Rahul Kumar

Social Sharing
Search