C/C MCQ Quiz Hub

C Questions and Answers – OOPs Basic Concepts

Choose a topic to test your knowledge and improve your C/C skills

Which was the first purely object oriented programming language developed?





✅ Correct Answer: 3

Which of the following best defines a class?





✅ Correct Answer: 3

Who invented OOP?





✅ Correct Answer: 1

What is the additional feature in classes that was not in structures?





✅ Correct Answer: 2

Which is not feature of OOP in general definitions?





✅ Correct Answer: 3

Which Feature of OOP illustrated the code reusability?





✅ Correct Answer: 4

Which language does not support all 4 types of inheritance?





✅ Correct Answer: 2

How many classes can be defined in a single program?





✅ Correct Answer: 4

When OOP concept did first came into picture?





✅ Correct Answer: 1

Why Java is Partially OOP language?





✅ Correct Answer: 1

Which concept of OOP is false for C++?





✅ Correct Answer: 2

Which header file is required in C++ to use OOP?





✅ Correct Answer: 4

Which of the two features match each other?





✅ Correct Answer: 3

Which feature allows open recursion among the following?





✅ Correct Answer: 1

Which of the following is not type of class?





✅ Correct Answer: 3

Class is pass by _______





✅ Correct Answer: 2

What is default access specifier for data members or member functions declared within a class without any specifier in C++?





✅ Correct Answer: 1

Which is known as a generic class? )





✅ Correct Answer: 3

Size of a class is _____________





✅ Correct Answer: 4

Which class can have member functions without their implementation?





✅ Correct Answer: 4

Which of the following describes a friend class?





✅ Correct Answer: 1

What is the scope of a class nested inside another class?





✅ Correct Answer: 4

Which among the following is false for a member function of a class?





✅ Correct Answer: 3

Which syntax for class definition is wrong?





✅ Correct Answer: 2

Which of the following pairs are similar?





✅ Correct Answer: 2

Which among the following is false for class features?





✅ Correct Answer: 2

Instance of which type of class can t be created?





✅ Correct Answer: 4

Which definition best describes an object?





✅ Correct Answer: 1

How many objects can be declared of a specific class in a single program?





✅ Correct Answer: 4

Which among the following is false?





✅ Correct Answer: 3

Which of the following is incorrect?





✅ Correct Answer: 3

The object can t be __________





✅ Correct Answer: 4

What is size of the object of following class (64 bit system)? class student { int rollno char name[20] static int studentno }





✅ Correct Answer: 3

How members of an object are accessed?





✅ Correct Answer: 1

If a local class is defined in a function which of the following is true for an object of that class?





✅ Correct Answer: 4

Which among the following is wrong?





✅ Correct Answer: 2

Object declared in main() function _____________





✅ Correct Answer: 3

When an object is returned___________





✅ Correct Answer: 1

Which among the following is correct?





✅ Correct Answer: 3

Which among following is correct for initializing the class below? class student{ int marks int cgpa public: student(int i int j){ marks=I cgpa=j } }





✅ Correct Answer: 2