C Multiple Choice Questions

  1. The statement print f ("%d", 10 ? 0 ? 5 : 1 : 12); will print?
    1. 10
    2. 0
    3. 12
    4. 1
Answer :
D
Explanation:
Added By : Sumit

  1. Queue is a _____________ list.
    1. LIFO
    2. LILO
    3. FILO
    4. FIFO
Answer :
D
Explanation:
Added By : Saurabh


  1. Recursive functions are executed in a?
    1. First In First Out Order
    2. Load Balancing
    3. Parallel Fashion
    4. Last In First Out Order
Answer :
D
Explanation:
Added By : Saurabh

  1. Which one of the following is not a linear data structure?
    1. Array
    2. Binary Tree
    3. Queue
    4. Stack
Answer :
B
Explanation:
Added By : Saurabh

  1. A binary tree with 27 nodes has _______ null branches.
    1. 54
    2. 27
    3. 26
    4. None of the above
Answer :
D
Explanation:
Binary tree with n nodes has n+1 null branches. Answer is 28 null branches.
Added By : Ankit

  1. Which one of the following sentences is true ?
    1. The body of a while loop is executed at least once.
    2. The body of a do ... while loop is executed at least once.
    3. The body of a do ... while loop is executed zero or more times.
    4. A for loop can never be used in place of a while loop.
Answer :
B
Explanation:
Added By : Ankit


  1. What is function?
    1. Function is a block of statements that perform some specific task.
    2. Function is the fundamental modular unit. A function is usually designed to perform a specific task.
    3. Function is a block of code that performs a specific task. It has a name and it is reusable
    4. All the above
Answer :
D
Explanation:
Added By : Abhijit Kumar

  1. What is the work of break keyword?
    1. Halt execution of program
    2. Restart execution of program
    3. Exit from loop or switch statement
    4. None of the avobe
Answer :
C
Explanation:
Added By : Abhijit Kumar

Post Your Question
Social Sharing
Search