πŸ“Š CPP Programming
Q. Return type of uncaught_exception () is ________________.
  • (A) int
  • (B) bool
  • (C) char *
  • (D) double
πŸ’¬ Discuss
βœ… Correct Answer: (B) bool
πŸ“Š CPP Programming
Q. If inner catch handler is not able to handle the exception then__________.
  • (A) Compiler will look for outer try handler
  • (B) Program terminates abnormally
  • (C) Compiler will check for appropriate catch handler of outer try block
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (C) Compiler will check for appropriate catch handler of outer try block
πŸ“Š CPP Programming
Q. Attempting to throw an exception that is not supported by a function call results in calling _____________ library function.
  • (A) indeterminate ()
  • (B) unutilized()
  • (C) unexpected()
  • (D) unpredicted()
πŸ’¬ Discuss
βœ… Correct Answer: (C) unexpected()
πŸ“Š CPP Programming
Q. The code of statements which may cause abnormal termination of the program should be written under_________ block.
  • (A) Try
  • (B) catch
  • (C) Finally
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (A) Try
πŸ“Š CPP Programming
Q. When a virtual function is redefined by the derived class, it is called___________.
  • (A) Overloading
  • (B) Overriding
  • (C) Rewriting
  • (D) All of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) Overriding
πŸ“Š CPP Programming
Q. While overloading binary operators using member function, it requires ___ argument/s.
  • (A) Zero
  • (B) One
  • (C) Two
  • (D) Three
πŸ’¬ Discuss
βœ… Correct Answer: (B) One
πŸ“Š CPP Programming
Q. Where the default value of parameter have to be specified?
  • (A) Function call
  • (B) Function definition
  • (C) Function prototype
  • (D) Both B or C
πŸ’¬ Discuss
βœ… Correct Answer: (C) Function prototype
πŸ“Š CPP Programming
Q. For automatic objects, constructors and destructors are called each time the objects
  • (A) enter and leave scope
  • (B) inherit parent class
  • (C) are constructed
  • (D) are destroyed
πŸ’¬ Discuss
βœ… Correct Answer: (A) enter and leave scope
πŸ“Š CPP Programming
Q. Which operation is used as Logical 'AND'
  • (A) Operator-&
  • (B) Operator-
  • (C) Operator-&&
  • (D) Operator +
πŸ’¬ Discuss
βœ… Correct Answer: (C) Operator-&&
πŸ“Š CPP Programming
Q. When an ADT is implemented as a C++ class, which of the following should normally be true?
  • (A) Member functions are private, member variables are public
  • (B) Member functions are public, member variables are private
  • (C) Member functions as well as member variables are private
  • (D) Member functions as well as member variables are public
πŸ’¬ Discuss
βœ… Correct Answer: (B) Member functions are public, member variables are private

Jump to