Different types of questions

HackerEarth’s library comprises an exhaustive list of questions of the following types:

Multiple choice questions (MCQs)

MCQs comprise a problem statement and multiple answer choices, one or more of which may be the right answer. These questions are evaluated automatically as the selected option is compared against an existing answer key.


Subjective questions allow you to ask candidates open-ended questions. These questions include short answers, definitions, scenario questions, and opinion questions.

  • What are the advantages and disadvantages of using Selenium framework?
  • What are code snippets? Why are they used?


Programming questions allow you to test the algorithm knowledge, analytical thinking, and problem-solving ability of candidates. These questions provide the flexibility of using any computer language to the candidates. 

Front end

Frontend questions aid in evaluating a candidate’s front end development skills. You can test whether candidates know how to structure, design, and add logic to web pages by using HTML, CSS, JavaScript.


Golf questions test the candidate's knowledge to write correct, simple, and efficient codes. Unlike, all the programming questions where scoring is based on the correct output, here the candidate is scored based on the code written as well as the output.


Approximate questions are particularly useful for domains of software development where there is no single correct answer, such as image processing or computer vision. The solutions to these problems find approximate solutions to optimization problems. 


List 8 composite numbers less than 100. There are 74 composite numbers less than 100, therefore, candidates can list any combination of 8 composite numbers from the list of 74 composite numbers.


This type of question provides you the flexibility to ask any simple or complex problem such as a full-stack application, a PowerPoint presentation etc., to the candidates. The problem statement might ask the candidates to provide a sample business plan or to send you a .zip file of the code written for the problem.


SQL questions allow you to assess a candidate’s SQL skills and their knowledge of database management systems. Through these questions, you can also test a candidate's knowledge of the queries to retrieve relevant data. 

Machine Learning (ML)

ML problems provide you with a platform that enables you to assess the skills of candidates such as relational databases and big data platforms. These questions also assess the knowledge of building models based on predictive analysis. 

Java project

Java project questions allow you to test a candidate’s hands-on programming skill as against testing only the algorithmic coding knowledge. You can also assess how familiar candidates are with the concepts of code structure, file hierarchy, various frameworks, and libraries within Java.


Diagram questions aim to assess skills of a candidate in creating class diagrams, architecture diagrams, data workflow diagrams, and flowcharts.