For content creators›Question Bank›Creating a Question

4.2Creating a Question

You can also create your own questions to suit your specific training needs. A question you create is added to the Question Bank and can be reused across pathways and assessments.

4.2.1Write the Problem Statement

Describe the problem in the rich-text editor. You can format the text, add worked examples and constraints, and switch to a raw HTML view for finer control.

01 · BASICS Question Title Two Sum — return indices Question Description BIU </> Start typing here…

4.2.2Set the Difficulty and Question Type

Set the question’s difficulty (Easy, Medium, or Hard) and its question type — Assessment, Pathway, or Both. The type controls where the question can be used; choose Both to make it available in either mode.

02 · CONFIGURATION Difficulty Level Easy▾ Type Pathway▾ “Both” makes it available in Assessments and Pathways.

4.2.3Choose a Solution Type

Choose the kind of solution the question expects:

  • Problem — a classic test-case coding question.
  • Web Project — a multi-file HTML, CSS, and JavaScript project.
  • Java Project — a project with multiple Java files.
Solution Type Problem▾ Problem · Web Project (multi-file HTML/CSS/JS) · Java Project (multiple Java files)

4.2.4Add Test Cases

Add the test cases used to grade a submission. The first test case is shown to learners as a worked sample; the rest stay hidden and are used only when a learner submits.

03 · TEST CASES TEST CASE 1 BASIC Remove INPUT [2, 7, 11, 15], 9 OUTPUT [0, 1] + Add Test Case

4.2.5Add Driver Code and a Starter Skeleton

For each language, add the hidden driver code that runs the learner’s solution, and a starter skeleton that the learner sees and writes into. Learners never see the driver code or the hidden test cases.

Hidden driver code (learners never see this) // runs the solution int[]r = twoSum(nums, t);assertequals(r, exp); Starter skeleton (learners write here) public int[] twoSum(...) {// your code}

4.2.6Add Languages

Offer the question in one or more languages — Java, Python, JavaScript, or C++. Each language has its own starter skeleton and driver code.

04 · SUPPORTED LANGUAGES Java Python JavaScript C++