---
title: Data Science question creation guide in a test
description: Learn how to create a custom Data Science question in a test, including the template sections, problem statement, dataset, test cases, and code snippets.
---

[Skip to content](https://help.hackerearth.com/data-science-question-creation-guide-in-a-test#main-content)

![hackerearth-logo-light](https://help.hackerearth.com/hubfs/hackerearth-logo-light.svg)

Open main navigation

Close main navigation

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://help.hackerearth.com/)
2. [Assessments: Recruiters](https://help.hackerearth.com/assessments-recruiters)
3. [Data science](https://help.hackerearth.com/assessments-recruiters#data-science)

# Data Science question creation guide in a test

## **Creating a custom Data Science question**

1. Log in to HackerEarth Assessment using admin credentials.
2. Click **Add question** in the **Overview** section**.**
3. Click **Create a new question**.
4. Click **Data Science** in the **Coding** section.

![DS20.gif](https://help.hackerearth.com/hubfs/Knowledge%20Base%20Import/DS20-3.gif)

## **Template**

The template contains the following sections:

![DS21.png](https://help.hackerearth.com/hubfs/Knowledge%20Base%20Import/DS21-3.png)

 

| **S. no.** | **Section name** | **Description** |
| --- | --- | --- |
| 1 | Description | This section describes the problem that you want to create. You are required to add details about the problem statement, difficulty level, etc |
| 2 | Data & test cases | This section contains the datasets, test cases, etc. |
| 3 | Languages | This section contains the languages that you can enable for a candidate to solve the question |
| 4 | Editorial | This section can contain the approach to solve the problem. This is optional. |

**The Description section**

## **Creating a problem statement**

The question-creation template is displayed on your screen with the following fields:

- *Problem Name*
- *Problem Statement*
- *Difficulty level*
- *Maximum Score*
- *Tags*

1\. Add the name or title of your question in the **Problem Name** field.

2\. In the **Problem Statement** field, add the problem statement that you want the candidate to solve. A good problem statement has the following:

- *Problem statement*: It contains a task or problem statement that a  candidate must solve.
- *Data description*: It contains the dataset that is provided to solve a problem.
- *Submission criteria*: It contains the formats and different criteria that a candidate must follow while making a submission.
- *Evaluation criteria*: It contains the scoring metric that is used for evaluating a submission.

3\. Set the complexity of your question from the **Difficulty level** list.

4\. Add the required tags in the **Tag** section.

**The Data & test cases section**

## Adding dataset and test cases

![DS22.png](https://help.hackerearth.com/hubfs/Knowledge%20Base%20Import/DS22-3.png)

| **S. no.** | **Label name** | **Description** |
| --- | --- | --- |
| 1 | Sample Data Set | A sample data set is a subset of the full data set. |
| 2 | Expected Output | The sample expected output file represents the true values of the sample test data that is present in the sample data set. |
| 3 | Full Data Set | A full data set can be defined as the complete data set which can be used to train and test the model that solves the problem given in the problem statement. |
| 4 | Checker | A checker is used to automatically evaluate and generate a score for the submission. This submission contains the predictions of the test data submitted by the candidate. If you click **Add Checker,** you will observe the following fields: 1. **Expected Output**: Represents the true values of the full test data set that is present in the Full data set. 2. **Checker file**: Represents the checker file that must be added for auto-evaluation. For more information regarding the checker file, refer to this article. 3. **Maximum score**: Represents the maximum score assigned to the expected output. 4. **Checker language**: Represents the language of the checker file. To understand about partial scoring and multiple test cases, you can refer to [this](https://help.hackerearth.com/hc/en-us/articles/4404654924825-Partial-scoring) link. Once you have uploaded the required files, click **Upload**. |
| 5 | Time Limit | The evaluation of your submission file during **COMPILE & TEST** and **SUBMIT** is limited to a specific amount of time. If your code exceeds the specified limit, then you will see the time limit exceeded (TLE) error on the screen.  *Note*: The maximum time limit is 300 seconds. The time limit is multiplied by a time factor. For example, in Python, this factor is 5. If you have set the time limit as 300 seconds, then the total time is 300\*5=1500 seconds, that is, 25 minutes. Similarly, in R, the factor is 1.5. |
| 6 | Memory Limit | The evaluation of your submission file during **COMPILE & TEST** and **SUBMIT** is limited to a specific amount of memory. If your code exceeds the specified limit, then you will see the memory limit exceeded (MLE) error on the screen.  *Note*: The maximum memory limit is 3072 MB. |
| 7 | Code Snippet | Code snippets are boilerplate codes that can be used by the candidate for reference to solve the question. You can add instructions (in comments format) or provide comments to import required libraries. |

*Notes*

- The data set must be uploaded in a *.zip* format. And, the maximum file size limit is *30* MB.
- The dataset folder should consist of the following information:
- **train.csv**: Data set that candidates use to train their models
- **test.csv**: Data set that candidates use to predict an outcome
- **sample\_submission.csv**: Format that candidates should follow to create their submission file
- The test data, train data, and sample submission must be *.csv* files.

**The Languages section**

## **Adding code snippets**

Code snippets are boilerplate codes that can be used by the candidate for reference to solve the question. You can add instructions (in comments format) or provide comments to import required libraries. You can select the languages allowed for the code snippets which are the following:

1. Python
2. Python 3
3. R

**Example**

**![DS23.png](https://help.hackerearth.com/hubfs/Knowledge%20Base%20Import/DS23-3.png)**

**The Editorial section**

## **Adding the approach to solve a problem**

You can add interesting content regarding the question that allows a candidate to solve the problem. This can include the approach, directions, or steps to solve the problem.

Click **Publish** to successfully create a Data Science question in a test.

To try the question and understand how the candidate can solve it on HackerEarth’s platform and make submissions, you can refer to [this](https://help.hackerearth.com/hc/en-us/articles/4404653262617-Candidate-s-interface-for-recruiters) article.

- [Assessments: Recruiters](https://help.hackerearth.com/assessments-recruiters#main-content)

    - [Getting started](https://help.hackerearth.com/assessments-recruiters#getting-started)
    - [Account settings](https://help.hackerearth.com/assessments-recruiters#account-settings)
    - [Admin management](https://help.hackerearth.com/assessments-recruiters#admin-management)
    - [Creating tests automatically](https://help.hackerearth.com/assessments-recruiters#creating-tests-automatically)
    - [Creating tests manually](https://help.hackerearth.com/assessments-recruiters#creating-tests-manually)
    - [Test settings](https://help.hackerearth.com/assessments-recruiters#test-settings)
    - [Sections and question pooling](https://help.hackerearth.com/assessments-recruiters#sections-and-question-pooling)
    - [Libraries](https://help.hackerearth.com/assessments-recruiters#libraries)
    - [Multiple Choice Questions (MCQs)](https://help.hackerearth.com/assessments-recruiters#multiple-choice-questions-mcqs)
    - [Programming](https://help.hackerearth.com/assessments-recruiters#programming)
    - [Project](https://help.hackerearth.com/assessments-recruiters#project)
    - [SQL](https://help.hackerearth.com/assessments-recruiters#sql)
    - [Data science](https://help.hackerearth.com/assessments-recruiters#data-science)
    - [Machine Learning (ML)](https://help.hackerearth.com/assessments-recruiters#machine-learning-ml)
    - [DevOps](https://help.hackerearth.com/assessments-recruiters#devops)
    - [Python project questions](https://help.hackerearth.com/assessments-recruiters#python-project-questions)
    - [Automation Testing](https://help.hackerearth.com/assessments-recruiters#automation-testing)
    - [Java Project](https://help.hackerearth.com/assessments-recruiters#java-project)
    - [C# project questions](https://help.hackerearth.com/assessments-recruiters#c-project-questions)
    - [Subjective](https://help.hackerearth.com/assessments-recruiters#subjective)
    - [Approximate](https://help.hackerearth.com/assessments-recruiters#approximate)
    - [Diagram](https://help.hackerearth.com/assessments-recruiters#diagram)
    - [File upload](https://help.hackerearth.com/assessments-recruiters#file-upload)
    - [Invites](https://help.hackerearth.com/assessments-recruiters#invites)
    - [Reports](https://help.hackerearth.com/assessments-recruiters#reports)
    - [Billing](https://help.hackerearth.com/assessments-recruiters#billing)
    - [HackerEarth Reports: Admins, Tests, and Teams](https://help.hackerearth.com/assessments-recruiters#hackerearth-reports-admins-tests-and-teams)
    - [Technical Content Updates](https://help.hackerearth.com/assessments-recruiters#technical-content-updates)
- [FaceCode](https://help.hackerearth.com/facecode#main-content)

    - [FaceCode and its features](https://help.hackerearth.com/facecode#facecode-and-its-features)
    - [Scheduling interviews on FaceCode](https://help.hackerearth.com/facecode#scheduling-interviews-on-facecode)
- [Assessments: ATS integrations](https://help.hackerearth.com/assessments-ats-integrations#main-content)

    - [Integration](https://help.hackerearth.com/assessments-ats-integrations#integration)
    - [iCIMS](https://help.hackerearth.com/assessments-ats-integrations#icims)
    - [Zoho Recruit](https://help.hackerearth.com/assessments-ats-integrations#zoho-recruit)
    - [SmartRecruiters](https://help.hackerearth.com/assessments-ats-integrations#smartrecruiters)
    - [EightFold](https://help.hackerearth.com/assessments-ats-integrations#eightfold)
    - [SuccessFactors](https://help.hackerearth.com/assessments-ats-integrations#successfactors)
    - [Greenhouse](https://help.hackerearth.com/assessments-ats-integrations#greenhouse)
    - [Lever](https://help.hackerearth.com/assessments-ats-integrations#lever)
    - [Linkedin Talent Hub](https://help.hackerearth.com/assessments-ats-integrations#linkedin-talent-hub)
    - [JazzHR](https://help.hackerearth.com/assessments-ats-integrations#jazzhr)
    - [Workable](https://help.hackerearth.com/assessments-ats-integrations#workable)
    - [Recruiterbox - Trakstar Hire](https://help.hackerearth.com/assessments-ats-integrations#recruiterbox-trakstar-hire)
    - [Jobvite](https://help.hackerearth.com/assessments-ats-integrations#jobvite)
    - [Ashby](https://help.hackerearth.com/assessments-ats-integrations#ashby)
- [Assessments: Product updates](https://help.hackerearth.com/assessments-product-updates#main-content)

    - [Release notes: HackerEarth Assessment](https://help.hackerearth.com/assessments-product-updates#release-notes-hackerearth-assessment)
    - [Root Cause Analysis (RCA)](https://help.hackerearth.com/assessments-product-updates#root-cause-analysis-rca)
    - [Content updates](https://help.hackerearth.com/assessments-product-updates#content-updates)
- [Assessments: Best practices](https://help.hackerearth.com/assessments-best-practices#main-content)

    - [Recruit](https://help.hackerearth.com/assessments-best-practices#recruit)
- [SSO](https://help.hackerearth.com/sso#main-content)

    - [SSO](https://help.hackerearth.com/sso#sso)
- [Upskilling](https://help.hackerearth.com/upskilling#main-content)

    - [Introduction: Upskilling](https://help.hackerearth.com/upskilling#introduction-upskilling)
- [Assessments: Candidates](https://help.hackerearth.com/assessments-candidates#main-content)

    - [Getting started](https://help.hackerearth.com/assessments-candidates#getting-started)
    - [Test environment](https://help.hackerearth.com/assessments-candidates#test-environment)
    - [Question types](https://help.hackerearth.com/assessments-candidates#question-types)
    - [FaceCode](https://help.hackerearth.com/assessments-candidates#facecode)
    - [Feedback and queries](https://help.hackerearth.com/assessments-candidates#feedback-and-queries)
- [Problem setting for HackerEarth](https://help.hackerearth.com/problem-setting-for-hackerearth#main-content)

    - [Rate cards](https://help.hackerearth.com/problem-setting-for-hackerearth#rate-cards)
- [Campus](https://help.hackerearth.com/campus#main-content)

    - [Recruiters](https://help.hackerearth.com/campus#recruiters)
    - [Recruiter FAQs](https://help.hackerearth.com/campus#recruiter-faqs)
    - [Candidate FAQs](https://help.hackerearth.com/campus#candidate-faqs)
- [Hackathons and Hiring Challenges](https://help.hackerearth.com/hackathons-and-hiring-challenges#main-content)

    - [Hackathons](https://help.hackerearth.com/hackathons-and-hiring-challenges#hackathons)
    - [Hiring challenges](https://help.hackerearth.com/hackathons-and-hiring-challenges#hiring-challenges)
- [Frequently Asked Questions (FAQs)](https://help.hackerearth.com/frequently-asked-questions-faqs#main-content)

    - [Assessments: Recruiters](https://help.hackerearth.com/frequently-asked-questions-faqs#assessments-recruiters)
    - [GDPR compliance (Candidates)](https://help.hackerearth.com/frequently-asked-questions-faqs#gdpr-compliance-candidates)
    - [GDPR compliance (Recruiters)](https://help.hackerearth.com/frequently-asked-questions-faqs#gdpr-compliance-recruiters)
    - [General](https://help.hackerearth.com/frequently-asked-questions-faqs#general)
    - [Assessments: Candidates](https://help.hackerearth.com/frequently-asked-questions-faqs#assessments-candidates)
    - [HackerEarth Vs ChatGPT](https://help.hackerearth.com/frequently-asked-questions-faqs#hackerearth-vs-chatgpt)
- [Profiles](https://help.hackerearth.com/profiles#main-content)

    - [Profiles - Recruiter](https://help.hackerearth.com/profiles#profiles-recruiter)
- [OnScreen](https://help.hackerearth.com/onscreen#main-content)

    - [OnScreen - Interview templates](https://help.hackerearth.com/onscreen#onscreen-interview-templates)
    - [OnScreen - Sending Invites](https://help.hackerearth.com/onscreen#onscreen-sending-invites)
    - [OnScreen - Download reports](https://help.hackerearth.com/onscreen#onscreen-download-reports)
    - [OnScreen - Interview Analytics](https://help.hackerearth.com/onscreen#onscreen-interview-analytics)
    - [OnScreen - Overview](https://help.hackerearth.com/onscreen#onscreen-overview)
    - [OnScreen - Interview Proctoring Settings](https://help.hackerearth.com/onscreen#onscreen-interview-proctoring-settings)

[![hackerearth-logo-light](https://help.hackerearth.com/hubfs/hackerearth-logo-light.svg "hackerearth-logo-light")](https://www.hackerearth.com/)

##### The skills intelligence platform for the AI era. Evaluate developers, candidates, and AI agents.

<https://www.linkedin.com/company/hackerearth/> <https://twitter.com/HackerEarth> <https://www.youtube.com/channel/UCYU6nvKyRYnE5kiG9JXkXpA>

© 2026 HackerEarth · All rights reserved