(A) To define a data member
(B) To define an object
(C) To link the definition of an identifier to its declaration
(D) All of the above
Category: Object Oriented Programming Mcqs
Object Oriented Programming OOP Mcqs for Screening tests, Interviews, Viva and Other competitive exams. Object Oriented Programming Mcqs section will help users to prepare mcqs of OOP for various exams. Aspirants of Lecturer Computer Science, SST Computer Science, Subject Specialist Computer Science, Data Entry operator, Computer Programmer, Computer Operator, Software engineer and all other Competitive Exams can prepare their Object Oriented programming portion from here.
What is a class?
(A) A class is a section of computer memory containing objects
(B) A class is a section of the hard disk reserved for object oriented programs
(C) A class is the part of an object that contains the variables
(D) A class is a description of a kind of object
Which one of the following features of OOP is used to derive a class from another?
(A) Polymorphism
(B) Data hiding
(C) Encapsulation
(D) Inheritance
A C++ class is similar to?
(A) Structure
(B) Header file
(C) Library file
(D) None of the above
To convert from a user-defined class to a basic type, you would most likely use?
(A) A built-in conversion operator
(B) A one-argument constructor
(C) An overloaded = operator
(D) A conversion operator that‘s a member of the class
Inheritance is a way to?
(A) Pass arguments to objects of classes
(B) Organize data
(C) Add features to existing classes without rewriting them
(D) Improve data-hiding and encapsulation
In a flow chart diagram rectangle symbol represents?
(A) Condition
(B) Input
(C) Output
(D) Process
In a flow chart diagram diamond symbol represents?
(A) Input
(B) Output
(C) Condition
(D) Progress