Home / Tests / Object Oriented Programming Concept Using C++ Test 2 Online MCQs

Object Oriented Programming Concept Using C++ Test 2 Online MCQs

Test Name Object Oriented Programming Concept Using C++ Test 2
Subject Computer
Test Type MCQs
Total Question 15
Total Marks 30
Total Time 15 Mints
Test Help For
  • Basic Knowledge about IT
  • IT General Knowledge Quiz
  • Computer History
  • IT & Computer Tests
  • General Ability
  • Competitive Exams.

Object Oriented Programming Concept Using C++ Test 2 Online MCQs

Computer

1. All of the following are valid expressions in C++
a = 2 + (b = 5);
a = b = c = 5
a = 11 % 3

Question 1 of 15

2. Inheritance is the process by which object of one class acquires the properties of object of another class

Question 2 of 15

3. Methods provide the interface between the object’s data & the program

Question 3 of 15

4. Class variables are global to the class

Question 4 of 15

5. Which is not a loop structure?

Question 5 of 15

6. In an assignment statement
a=b;
Which of the following statement is true?

Question 6 of 15

7. OOP treats Data as a critical element in the program development

Question 7 of 15

8. When does the code block following while (x<100) execute?

Question 8 of 15

9. How many times is a do while loop guaranteed to loop?

Question 9 of 15

10. Which of the following is not a valid relational operator?

Question 10 of 15

11. The entire set of data & code of an object can be made a user-defined data type using the concept of class

Question 11 of 15

12. A function is a derived class that has the same name as a function in the parent class

Question 12 of 15

13. Instance variables take different values for each object

Question 13 of 15

14. The insulation of data from direct access by the program is called as data hiding

Question 14 of 15

15. Instance variables are created when the objects are instantiated and therefore they are associated with the objects

Question 15 of 15


 

Test By Subject
Test By Topics
Have any Problem or Error please mention in below comments section.

Leave a Reply

Your email address will not be published. Required fields are marked *