πŸ“Š Object Oriented Programming (OOP)
Q. Overloaded functions
  • (A) are a group of functions with the same name.
  • (B) all have the same number and types of arguments.
  • (C) make life simpler for programmers.
  • (D) a and c
πŸ’¬ Discuss
βœ… Correct Answer: (D) a and c
πŸ“Š Object Oriented Programming (OOP)
Q. A static local variable is used to
  • (A) make a variable visible to several functions.
  • (B) make a variable visible to only one function.
  • (C) retain a value when a function is not executing.
  • (D) b and c
πŸ’¬ Discuss
βœ… Correct Answer: (D) b and c
πŸ“Š Object Oriented Programming (OOP)
Q. When an array name is passed to a function, the function
  • (A) accesses exactly the same array as the calling program.
  • (B) refers to the array using a different name than that used by the calling program.
  • (C) refers to the array using the same name as that used by the calling program.
  • (D) a and b
πŸ’¬ Discuss
βœ… Correct Answer: (D) a and b
πŸ“Š Object Oriented Programming (OOP)
Q. You can read input that consists of multiple lines of text using
  • (A) the normal cout <<combination.
  • (B) the cin.get() function with one argument.
  • (C) the cin.get() function with two arguments.
  • (D) the cin.get() function with three arguments.
πŸ’¬ Discuss
βœ… Correct Answer: (D) the cin.get() function with three arguments.
πŸ“Š Object Oriented Programming (OOP)
Q. Objects of the string class
  • (A) are zero-terminated.
  • (B) can be copied with the assignment operator.
  • (C) do not require memory management.
  • (D) both b and c
πŸ’¬ Discuss
βœ… Correct Answer: (D) both b and c

Jump to