πŸ“Š C++
Q. Which of the following loops is best when we know the number of iterations?
  • (A) While loop
  • (B) Do while
  • (C) For loop
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) For loop
πŸ“Š C++
Q. Identify the scope resolution operator.
  • (A) :
  • (B) ::
  • (C) ?
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (B) ::
πŸ“Š C++
Q. goto can be classified into?
  • (A) label
  • (B) variable
  • (C) operator
  • (D) function
πŸ’¬ Discuss
βœ… Correct Answer: (A) label
πŸ“Š C++
Q. Identify the correct definition of ‘*’ operator in pointer.
  • (A) Address of operator
  • (B) Value of address operator
  • (C) Multiplication operator
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Value of address operator
πŸ“Š C++
Q. By which of the following can the if-else statement be replaced?
  • (A) Bitwise operator
  • (B) Logical operator
  • (C) Conditional operator
  • (D) Arithmetic operator
πŸ’¬ Discuss
βœ… Correct Answer: (C) Conditional operator
πŸ“Š C++
Q. Choose the correct default return value of function.
  • (A) int
  • (B) void
  • (C) char
  • (D) float
πŸ’¬ Discuss
βœ… Correct Answer: (A) int
πŸ“Š C++
Q. Using which of the following data type can 19.54 be represented?
  • (A) void
  • (B) double
  • (C) int
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (B) double
πŸ“Š C++
Q. When can an inline function be expanded?
  • (A) Runtime
  • (B) Compile time
  • (C) Never gets expanded
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Compile time
πŸ“Š C++
Q. Identify the correct function from which the execution of C++ program starts?
  • (A) new()
  • (B) start()
  • (C) pow()
  • (D) main()
πŸ’¬ Discuss
βœ… Correct Answer: (D) main()
πŸ“Š C++
Q. Choose the correct option which is mandatory in a function.
  • (A) return_type
  • (B) parameters
  • (C) function_name
  • (D) Both a and c
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both a and c