Predict the output
For ages 13 and up.
Tiny Python and JavaScript snippets: what they print.Start the quiz Every kit
What it asks
- What does this JavaScript print?
let t = 0; for (let i = 1; i <= 6; i++) t += i * i; console.log(t);
The squares 1 to 36 add to 91. - What does this Python print?
print(sum(range(1, 13)))
range(1, 13) is 1 to 12; their sum is 78. - What does this Python print?
print("window"[0:4])Slicing takes characters 0 up to but not including 4: "wind".
- Field
- Computing and data
- Level
- ages 13 and up
- Questions
- 10, fresh each time
- Shape
- One word
- Made by
- rule, in code, no model
- Settings
- practice: answers at once, retries without limit, no security
About this kit.
Tiny Python and JavaScript snippets: what they print.
What the computing and data kits are
Programming, algorithms, data structures, databases, networks, security and computing theory: code read and its output given, lines put in order, a program annotated, complexity classified, terms defined. For students, self-learners and hiring.
Why they are built this way
The only honest test of programming is programming. The code shapes here run the candidate's code against tests, ask what a program prints, and ask for the bug. Multiple choice about code tests reading; these test the skill.
How to use them
Use code-read kits to build fluency, code-exec for the real thing. Paste your own code base or documentation for questions on it. For hiring, combine the code shapes with a test from your own stack.
Made by rule
This kit is made in code: every time it opens, the numbers, words or arrangements are drawn fresh from its rule, so the same kit taken twice is two different quizzes from one rule. There is no answer bank to find, and the practice never runs out. Each question carries its explanation, shown at once in study mode.
The shape: one word
A single word, matched exactly or with a slip allowed: the purest recall question, and the fastest to mark by rule.
EdProcto marks short text by rule against the accepted list, with case, spacing and punctuation ignored and a one-letter slip allowed when you say so. Gaps are marked gap by gap. Open answers wait in your grading queue: you grade each against your model answer and rubric, or ask Procto AI on that answer and keep or change its mark; nothing is released until you release it.
Taking it
Open it in study mode for the answer and the explanation after each question, and a retry of only what you missed. Switch to exam mode for the real conditions. It comes due again in a few days; the dashboard shows what is due and what you missed last time. Share it with a code for a class, print it as a paper, or host it on a screen for a room.
Questions.
- What is in the Predict the output kit?
- 10 questions made by rule with fresh numbers every time it is opened, each with an explanation. Tiny Python and JavaScript snippets: what they print.
- Does it cost anything?
- A free account opens every kit. Procto AI’s writing runs on a monthly allowance that the free plan includes; a children’s kit uses none of it, because its questions are made by rule.
- What happens after the quiz?
- The study screen shows the answer and the explanation after each question, then the questions missed, and offers a retry of those. Come back in a few days and take it again: what is still right then is what is known.
Also in computing and data.
Write 37 in binary.
Write 200 in hex.
A = 1, B = 0 into a NAND gate: the output?
The complexity of binary search?
SELECT COUNT(*) WHERE age > 30 on a small table.
What does this print?