Explore topic-wise MCQs in General Awareness.

This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your General Awareness knowledge and support exam preparation. Choose a topic below to get started.

1.

Which concept allows you to reuse the written code in C++?

A. Inheritance
B. Polymorphism
C. Abstraction
D. Encapsulation
Answer» B. Polymorphism
2.

What is abstract class in C++?

A. Any Class in C++ is an abstract class
B. Class from which any class is derived
C. Class specifically used as a base class with atleast one virtual functions
D. Class specifically used as a base class with atleast one pure virtual functions
Answer» E.
3.

What is meant by a polymorphism in C++?

A. class having only single form
B. class having four forms
C. class having many forms
D. class having two forms
Answer» D. class having two forms
4.

Which of the following symbol is used to declare the preprocessor directives in C++?

A. $
B. ^
C. c)
D. #d) *
Answer» D. #d) *
5.

Which of the following is used to terminate the function declaration in C++?

A. ;
B. ]
C. )
D. :
Answer» B. ]
6.

Which is more effective while calling the C++ functions?

A. call by object
B. call by pointer
C. call by value
D. call by reference
Answer» E.
7.

What is virtual inheritance in C++?

A. C++ technique to enhance multiple inheritance
B. C++ technique to ensure that a private member of the base class can be accessed somehow
C. C++ technique to avoid multiple inheritances of classes
D. C++ technique to avoid multiple copies of the base class into children/derived class
Answer» E.
8.

Which of the following is not a type of Constructor in C++?

A. Default constructor
B. Parameterized constructor
C. Copy constructor
D. Friend constructor
Answer» E.
9.

Which of the following user-defined header file extension used in c++?

A. hg
B. cpp
C. h
D. hf
Answer» D. hf
10.

What is C++?

A. C++ is an object oriented programming language
B. C++ is a procedural programming language
C. C++ supports both procedural and object oriented programming language
D. C++ is a functional programming language
Answer» D. C++ is a functional programming language