This OOP Online Test
Separates Good From Bad Hires

Screen with work-sample questions

Work-samples are the best predictor of work performance. 8,000+ companies use TestDome premium questions.

About the test

The object oriented programming online test assesses candidates' knowledge of OOP concepts such as polymorphism, inheritance, abstraction, encapsulation, and design patterns.

It's an ideal test for pre-employment screening. A good software engineer who uses a modern OOP language needs to understand core concepts of the OOP language and how to use design patterns to write reusable solutions that other developers can understand.

This online test requires candidates to answer questions about object oriented programming concepts and design patterns.

Sample public questions

Your team has started to write software for managing a vehicle storehouse using a programming language that supports OOP. This is the class hierarchy you plan to use:

class Vehicle
class Car inherits Vehicle
class Bicycle inherits Vehicle
class MountainBike inherits Bicycle
class Downhill inherits MountainBike

Objects of which type can be assigned to a variable of type Bicycle?

OOP & Design Patterns
Inheritance
Easy
2 min
mca
Public

In a language that supports the OOP paradigm, we have the following code that serializes the content of a shopping cart to JSON format:

class ShoppingCart
  private content : Dictionary<Int, String> 

  public function serialize() : String
    return new JsonSerializer().serialize(content.clone())
  end function
end class

class JsonSerializer  
  public function serialize(value : Dictionary<Int, String>) : String
    // Code that serializes dictionary to JSON format and returns it as string
  end function
end class

A client wants to allow loosely coupled plugins to be able to serialize the shopping cart content to their own formats (e.g., XML). Select lines of code that, together, would extend the code above to allow this.

OOP & Design Patterns
Inheritance
Easy
5 min
mca
Public

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the OOP test with public questions.

Take a Certification Test

Sample silver certificate

Peter Gibbons

Java and SQL

TestDome
Certificate

TestDome logo on certificate

For companies: premium questions

Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.

Sign Up to Offer this Test

Skills and topics tested

  • OOP & Design Patterns
  • Behavioral Patterns
  • Creational Patterns
  • Design Patterns
  • Inheritance
  • Method Overriding
  • UML
  • Inversion of Control

For job roles

  • Back-End Developer
  • Full-Stack Developer
  • Mobile Developer
  • Software Developer
  • Web Developer

Solve all your skill testing needs

150+ Pre-made tests

From web development and database administration to project management and customer support. See all pre-made tests.

Multi-skills Test

Mix questions for different skills or even custom questions in one short test. See an example.

How TestDome works

1
Choose a pre-made test or create a custom test.
2
Invite candidates via email, URL or your ATS
3
Candidates take a test remotely
4
Sort candidates and get individual reports

Want to know more?