Object Oriented Programming (OOP) Quiz # 1

Instructions
Quiz: Object Oriented Programming (OOP) Quiz # 1
Subject: Object Class
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 # 1
Question 1 of 144
00:00
  • The Object class is not a parent class of all the classes in java by default?

  • The clone() method is defined in?

  • The object cloning is a way to create exact copy of an object?

  • Which method causes the current thread to wait for the specified milliseconds, until another thread notifies? (invokes notify() or notifyAll() method)?

  • Which class is thread-safe i.e. multiple threads cannot access it simultaneously,So it is safe and will result in an order?

  • Which method of object class can clone an object?

  • Generally string is a sequence of characters, But in java, string is an:

  • In which string class function returns the number of characters in a string?

  • How many constructors are defined in StringTokenizer class?

  • Which constructor creates an empty string buffer with the specified capacity as length.

  • Java defines a peer class of String, called?

  • By overriding the toString() method of the Object class, we can return values of the object, so we don't need to write much code?

  • In which standard collection classes implements a linked list data structure?

  • Which method compares the given object to this object?

  • This method of StringBuffer Class is used to insert the specified string with this string at the specified position?

  • Which of the following is true for package access modifier?

  • What is dynamic dispatch?

  • Constructors have to be called before the main function:

  • In dynamic type case a type safety check is incurred at ____________.

  • Constructors never have an explicit return type.

  • A recursive function would result in infinite recursion, if the following were left out:

  • What are the major elements in an object model?

  • Common behavior can be defined in a superclass and inherited into a subclass using the ___________ keyword.

  • Which of the following is false for a destructor?

  • __________ allows for the separation of object interactions from classes and inheritance into distinct layers of abstraction.

  • If the child object can exist beyond the lifetime of its parent, then the relationship is ____________.

  • What is a “const member function”?

  • _____________ is actually a parameterized constructor which takes some parameters in order to create instance of a class.

  • Can I create new operators using operator overloading?

  • Can I inherit the constructor and destructor of a base class?

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