Object Oriented Programming (OOP) Quiz # 3

Instructions
Quiz: Object Oriented Programming (OOP) Quiz # 3
Subject: Basic Object Oriented Programming Oop
Total Questions: 144 MCQs
Time: 144 Minutes

Note

  • Do not refresh the page while taking the test.
  • Results along with correct answers will be shown at the end of the test.
Object Oriented Programming (OOP) Quiz # 3
Question 1 of 144
00:00
  • A class and its members can be described graphically using a notation known as the ____ notation.

  • A(n) ____ is a variable that is used within a function.

  • What is an example of dynamic binding?

  • For which case would the use of a static attribute be appropriate?

  • Why would you create an abstract class, if it can have no real instances?

  • When does static binding happen?

  • What is the best reason to use a design pattern?

  • What is encapsulation?

  • What is an IS-A relationship?

  • Ou want a method with behavior similar to a virtual method--it is meant to be overridden --expect that it does not have a method body. It just has a method signature. What kind of method should you use?

  • Which code creates a new object from the Employee class?

  • Which type of constructor cannot have a return type?

  • When is a constructor executed?

  • F a local class is defined in a function, what is true for an object of that class?

  • Which two blocks are used to handle and check errors?

  • Why would you implement composition using an id instead of a reference?

  • Which statement best describes the method of inheritance in OOP?

  • Which type of inheritance ,when done continuously, is similar to a tree structure?

  • Which statement is true?

  • Which of the following is NOT an advantage of using getters and setters?

  • In context of OOP, what is association?

  • How are user stories different from use cases?

  • Which type of inheritance must be used so that the resultant is hybrid?

  • A language that does not support polymorphism but supports classes is considered what?

  • Two classes combine private data members and provide public member functions to access and manipulate those data members. Where is abstraction used?

  • What are the five Creational Design patterns by the Gang of Four ?

  • In multilevel inheritance, one class inherits how many classes?

  • If an object is passed by reference, the changes made in the function are reflected _.

  • What is a method?

  • A mobile phone is made up of components such as a motherboard, camera, and sensors. The motherboard represents all the functions of a phone, the display shows the display only, and the phone is represented as a whole. Which of the following has the highest level of abstraction?

Object Oriented Programming (OOP) Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

Object Oriented Programming (OOP) Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it