🧪 OOPS MCQ Quiz Hub

OOPS Mcq Question Set 2

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

1. Which among doesn’t illustrates polymorphism?




2. Exception handling is a feature of OOP.




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




4. Does OOP provide better security than POP?




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




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




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




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




9. Java Compiler translates the source code into?




10. 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); } } }




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




12. 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); } }




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




14. Which among the following is the main use of object?




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




16. What is function object?




17. Immutable object are used _________




18. Which object can be used to contain other objects?




19. A factory object is used ______




20. What are singleton objects?




21. Object cout and cin _______




22. Objects type _________




23. An object can be used to represent _________




24. Objects can be used _______




25. Which among the following is not a use of object?




26. Which object can be used to access the standard input?




27. A single object can be used ________




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




29. Passing object to a function _______




30. The object ________




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




32. If object is passed by value _________




33. Pass by reference of an object to a function ______




34. Copy constructor definition requires ________




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




36. If an object is passed by value, __________




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




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




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




40. Which among the following is true?




41. In which type is new memory location will be allocated?




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




43. What are the constant member functions?




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




45. Which objects can call the const functions?




46. Non-const functions ___________




47. Which is the correct condition on const member functions?




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




49. Can a constructor function be constant?




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