Q. Which is the right way to declare constant in C?

  • (A) int constant var =10;
  • (B) int const var = 10;
  • (C) const int var = 10;
  • (D) b & c both
πŸ’¬ Discuss
βœ… Correct Answer: (D) b & c both

Q. Which operators are known as Ternary Operator?

  • (A) ::, ?
  • (B) ?, :
  • (C) ?, ;;
  • (D) none of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) ?, :

Q. In switch statement, each case instance value must be _______?

  • (A) constant
  • (B) variable
  • (C) special symbo
  • (D) none of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) constant

Q. What is the work of break keyword?

  • (A) halt execution of program
  • (B) restart execution of program
  • (C) exit from loop or switch statement
  • (D) none of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) exit from loop or switch statement

Q. What is function?

  • (A) function is a block of statements that perform some specific task.
  • (B) function is the fundamental modular unit. a function is usually designed to perform a specific task.
  • (C) function is a block of code that performs a specific task. it has a name and it is reusable
  • (D) all the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) all the above

Q. Which one of the following sentences is true ?

  • (A) the body of a while loop is executed at least once.
  • (B) the body of a do ... while loop is executed at least once.
  • (C) the body of a do ... while loop is executed zero or more times.
  • (D) a for loop can never be used in place of a while loop.
πŸ’¬ Discuss
βœ… Correct Answer: (B) the body of a do ... while loop is executed at least once.

Q. A binary tree with 27 nodes has _______ null branches.

  • (A) 54
  • (B) 27
  • (C) 26
  • (D) none of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) none of the above

Q. Which one of the following is not a linear data structure?

  • (A) array
  • (B) binary tree
  • (C) queue
  • (D) stack
πŸ’¬ Discuss
βœ… Correct Answer: (B) binary tree

Q. Recursive functions are executed in a?

  • (A) first in first out order
  • (B) load balancing
  • (C) parallel fashion
  • (D) last in first out order
πŸ’¬ Discuss
βœ… Correct Answer: (D) last in first out order

Q. Queue is a _____________ list.

  • (A) lifo
  • (B) lilo
  • (C) filo
  • (D) fifo
πŸ’¬ Discuss
βœ… Correct Answer: (D) fifo