Error
There was an error loading the page.
Shows how to use the lpad function to format a time in HH:MM format so that leading zeros are used for numbers less than 10.
Metadata
-
England schools
-
England university
-
Scotland schools
Taxonomy: mathcentre
Taxonomy: Kind of activity
Taxonomy: Context
Contributors
History
Christian Lawson-Perfect 1 week, 4 days ago
Published this.Christian Lawson-Perfect 1 week, 4 days ago
Created this.There is only one version of this question that you have access to.
Name | Type | Generated Value |
---|
hours | integer |
21
|
||||
minutes | integer |
30
|
||||
formatted_time | string |
21:30
|
Generated value: integer
- formatted_time
Parts
Add a part
Choose a type for this new part.
An information part contains only a prompt and no answer input. It is most often used as a Step to provide a hint for a parent part.
More information
|
|
An extension part acts as a placeholder for any interactive element added by an extension, or custom code in the question, which awards marks to the student.
More information
|
|
Gap-fill parts allow you to include answer inputs inline with the prompt text, instead of at the end of the part.
More information
|
|
Ask the student to enter an algebraic expression, using JME syntax.
More information
|
|
Ask the student to enter a number.
More information
|
|
Ask the student to enter a matrix of numbers.
More information
|
|
Ask the student to enter short, non-mathematical text.
More information
|
|
The student must choose one of several options.
More information
|
|
The student can choose any of a list of options.
More information
|
|
The student is presented with a 2D grid of choices and answers. Depending on how the part is set up, they must either match up each choice with an answer, or select any number of choice-answer pairs.
More information
|
|
by |
Mark code provided by the student by running it and a series of validation and marking tests. The validation tests are used to reject an answer if the student has misunderstood the task, for example if they haven't defined a required variable or function. Marking tests check properties of the student's code. Each test awards a proportion of the available credit if it is passed. You can optionally show the student the STDOUT and/or STDERR when running their code. You can give a preamble and postamble which are run before and after the student's code, and also modify the student's code before running it. |
by |
The student must enter the given codeword. Any commas or spaces are stripped out before it's parsed. |
by |
The student must write T or True for 'true', or F or False for 'false'. (Case doesn't matter) |
by |
For questions on differentiation. Takes the student answer and explicitly checks that it satisfies a given differential equation. Will also check that the general solution has the correct number of linearly independent solutions (for up to a third-order ODE). |
by |
A value with units marked right if within an adjustable % error of the correct value. Marked close if within a wider margin of error. |
by |
Allow the student to enter a preselected type, fractions, percentages or decimal |
by |
The student gives a point x at which to evaluate a given function f. The answer is correct if f(x) is the expected value. |
by |
Have you submitted your answer to Canvas? |
by |
The answer is a Semicolon-separated list of numbers. The list is marked correct if each number occurs the same number of times as in the expected answer, and no extra numbers are present. You can optionally treat the answer as a set, so the number of occurrences doesn't matter, only whether each number is included or not. |
by |
The student must enter the given list of codewords. |
by |
The answer is a comma-separated list of numbers. The list is marked correct if each number occurs the same number of times as in the expected answer, and no extra numbers are present. You can optionally treat the answer as a set, so the number of occurrences doesn't matter, only whether each number is included or not. |
by |
The answer is a comma-separated list. The list is marked correct if each element occurs the same number of times as in the expected answer, and no extra elements are present. You get part marks if you get at least half of the required elements and no extra elements. You get part marks if you get all the elements but include extra elements. You get part marks if you get at least half and add one or more extras. You can choose whether or not the input is case-sensitive, and you can choose the proportion of marks the student gets if they give a partially correct answer. |
by |
The answer is a comma-separated list of numbers. The list is marked correct if each number occurs the same number of times as in the expected answer, and no extra numbers are present. |
by |
The student's answer should be equivalent to the expected answer modulo the base set by the question author. |
by |
The student enters a quantity with units. |
by |
The student enters a quantity with units. Answer accepted as correct within range defined as percentage of expected answer. |
by |
An editable spreadsheet. Ranges of cells can be disabled, and you can specify ranges of cells to be marked. A cell is marked correct if its value is equal to the value in the expected answer spreadsheet. |
by |
Submit a handwritten answer. |
by |
Submit an answer on a write-on exam paper (in an invigilated exam) |
by |
Submit an answer on paper (in an invigilated exam) |
by |
The student must write T or True for 'true', or F or False for 'false'. (Case doesn't matter) |
by |
The answer is either 'True' or 'False' |
by |
The student must write a permutation in cycle notation. You can optionally require the cycles to be disjoint and/or all of length 2. |
by |
The student must write out a permutation (an element of Sn) in two-line form: the top line always contains the numbers 1 to n, and on the bottom line they must write the numbers that they are mapped to. |
by |
The student is shown two radio choices: "Yes" and "No". One of them is correct. |
Use this tab to check that this question works as expected.
Part | Test | Passed? |
---|