C Multiple Choice Questions

  1. Which of the following has compilation error in C?
    1. int n = 32;
    2. char ch = 65;
    3. float f = (float) 3.2;
    4. None of the above
Answer :
D
Explanation:
Added By : Naresh

  1. What is default storage class of variables in C language?
    1. extern
    2. local
    3. auto
    4. global
Answer :
C
Explanation:
Added By : Sandip Walunj


  1. Representation of data structure in memory is known as
    1. Recursive
    2. Abstract data type
    3. Storage structure
    4. File structure
Answer :
B
Explanation:
Added By : Kiran Kumar

  1. Which of the following search algorithm requires a sorted array?
    1. Linear search
    2. Hash search
    3. Binary search
    4. All of these
Answer :
C
Explanation:
Added By : Kiran Kumar

  1. The largest element of an array index is called its
    1. Lower bound
    2. Upper bound
    3. Range
    4. All of the above
Answer :
B
Explanation:
Added By : Kiran Kumar

  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

Post Your Question
Social Sharing
Search