Skip to content
AnsweringExams.Com
  • Home
  • Contact Us / Report Error
  • Disclaimer

OOPs Concepts

Cpp Programming Quiz 63 – Which of the following is a mechanism of static polymorphism?

August 16, 2022July 25, 2022 by admin
Question: Which of the following is a mechanism of static polymorphism?
[A]. Operator overloading
[B]. Function overloading[C]. Templates
[D]. All of the above

Answer: Option D

Categories Cpp Programming, OOPs Concepts Tags C++ Programming

Cpp Programming Quiz 64 – Which of the following correctly describes overloading of functions?

August 16, 2022July 25, 2022 by admin
Question: Which of the following correctly describes overloading of functions?
[A]. Virtual polymorphism
[B]. Transient polymorphism[C]. Ad-hoc polymorphism
[D]. Pseudo polymorphism

Answer: Option C

Categories Cpp Programming, OOPs Concepts Tags C++ Programming

Cpp Programming Quiz 65 – How “Late binding” is implemented in C++?

August 16, 2022July 25, 2022 by admin
Question: How “Late binding” is implemented in C++?
[A]. Using C++ tables
[B]. Using Virtual tables[C]. Using Indexed virtual tables
[D]. Using polymorphic tables

Answer: Option B

Categories Cpp Programming, OOPs Concepts Tags C++ Programming

Cpp Programming 66 – Which of the following functions are performed by a constructor?

August 16, 2022July 25, 2022 by admin
Question: Which of the following functions are performed by a constructor?
[A]. Construct a new class
[B]. Construct a new object[C]. Construct a new function
[D]. Initialize objects

Answer: Option D

Categories Cpp Programming, OOPs Concepts Tags C++ Programming

Cpp Programming 67 – How many types of polymorphisms are supported by C++?

August 16, 2022July 25, 2022 by admin
Question: How many types of polymorphisms are supported by C++?
[A]. 1
[B]. 2[C]. 3
[D]. 4

Answer: Option B

Explanation:

The two main types of polymorphism are run-time (implemented as inheritance and virtual functions), and compile-time (implemented as templates).

Categories Cpp Programming, OOPs Concepts Tags C++ Programming

Cpp Programming 68 – Which of the following is correct about the statements given below?

August 16, 2022July 25, 2022 by admin
Question: Which of the following is correct about the statements given below?

[A]. Only I is true.
[B]. Both I and II are false.[C]. Only II is true.
[D]. Both I and II are true.

Answer: Option B

Categories Cpp Programming, OOPs Concepts Tags C++ Programming

Cpp Programming 69 – Which of the following is correct about function overloading?

August 16, 2022July 25, 2022 by admin
Question: Which of the following is correct about function overloading?
[A]. The types of arguments are different.
[B]. The order of argument is different.[C]. The number of argument is same.
[D]. Both A and B.

Answer: Option D

Categories Cpp Programming, OOPs Concepts Tags C++ Programming

Cpp Programming 70 – Which one of the following is the correct way to declare a pure virtual function?

August 16, 2022July 25, 2022 by admin
Question: Which one of the following is the correct way to declare a pure virtual function?
[A]. virtual void Display(void){0};
[B]. virtual void Display = 0;[C]. virtual void Display(void) = 0;
[D]. void Display(void) = 0;

Answer: Option C

Categories Cpp Programming, OOPs Concepts Tags C++ Programming

Cpp Programming 71 – Which of the following cannot be friend?

August 16, 2022July 25, 2022 by admin
Question: Which of the following cannot be friend?
[A]. Function
[B]. Class[C]. Object
[D]. Operator function

Answer: Option C

Categories Cpp Programming, OOPs Concepts Tags C++ Programming

Cpp Programming 72 – Which of the following are available only in the class hierarchy chain?

August 16, 2022July 25, 2022 by admin
Question: Which of the following are available only in the class hierarchy chain?
[A]. Public data members
[B]. Private data members[C]. Protected data members
[D]. Member functions

Answer: Option C

Categories Cpp Programming, OOPs Concepts Tags C++ Programming
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 … Page6 Next →
© 2025 AnsweringExams.Com • Built with GeneratePress