Cpp Programming Quiz 45 – Which of the following is correct about class and structure?

Question: Which of the following is correct about class and structure?
[A]. class can have member functions while structure cannot.
[B]. class data members are public by default while that of structure are private.[C]. Pointer to structure or classes cannot be declared.
[D]. class data members are private by default while that of structure are public by default.

Answer: Option D

Cpp Programming Quiz 51 – Which one of the following is correct about the statements given below?

Question: Which one of the following is correct about the statements given below?
  1. All function calls are resolved at compile-time in Procedure Oriented Programming.
  2. All function calls are resolved at compile-time in OOPS.

[A]. Only II is correct.
[B]. Both I and II are correct.[C]. Only I is correct.
[D]. Both I and II are incorrect.

Answer: Option C