PseudocodeCompiler·by Sherlemious
DocsLearnPracticeExam
FlowchartPricing

IGCSE & O Level Paper 2 Path: all lessons

Level 1: Run (free)

OUTPUT, comments, and <- not =

  • OUTPUT a string
  • Comments and indentation
  • Assignment is <-
  • OUTPUT a number and text
  • Fix the OUTPUT order
  • Boss: three OUTPUT lines

Level 2: Values (free)

DECLARE, types, BOOLEAN, arithmetic, DIV and MOD

  • DECLARE a variable
  • Pick the data type
  • INTEGER vs REAL
  • Arithmetic and brackets
  • BOOLEAN is TRUE or FALSE
  • CONSTANT never changes
  • DIV and MOD
  • Build the formula first
  • Boss: Celsius to Fahrenheit

Level 3: Input (free)

IPO: INPUT → process → OUTPUT

  • INPUT a value
  • Sequence matters
  • Label the IPO
  • INPUT, process, OUTPUT
  • Two INPUTs, one sentence
  • Boss: sum of two numbers

Level 11: Exact lines (free)

The space lives in the string, and the line has nothing extra

  • The space is inside the quotes
  • Name, colon, price
  • Build one sentence from two numbers
  • Boss: word, then how many

Level 12: Formulas (free)

DIV and MOD, then output the number and nothing else

  • Split a total with DIV and MOD
  • Minutes in, hours and leftover out
  • Integer average with DIV
  • Boss: Celsius, number only

Level 13: Slot 1 (free)

The first slot is [1], and a counter starts at 0

  • The first slot is 1
  • First slot and last slot
  • Count the passes
  • Boss: one mark, or Not found

Level 4: Branch

IF / CASE with both branches closed

  • IF … THEN … ENDIF
  • ELSE and ELSEIF
  • Nested IF
  • Relational operators
  • AND OR NOT
  • IF a BOOLEAN flag
  • CASE OF … OTHERWISE
  • Boss: Easy then Medium Selection

Level 5: Repeat

Totaller, counter, flag; pick FOR / WHILE / REPEAT

  • FOR … TO … NEXT
  • FOR … STEP
  • The totaller pattern
  • The counter pattern
  • WHILE can run zero times
  • Sentinel WHILE
  • REPEAT UNTIL validation
  • Which loop?
  • Nested statements, max 3
  • Boss: totaller + counter + trace

Level 6: Text

LENGTH / SUBSTRING with 1-based index

  • STRING is 1-based
  • LENGTH, UCASE, LCASE
  • SUBSTRING(str, start, length)
  • One character at a time
  • Join with &
  • Build initials with &
  • Boss: Medium String Processing

Level 7: Arrays

ARRAY[1:n], fill loop, linear search, 2D [row, col]

  • DECLARE ARRAY[1:n]
  • Fill every slot with FOR
  • Totaller/counter over the array
  • Count how many match
  • Linear search + Found flag
  • Max / min / average
  • 2D arrays [row, col]
  • Sum each row of a 2D array
  • Boss: Medium 1D then Easy 2D

Level 8: Routines

PROCEDURE vs FUNCTION, ≤3 params, ROUND/RANDOM

  • PROCEDURE and CALL
  • PROCEDURE with a parameter
  • FUNCTION and RETURN
  • Use a FUNCTION in OUTPUT
  • Parameters, local vs global
  • ROUND, RANDOM, DIV, MOD
  • Boss: Easy Procedures

Level 9: Files

OPEN → USE → CLOSE, read until EOF

  • Why a file beats variables
  • WRITEFILE and CLOSEFILE
  • READFILE until EOF
  • Count records until EOF
  • Output matching lines
  • OPENFILE FOR APPEND
  • Boss: Easy File Handling

Level 10: Paper

Validation, traces, bubble sort, SQL, gates, 15-mark skeleton

  • Validation checks
  • Presence check
  • Test data and verification
  • Find four errors
  • Find more errors
  • Blank trace table
  • Flowchart → pseudocode
  • Draw a flowchart
  • Complete a flowchart loop
  • Bubble sort with Temp
  • SQL and truth tables
  • Boss: timed 15-mark
TermsPrivacyRefundsContact