πŸ“Š Object Oriented Programming (OOP)
Q. What is the compilation error for this program?
  • (A) each undeclared identifier is reported only once
  • (B) cout and cin not declared in scope
  • (C) invalid conversion from int to float
  • (D) all of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) cout and cin not declared in scope
πŸ“Š Object Oriented Programming (OOP)
Q. What will be the output of the following program?
  • (A) compilation error: display() cannot be accessed in application
  • (B) compilation error:test class object cannot be accessed in function demo
  • (C) compilation error: variable x is private in test
  • (D) both a and b
πŸ’¬ Discuss
βœ… Correct Answer: (C) compilation error: variable x is private in test

Jump to