C Multiple Choice Questions

  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

  1. Which data structure type is NOT linear from the following?
    1. Doubly Link List
    2. 2D Array
    3. Binary Search Tree
    4. Queue
Answer :
C
Explanation:
Added By : Jayesh


  1. Which of the following sorting algorithms does NOT have a worst-case running time of O(n2)?
    1. Insertion sort
    2. Merge sort
    3. Quicksort
    4. Bubble sort
Answer :
B
Explanation:
Added By : Aditya

  1. How many times is a do while loop guaranteed to loop?
    1. 0
    2. Variable
    3. 1
    4. Infinitely
Answer :
C
Explanation:
Added By : Yogendra

Post Your Question
Social Sharing
Search