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

C++ Programming

Cpp Programming Quiz 58 – Which of the following statement is correct?

August 16, 2022July 25, 2022 by admin
Question: Which of the following statement is correct?
[A]. C++ allows static type checking.
[B]. C++ allows dynamic type checking.[C]. C++ allows static member function be of type const.
[D]. Both A and B.

Answer: Option D

Categories Cpp Programming, OOPs Concepts Tags C++ Programming

Cpp Programming Quiz 59 – Which of the following concepts provides facility of using object of one class inside another class?

August 16, 2022July 25, 2022 by admin
Question: Which of the following concepts provides facility of using object of one class inside another class?
[A]. Encapsulation
[B]. Abstraction[C]. Composition
[D]. Inheritance

Answer: Option C

Categories Cpp Programming, OOPs Concepts Tags C++ Programming

Cpp Programming Quiz 60 – Which of the following is used to make an abstract class?

August 16, 2022July 25, 2022 by admin
Question: Which of the following is used to make an abstract class?
[A]. Declaring it abstract using static keyword.
[B]. Declaring it abstract using virtual keyword.[C]. Making at least one member function as virtual function.
[D]. Making at least one member function as pure virtual function.

Answer: Option D

Categories Cpp Programming, OOPs Concepts Tags C++ Programming

Cpp Programming Quiz 61 – Which of the following concepts means determining at runtime what method to invoke?

August 16, 2022July 25, 2022 by admin
Question: Which of the following concepts means determining at runtime what method to invoke?
[A]. Data hiding
[B]. Dynamic Typing[C]. Dynamic binding
[D]. Dynamic loading

Answer: Option C

Categories Cpp Programming, OOPs Concepts Tags C++ Programming

Cpp Programming Quiz 62 – Why reference is not same as a pointer?

August 16, 2022July 25, 2022 by admin
Question: Why reference is not same as a pointer?
[A]. A reference can never be null.
[B]. A reference once established cannot be changed.[C]. Reference doesn’t need an explicit dereferencing mechanism.
[D]. All of the above.

Answer: Option D

Categories Cpp Programming, OOPs Concepts Tags C++ Programming

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
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 … Page28 Next →
© 2025 AnsweringExams.Com • Built with GeneratePress