πŸ“Š C Programming
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
πŸ“Š C Programming
Q. Which operators are known as Ternary Operator?
  • (A) ::, ?
  • (B) ?, :
  • (C) ?, ;;
  • (D) none of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) ?, :
πŸ“Š C Programming
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
πŸ“Š C Programming
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
πŸ“Š C Programming
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
πŸ“Š C Programming
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.
πŸ“Š C Programming
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
πŸ“Š C Programming
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
πŸ“Š C Programming
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