🧪 OOPS MCQ Quiz Hub

OOPS Mcq Question Set 2

Choose a topic to test your knowledge and improve your OOPS skills

Which among doesn’t illustrates polymorphism?





✅ Correct Answer: 2

Exception handling is a feature of OOP.





✅ Correct Answer: 1

Which among the following, for a pure OOP language, is true?





✅ Correct Answer: 4

Does OOP provide better security than POP?





✅ Correct Answer: 1

Which of the following approach help us understand better about Real time examples, say Vehicle or Employee of an Organisation?





✅ Correct Answer: 2

Which of the following Paradigm is followed by Object Oriented Language Design?





✅ Correct Answer: 2

Which of the following approach is followed by Object Oriented Language during the execution of a program?





✅ Correct Answer: 1

Which of the following is/are advantage of using object oriented programming?





✅ Correct Answer: 4

Java Compiler translates the source code into?





✅ Correct Answer: 3

What is the output of this program? class PrintTest { public static void main(String args[]) { int num = 10; if (NUM < 100) { System.out.println("The value of num is"+ num); } } }





✅ Correct Answer: 1

Which of the following is called as ‘Comiplation unit’?





✅ Correct Answer: 3

What is the output of this program? class TypeChecking { public static void main(String args[]) { int num = 10.5; System.out.println("Output :The value of num is" +num); } }





✅ Correct Answer: 3

Which is a named memory location assigned a value by the program?





✅ Correct Answer: 1

Which among the following is the main use of object?





✅ Correct Answer: 3

Which among the following is not a property of an object?





✅ Correct Answer: 4

What is function object?





✅ Correct Answer: 1

Immutable object are used _________





✅ Correct Answer: 1

Which object can be used to contain other objects?





✅ Correct Answer: 3

A factory object is used ______





✅ Correct Answer: 4

What are singleton objects?





✅ Correct Answer: 2

Object cout and cin _______





✅ Correct Answer: 1

Objects type _________





✅ Correct Answer: 2

An object can be used to represent _________





✅ Correct Answer: 1

Objects can be used _______





✅ Correct Answer: 2

Which among the following is not a use of object?





✅ Correct Answer: 1

Which object can be used to access the standard input?





✅ Correct Answer: 2

A single object can be used ________





✅ Correct Answer: 3

If same object name is given to different objects of different class then ____





✅ Correct Answer: 1

Passing object to a function _______





✅ Correct Answer: 2

The object ________





✅ Correct Answer: 3

Which symbol should be used to pass the object by reference in C++?





✅ Correct Answer: 1

If object is passed by value _________





✅ Correct Answer: 1

Pass by reference of an object to a function ______





✅ Correct Answer: 3

Copy constructor definition requires ________





✅ Correct Answer: 3

What is the type of object that should be specified in the argument list?





✅ Correct Answer: 4

If an object is passed by value, __________





✅ Correct Answer: 2

Can data members be passed to a function using the object?





✅ Correct Answer: 2

What exactly is passed when an object is passed by reference?





✅ Correct Answer: 3

If the object is not to be passed to any function but the values of the object have to be used then?





✅ Correct Answer: 1

Which among the following is true?





✅ Correct Answer: 2

In which type is new memory location will be allocated?





✅ Correct Answer: 2

Pass by reference and pass by value can’t be done simultaneously in a single function argument list.





✅ Correct Answer: 2

What are the constant member functions?





✅ Correct Answer: 1

Which keyword must be used to declare a member function as a constant member function?





✅ Correct Answer: 2

Which objects can call the const functions?





✅ Correct Answer: 3

Non-const functions ___________





✅ Correct Answer: 1

Which is the correct condition on const member functions?





✅ Correct Answer: 1

If a const object calls a non-const member function then _________





✅ Correct Answer: 2

Can a constructor function be constant?





✅ Correct Answer: 4

A function can have both the const and non-const version in the same program.





✅ Correct Answer: 2