πŸ€–

CodeQuest Exam-Ready

Interactive OCR-style pseudocode tutor with original exam-skills missions

0 / 54 missions⚑ 0 XPπŸ”₯ 0
πŸš€

OfflineAuto-marked

Your mission

Key syntax
Mission checklist
πŸ€–
Byte says

Predict what your program should do before pressing Run.

Model solution
Ctrl+Enter: Run Β· Ctrl+Shift+Enter: Check
Ready.
OUTPUT CONSOLE

Runner syntax guide

Output and input
print(x)
name = input("Name: ")
Selection
if condition then
elseif condition then
else
endif
Loops
for i = 0 to 4 … next
while condition … endwhile
do … until condition
Arrays
array a[5]
array grid[3,4]
a[0] Β· grid[1,2]
Functions
function double(n)
return n * 2
end function
Procedures
procedure greet(name)
end procedure
greet("Sam")
Strings
word.length
word.substring(2,4)
word.left(3) Β· word.right(3)
word.upper Β· word.lower
Casts and Booleans
whole = int(value)
text = str(number)
True Β· False
SQL missions
SELECT field
FROM table
WHERE condition
Files
newFile("a.txt")
f = open("a.txt")
f.writeLine(x)
f.readLine()
f.endOfFile()
f.close()

Important: arrays and strings are zero indexed. Conditions compare using == or !=. Use AND, OR and NOT for logic.

πŸ†

Mission complete!