C Multiple Choice Questions

  1. An array is
    1. Probably the most widely used data structure
    2. a homogeneous structure
    3. a random access structure
    4. All of the above
Answer :
D
Explanation:
Added By : Nistha

  1. The ________ operator is true only when both the operands are true.
    1. or
    2. and
    3. boolean
    4. bitwiseor
Answer :
B
Explanation:


Added By : Shabnam


  1. ________ function is used to move the file position to desired location within the file.
    1. fread
    2. fwrite
    3. fseek
    4. fscanf
Answer :
C
Explanation:
Added By : Praveen

  1. The do...while looping statement
    1. is executed only once if the condition is true.
    2. is also known as entry-controlled loop.
    3. is executed at least once if the condition is false.
    4. is unconditional looping statement..
Answer :
C
Explanation:
Added By : Rachita

  1. Which of these assignments is invalid?
    1. short s = 48;
    2. float f = 4.3;
    3. double d = 4.3;
    4. int I = `1`;
Answer :
D
Explanation:
Added By : Shubham

  1. Which is an invalid name of identifier?
    1. world
    2. addition23
    3. test-name
    4. factorial
Answer :
C
Explanation:
Added By : Rakesh


  1. Which of the following is not an iterative statement?
    1. while
    2. do while
    3. switch
    4. for
Answer :
C
Explanation:
Added By : Anamika

  1. What is the purpose of getc()?
    1. read a character from STDIN
    2. read a character from a file
    3. read all file
    4. read file randomly
Answer :
B
Explanation:
Added By : Bhavesh

Social Sharing
Search