Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Skills Assessment Test on SOLID Principles

Topics Covered

  • Open Closed Principle (OCP)
  • Interface Segregation Principle (ISP)
  • Dependency Inversion Principle (DIP)
  • Single Responsibility Principle (SRP)
  • Liskov Substitution Principle (LSP)
  • SOLID
  • Coupling
  • Inversion of Control
  • Violation in SRP
  • Types of DI
  • DI Containers

Useful for hiring

  • Javascript Developer
  • Java Developer
  • C# Developer

Start hiring job-fit candidates using this assessment

GET A DEMO

"Our recruitment team loves Interview Mocha especially for their skill assessments, simulators, and friendly support. Since using Interview Mocha, we interview only relevant candidates, and this has reduced our time to hire. Recruitment is no longer an hassle for us."

Christoph, e-Zest GmbH
Question

How many S.O.L.I.D principles are broken by the necessity of the following code snippet?   

void DrawShape(const Shape &s)
{
     if (s instanceof Square)
          DrawSquare((Square)s);
     else if (s instanceof Rectangle)
          DrawRectangle((Rectangle)s);
     else if (s instanceof Circle) 
          DrawCircle((Circle)s);
}

Answer
    • 1

    • 2

    • 3

    • 4

    • 5

Question

Which SOLID principle is not followed correctly in the following code snippet?  

public class A
{
     void hello(){...}
}
public class B extends A
{
     int i;
     void hello(){i++;}
}

Answer
    • Single Responsibility Principle

    • Open-Closed Principle

    • Liskov Substitution Principle

    • Interface Segregation Principle

    • Dependency Inversion Principle

Question

Which SOLID principle is not followed correctly in the following code snippet?   

if (event instanceof PreProcess)
{
    doSomething();

else if(event instanceof PostProcess)
{
    doSomethingElse();
}
else if(event intsanceof Processing)
{
    doSomethingNew();
}

Answer
    • Single Responsibility Principle

    • Open-Closed Principle

    • Liskov Substitution Principle

    • Interface Segregation Principle

    • Dependency Inversion Principle

Test details:

Screen & hire potential candidates using our valid & reliable test. The test contains MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, True or False.

Test Duration: 20 minutes

10 Application Questions


This interview test for SOLID principle contains the combination of application and theory questions that helps you to evaluate technical as well as practical skills of candidates.

Test description:

Assessment Test on SOLID principles helps recruiters & hiring managers to evaluate in-depth knowledge of candidate about the SOLID principles before hiring or recruiting.

SOLID is a mnemonic acronym for five OOD (object-oriented design) principles those are intended to make software designs more understandable, flexible and maintainable. SOLID principles are used in programming languages such as Java, C#, etc.

The Online test on SOLID principles is specially designed to check application, practical skills related to S.O.L.I.D. principles of software developers – as per Industry Standards. Our SOLID principles test is created and validated by Subject Matter Experts.

SOLID principles skills test contains questions on following Topics:
 

  • Open Closed Principle (OCP)

  • Interface Segregation Principle (ISP)

  • Dependency Inversion Principle (DIP)

  • Single Responsibility Principle (SRP)

  • Liskov Substitution Principle (LSP)

  • SOLID, Coupling

  • Inversion of Control

  • Violation in SRP

  • Types of DI

  • DI Containers


Our intelligent reports give you the detailed hiring analytics of pre-employment test for SOLID principles that helps in analyzing the skills of the candidates.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO