Sentence Completion Questions

Last updated: April 22, 2026

Sentence completion questions are fill-in-the-blank items that assess a candidate’s understanding of a concept or subject. Each question provides a sentence or short passage with one or more missing words or phrases. Candidates type their answers directly into the blanks.

You can use sentence completion questions to assess both technical and non-technical skills. The system automatically evaluates all answers.

Creating a sentence completion question

To create a sentence completion question: 

  1. Log in to your HackerRank for Work account using your credentials.

  2. Go to the Library tab. 

  3. Click Create Question.

    image.png
  4. Select Sentence Completion under General.

    image.png
  5. In the Problem details section:

    image.png
    1. Enter the question name.

    2. Describe the problem in the Problem description field. You can use the formatting menu to format the text or to include elements such as tables or images.

      Note: 

  6. In the Complete string section:

    sentence completion KB.gif
    1. Type the sentence.

    2. Place the cursor where you want to add a blank.

    3. Click Insert Blank to add a blank. The Correct Answers section appears.

      Note: You can insert blanks while typing or after completing the sentence.

    4. Select String or Number as the answer type for each blank.

    5. Enter the correct answer for each blank. 

    6. (Optional) Click Add another answer if the blank has more than one correct answer.

      image.png

      Note: Each blank in the sentence must have at least one correct answer. You can click the remove (X) icon to remove an answer option associated with a blank. 

      • If you remove a blank from the sentence, you must delete all answers associated with that blank.

      • The number of blanks in the sentence must match the number of blanks provided in the correct answers.

  7. In the Question properties section:

    image.png
    1. Enter the score based on difficulty.

    2. Add the recommended time in minutes.

    3. (Optional) Add tags from the drop-down list or create new ones.

  8. (Optional) Add Interviewer guidelines for internal use, such as evaluation notes and hints.

    image.png
  9. Click Save question.

    Note: Click Save & Create Another to create another question.

The question appears under My Company questions in the HackerRank Library.

Bulk uploading sentence completion questions

You can upload multiple sentence completion questions at once using a CSV or XLSX file.

To bulk upload sentence completion questions:

  1. Click Bulk Upload in the Problem details section.

    image.png
  2. Click Browse File.

    image.png
  3. Upload a CSV or XLSX file. The file must include all required columns listed in the File upload column specifications.

    Note: You can download the sample file from the Bulk Upload dialog box for reference.

  4. (Optional) Review and edit the uploaded questions

  5. Click Save All Questions to complete the upload.

    image.png

Note: 

  • The XLSX format allows you to add images to the sentence completion questions.  

  • The maximum file size allowed is 512KB.

  • When you upload the bulk file, the system processes only the first 100 rows.

File upload column specifications

The table below lists the required column headers and input expectations for bulk uploads.

Column Header

Input Type

Details

Name

Text

The name of the question.

Recommended Time

Positive integer

Time required to solve the question.

Tags

Comma-separated values

Internal tags for better organization and search.

Description

Text

Instructions or context for the question. 

Images

Images

Add images as needed. Supported only in XLSX format.

Notes

Text

Internal notes shown in the candidate’s report. 

Score

Integer

The point value assigned to the question.

Complete String

Text

The sentence the candidate must complete. Must include {blank} placeholders for every answer field.

Blank 1

Text

Correct answer for Blank 1

Blank 2

Text

Correct answer for Blank 2 

Candidate experience

Candidates can click each blank and type their answer directly into the field.

image.png

Scoring sentence completion questions in tests

HackerRank automatically scores sentence completion questions. Answers are not case-sensitive. For example, if the correct answer is HTML, the system accepts HTML, Html, html, or HTml.

The score for each question depends on the number of blanks the candidate answers correctly.

The system uses the following formula to calculate the score for each question:

(Number of correct blanks ÷ Total blanks) × Score assigned to that question

For example,

The total score for the question is 3. The question contains three blanks. The candidate answers two blanks correctly.

Calculation:
(2 ÷ 3) × 3 = 2

The final test score is the cumulative total of all individual question scores.