Introduction
Our platform allows you to add customized questions and incorporate them into your assessments. This guide walks you through creating and managing custom coding questions step-by-step.
Getting Started
To begin, navigate to the Private Questions tab and click the Add Coding Question button. This action will take you to the question creation page.
Adding Coding Questions
You can add custom coding questions in two ways:
1. Using the Wizard
The wizard guides you through a series of steps. You will need to provide:
- The programming language for the question.
- Function argument names and their data types.
- The function's return type.
- Input values and expected function return values for test cases.
2. By Supplying Custom Code
Alternatively, you can manually provide the code components for the question:
- The function(s) to be implemented by the candidate.
- The checker function, which validates the candidate's code.
- Additional helper classes (optional) that candidates can use in their solution.
New Custom Coding Question - Using the Wizard
In this example, we'll create a Java coding question where the task is to find the smallest positive missing number.
Step 1: Select Question Difficulty
Start by choosing the appropriate difficulty level for the question.
Step 2: Fill in the Question Body
Provide a detailed description of the problem in the question body. This should clearly explain the task to the candidate.
Step 3: Select Programming Language(s)
Select one or more programming languages for the question.
Step 4: Define the Function Details
- Enter the function name and its return type.
- Add function arguments by specifying their names and types, then press the plus (+) button to confirm each argument.
Step 5: Add Test Cases
Define test cases by specifying:
- The input values for the function arguments.
- The expected return value of the function.
For example, if the input is an array, you can add values separated by commas and specify the expected function result value. Add each test case by pressing the plus (+) button. You can add up to 6 test cases.
Step 6 (Optional): Add Solution Code
To include a reference solution, click the Add Solution Code button and provide the solution code.
- The platform will validate the solution code against the test cases you provided.
- If the solution does not pass all test cases, you'll receive a warning to help you debug the issue.
Step 7: Save the Question
- Once you've completed the steps above, press the Save button to finalize and add the coding question to your assessment library.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article