πŸ“Š CPP Programming
Q. Variable that are listed in function's calls are called
  • (A) Actual parameter
  • (B) Declared parameter
  • (C) Passed parameter
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (B) Declared parameter
πŸ“Š CPP Programming
Q. What kind of error can arise when there is a problem with memory?
  • (A) Segmentation fault
  • (B) Produce an error
  • (C) Both Segmentation fault & Produce an error
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) Segmentation fault
πŸ“Š CPP Programming
Q. Which operations don’t throw anything?
  • (A) Operations which are reversible
  • (B) Operations which are irreversible
  • (C) Operations which are static
  • (D) Operations which are dynamic
πŸ’¬ Discuss
βœ… Correct Answer: (B) Operations which are irreversible
πŸ“Š CPP Programming
Q. What operation can be performed by destructor?
  • (A) Abort the program
  • (B) Resource cleanup
  • (C) Exit from the current block
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) Resource cleanup
πŸ“Š CPP Programming
Q. Which interface in the container is required for storage management?
  • (A) Memory management
  • (B) Allocator interface
  • (C) Memory interface
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) Allocator interface
πŸ“Š CPP Programming
Q. How can the member functions in the container be accessed?
  • (A) Iterator
  • (B) Indirect
  • (C) Both Iterator & Indirect
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) Iterator
πŸ“Š CPP Programming
Q. In which type of storage location are the vector members stored?
  • (A) Contiguous storage locations
  • (B) Non-contiguous storage locations
  • (C) Contiguous & Non-contiguous storage locations
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) Contiguous storage locations
πŸ“Š CPP Programming
Q. What do container adapter provide to interface?
  • (A) Restricted interface
  • (B) More interface
  • (C) No interface
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (A) Restricted interface
πŸ“Š CPP Programming
Q. What does the sequence adaptor provide?
  • (A) Insertion
  • (B) Deletion
  • (C) Interface to sequence container
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (C) Interface to sequence container
πŸ“Š CPP Programming
Q. Which operators is part of RTTI?
  • (A) dynamic_cast()
  • (B) typeid
  • (C) Both dynamic_cast() & typeid
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both dynamic_cast() & typeid

Jump to