My Report (&Account)

Object Oriented Programming Online Test


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)

Here is the complete list of test quizzes on Object Oriented Programming.

1. Which type of inheritance cannot involve private inheritance?

Question 1 of 50 (sanfoundry.com)

2. A pointer _________________

Question 2 of 50 (sanfoundry.com)

3. In multi-level inheritance(all public), the public members of parent/superclass will ________

Question 3 of 50 (sanfoundry.com)

4. Which among the following is true?

Question 4 of 50 (sanfoundry.com)

5. Objects type ____________________

Question 5 of 50 (sanfoundry.com)

6. Which concept of OOP is false for C++?

Question 6 of 50 (sanfoundry.com)

7. The delete operator __________________

Question 7 of 50 (sanfoundry.com)

8. Multiple inheritance is ____________________

Question 8 of 50 (sanfoundry.com)

9. If a base class is being derived by two other classes, which inheritance will that be called?

Question 9 of 50 (sanfoundry.com)

10. Which feature of OOP indicates code reusability?

Question 10 of 50 (sanfoundry.com)

11. Non-const functions _______________________

Question 11 of 50 (sanfoundry.com)

12. When is the memory allocated for an object gets free?

Question 12 of 50 (sanfoundry.com)

13. An exception may arise when _______________

Question 13 of 50 (sanfoundry.com)

14. Which among the following is correct?

Question 14 of 50 (sanfoundry.com)

15. The result of sizeof() function __________________

Question 15 of 50 (sanfoundry.com)

16. ___________ underlines the feature of Polymorphism in a class.

Question 16 of 50 (sanfoundry.com)

17. If the object is passed by value to a copy constructor?

Question 17 of 50 (sanfoundry.com)

18. We can assign ______________________

Question 18 of 50 (sanfoundry.com)

19. Which among the following is true?

Question 19 of 50 (sanfoundry.com)

20. Which among the following is correct for abstract methods?

Question 20 of 50 (sanfoundry.com)

21. Whenever an object is returned by value ____________________

Question 21 of 50 (sanfoundry.com)

22. Which symbol should be used to separate the type of exception handler classes in a single catch block?

Question 22 of 50 (sanfoundry.com)

23. Which condition is true if the extern variable is used in a file?

Question 23 of 50 (sanfoundry.com)

24. If delete is applied to an object whose l-value is modifiable, then _______________ after the object is deleted.

Question 24 of 50 (sanfoundry.com)

25. Size of a class is _____________

Question 25 of 50 (sanfoundry.com)

26. Deriving a class in such a way that that the base class members are not available for further inheritance is known as ___________________

Question 26 of 50 (sanfoundry.com)

27. What is the term used to indicate the variable and constants of a class?

Question 27 of 50 (sanfoundry.com)

28. If class B inherits class A privately. And class B has a friend function. Will the friend function be able to access the private member of class A?

Question 28 of 50 (sanfoundry.com)

29. When is the constructor called for an object?

Question 29 of 50 (sanfoundry.com)

30. If class A inherits class B and class C as “class A: public class B, public class C {// class body ;}; ”, which class constructor will be called first?

Question 30 of 50 (sanfoundry.com)

31. Destructors can be ________

Question 31 of 50 (sanfoundry.com)

32. What are public member functions?

Question 32 of 50 (sanfoundry.com)

33. Which is correct syntax for declaring pointer to object?

Question 33 of 50 (sanfoundry.com)

34. How to create object of the inner class?

Question 34 of 50 (sanfoundry.com)

35. If a base class is inherited in protected access mode then which among the following is true?

Question 35 of 50 (sanfoundry.com)

36. Which among the following is the main advantage of using local classes?

Question 36 of 50 (sanfoundry.com)

37. If const version of a function when overloading is used, the function ___________________

Question 37 of 50 (sanfoundry.com)

38. How many independent objects can be returned at same time from a function?

Question 38 of 50 (sanfoundry.com)

39. If the members have to be accessed from anywhere in the program and other packages also, which access specifier should be used?

Question 39 of 50 (sanfoundry.com)

40. If one class have derived the base class privately then another class can't derive the base class publically.

Question 40 of 50 (sanfoundry.com)

41. Delete operator _________________

Question 41 of 50 (sanfoundry.com)

42. Which among the following is correct?

Question 42 of 50 (sanfoundry.com)

43. Can a super class object give reference to a subclass method?

Question 43 of 50 (sanfoundry.com)

44. If all the classes use private inheritance in multilevel inheritance then ______________

Question 44 of 50 (sanfoundry.com)

45. Which operator among the following can be overloaded using both friend function and member function?

Question 45 of 50 (sanfoundry.com)

46. Using higher degree of abstraction __________

Question 46 of 50 (sanfoundry.com)

47. The names given to the default arguments are only looked up and ________________ and are bound during declaration.

Question 47 of 50 (sanfoundry.com)

48. Which feature allows open recursion, among the following?

Question 48 of 50 (sanfoundry.com)

49. Whenever a function is declared in a program _____________________

Question 49 of 50 (sanfoundry.com)

50. In how many ways can an object be passed to a function?

Question 50 of 50 (sanfoundry.com)


 

Topic wise Test Quizzes on Object Oriented Programming

Object Oriented Programming tests, quizzes, and exams are great ways to learn and test your Object Oriented Programming skills. Whether you’re a beginner or experienced, challenge and boost your confidence with our engaging online quizzes on Object Oriented Programming Basics, OOP Features, Constructor, Access Specifier, Class Members, Object, Classes, Inheritance, OOP Member Functions and Object Handling. Start the Object Oriented Programming online test now!



Object Oriented Programming Certification Test

Object Oriented Programming Certification Test is a free certification exam. However, you need to score an A grade in each of the "Certification Level Tests 1 to 10" to be eligible to take part in this certification test. So, take all the "10 Tests" starting from Certification Level 1 upto Level 10, before taking the final Certification test.


Level 1 to 10 Tests:
Total Questions: 25, Total Time: 30 min, Correct Answer: 2 points, Wrong Answer: -1 point

Certification Test:
Total Questions: 50, Total Time: 1 hour, Correct Answer: 2 points, Wrong Answer: -1 point

Object Oriented Programming Internship Test

If you scored either Grade A* or Grade A in our Object Oriented Programming Internship Test, then you can apply for Internship at Sanfoundry in Object Oriented Programming.


Total Questions: 50, Total Time: 1 hour, Correct Answer: 2 points, Wrong Answer: -1 point

Object Oriented Programming Job Test

It is designed to test and improve your skills for a successful career, as well as to apply for jobs.


Total Questions: 50, Total Time: 1 hour, Correct Answer: 2 points, Wrong Answer: -1 point

Note: Before you get started on these series of online tests, you should practice our collection of 1000 MCQs on Object Oriented Programming .

Sanfoundry Scoring & Grading System

Sanfoundry tests and quizzes are designed to provide a real-time online exam experience. Here is what you need to know about them.

  • Scoring System: You get 2 points for each correct answer but lose 1 point for every wrong answer.
  • Grading System: Your grade depends on your final score and can be one of the following:

    • Grade A* - Genius (100%)
    • Grade A - Excellent (80% to 99%)
    • Grade B - Good (60% to 80%)
    • Grade C - Average (40% to 60%)
    • Grade D - Poor (0% to 40%)
advertisement
advertisement
Manish Bhojasia - Founder & CTO at Sanfoundry
I’m Manish - Founder and CTO at Sanfoundry. I’ve been working in tech for over 25 years, with deep focus on Linux kernel, SAN technologies, Advanced C, Full Stack and Scalable website designs.

You can connect with me on LinkedIn, watch my Youtube Masterclasses, or join my Telegram tech discussions.

If you’re in your 20s–40s and exploring new directions in your career, I also offer mentoring. Learn more here.