Data Science Questions in Interviews

Last updated: December 3, 2026

This article applies to the new Interview experience.

Data Science questions in HackerRank Interviews provide a shared workspace where you and the candidate can explore datasets, edit and run Jupyter notebooks, and use a terminal. Use these questions to evaluate data analysis, metrics, and modeling skills. If AI assistance is enabled, the candidate can also use the AI Assistant to analyze data and build models.

To add a Data Science question to your interview, see πŸ“„ Manage Questions in an Interview β†’ Adding a Data Science, Database, or DevOps question.

Note: Data Science questions support the Python and R stacks. Questions that use Julia or the legacy Data Science stack are not supported. For more information, see πŸ“„ Interviews Reinvented for Agentic Era β†’ Julia and the legacy Data Science stack.

Data Science workspace components

Data Science questions open in the Agentic Development Environment (ADE). The Data Science workspace contains a collapsible navigation panel on the left, the agent workspace in the center, and a collapsible development panel on the right.

For information on other interview controls, see πŸ“„ Navigate the Interview Interface and Controls.

Note:

  • AI assistance can be enabled at the company level or for individual interviews. For more information, see πŸ“„ AI Assistant in Interviews β†’ Enabling AI Assistant for interviews.

  • The candidate's workspace ends when the interview ends. If you open a Data Science question after the interview ends, a message states that the candidate's workspace was terminated. Click Re-import Question to load the question again.

Question

Click Question in the left panel to display the problem statement, the datasets, and the data schema.

Note:

Agent Sessions

The Sessions panel lists the agent sessions in the interview. You and the candidate can create separate sessions for different tasks. After the first prompt, the session is renamed based on the conversation.

To start a session, click New in the Sessions panel and select one of the following:

  • Chat: Starts a session with HackerRank’s built-in AI Assistant.

  • Claude CLI: Starts a session with Claude Code.

  • Codex CLI: Starts a session with Codex.

When you select Claude CLI or Codex CLI, the tool opens in a terminal session within the workspace. Claude Code and Codex require no additional setup.

Note: To start a new chat session, you can also press Option + Cmd + N on macOS or Ctrl + Alt + N on Windows.

AI Assistant

Use the prompt field at the bottom of the agent workspace to send prompts to the AI Assistant. The prompt field includes the following controls:

  • Mode: Selects Plan to analyze the problem and plan an approach without changing files, or Agent to let the AI Assistant edit files and run actions.

  • Attach files: Adds files to the prompt as context.

  • Model: Selects the AI model to use.

  • Context window: Displays how much of the context window the session uses.

You can also reference files with @ mentions and run / commands in the prompt field. The AI Assistant response appears in the agent workspace.

For more information about AI Assistant modes and models, see πŸ“„ Code Repository Questions in Interviews β†’ AI Assistant.

Editor

To open the Editor tab, click the Open editor pane icon in the upper-right corner. The tab displays the project files, such as the datasets and the Jupyter notebook, in Explorer. You can create files and folders, search across files, and select a file to open it. Use Find a file to search for a file by name.

Notebooks

Select a notebook (.ipynb) file in Explorer to open it in the notebook editor. The notebook toolbar includes the following controls:

  • Run all: Runs all cells in the notebook.

  • Cell type: Changes the selected cell to a Code cell or a Markdown cell.

  • Kernel menu: Displays the kernel and its status, such as ready. Select Restart kernel, Interrupt kernel, or Clear outputs.

To run a single cell, click the Run cell icon on the cell, or press Cmd + Enter on macOS or Ctrl + Enter on Windows. The output appears below the cell.

To manage a cell, click the ellipsis (...) icon on the cell and select one of the following options:

  • Insert code cell above: Adds a code cell above the cell.

  • Move cell up: Moves the cell up one position.

  • Move cell down: Moves the cell down one position.

  • Insert code cell below: Adds a code cell below the cell.

  • Duplicate cell: Creates a copy of the cell.

  • Delete cell: Removes the cell from the notebook.

To add a code cell below a cell, click the plus (+) icon on the cell. To add a code cell at the end of the notebook, click + Code cell.

Browser

To open the Browser tab, click the Open browser pane icon in the upper-right corner. Until an application is running, the tab displays the available frontend and backend ports and prompts you to run the application from an agent session. Click a port to open the application.

Terminal

To open the Terminal tab, click the Open terminal pane icon in the upper-right corner. The tab provides command-line access to the project. You can inspect files and run commands and scripts. The run project tab displays the output of the project's setup commands. Click the plus (+) icon to open another terminal tab.

After you open any of the right-side development panes, you can switch between the Editor, Browser, and Terminal tabs. Click the close (Γ—) icon in the upper-right corner to close the pane.

ADE settings

Use ADE settings to control how the AI Assistant displays its work and uses skills, subagents, and MCP servers. To open ADE settings, click Settings at the bottom of the left panel.

For more information, see πŸ“„ ADE Settings in Interviews.