In this article:
Multiple Language Testing
_______________________________________________________________________________________________________
To add a coding test question, navigate to the "Create New Assessment" tab in your dashboard. From there, input your job title and add at least three relevant skills that you want to evaluate in your assessment. Once you enter the job title and skills, click “Create Assessment”.
After selecting "Create Assessment" you will be brought to the Create tab where you then will be able to add your questions. Add your question text then choose one of our automatically graded options as the question type.
In the "Select your question type" field, choose "Code". You can also insert sample code in the question portion by hovering over the code editor icon in the text box. This can be used if you want to do a simple multiple-choice question that refers to a piece of code.
Once you select the code question type, you will have the option to automatically grade candidate code with tests cases.
Automatic grading allows you to add test cases and to assign point values to them. In addition, enabling this option allows candidates to run their code while taking the test and iterate on their solution.
Multiple Language Testing
You can choose to allow candidates to code in one or more languages.
Once you've selected the languages, click on "Edit Code and Test cases" to open the code editor.
We suggest you start by coding the actual solution to your question. You'll be able to save it for reference. Then you can test your solution by adding test cases. Finally, you can then remove or create bugs in parts of the solution so that candidates will need to solve those portions.
The header and footer section should be used to add any code that candidates shouldn't be able to change. Think of these as wrapper code that ensures the code is run-able and grade-able.
Next, let's add some test cases. Click on "+Add a test case"
You will have two options to choose from: "Autograded test case" or an "Example test case".
An auto-graded test case affects the score and will be automatically graded. Input and expected output will be hidden from candidates. These are great to test a candidate's ability to get their solution to output the correct code for accepted input, erroneous input, and corner cases. Since candidates can't see the input for this test, this ensures they are thinking about all cases.
On the other hand, an example test case won't affect the question score. These are used primarily to frame the question and illustrate input-output by example. Therefore the expected output and input are shown to the candidate.
Remember you can add multiple test cases in one question.
If you choose an auto-graded test case, enter the information in the fields and choose a point value for the test case.
If you want to add an example test case, enter the information in the fields and save the test case.
If you choose more than one language, you will need to add base code and test cases for each language you've added.