TK Study

Software Engineering › Flashcards › Pseudocode questions

Flashcards for Pseudocode questions

33 cards where the term can be tested as a pseudocode question. Study these as flip cards Random

Development Process Programming Fundamentals (Year 11)

Writing the code that implements the design in the chosen language, following the algorithms and good coding practice (comments, naming, modular subroutines).

Example: Development turns the design into working code.

Where you would use it in the test
  • Multiple choice: Multiple choice: pick the option that matches the definition or example.
  • Fill in the blanks: Fill in the blanks or dropdown: choose this term to complete a statement or table.
  • Python: Write the code from a design
  • Pseudocode: Write the algorithm

Related past questions: Sample exam Q21b (5 marks): Python: subroutines, lists, loops; 2025 HSC Q19 (3 marks): Developing secure code (Python)

Memorise: Software development steps and algorithm design

Algorithm Term Programming Fundamentals (Year 11)

A finite, ordered set of clear steps that solves a problem or completes a task, with defined inputs and outputs.

Example: An algorithm can be shown as pseudocode or a flowchart.

Where you would use it in the test
  • Multiple choice: Multiple choice: pick the option that matches the definition or example.
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Drawing: flowchart
  • Short answer: Short answer (2 to 4 marks): define, outline or explain it and tie it to the scenario.

Related past questions: Sample exam Q14 (3 marks): Algorithm design (subroutines); 2025 HSC Q17 (3 marks): Algorithm design

Memorise: Software development steps and algorithm design

Sequence Term Programming Fundamentals (Year 11)

A control structure where statements run one after another in the order written.

Example: Every program uses sequence; selection and iteration change the order.

Where you would use it in the test
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Python: Python question: write or complete it in the online Python tool.
  • Drawing: flowchart
  • Multiple choice: Multiple choice: pick the option that matches the definition or example.

Related past questions: 2025 HSC Q17 (3 marks): Algorithm design

Memorise: Software development steps and algorithm design

Selection Term Programming Fundamentals (Year 11)

A control structure that chooses which path to run depending on a condition: binary selection (IF ... ELSE), multi-way selection (CASEWHERE) or nested IF.

Example: 'Use IF/ELSE selection to output Pass when mark >= 50.'

Where you would use it in the test
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Python: if / elif / else
  • Drawing: flowchart decision diamond
  • Multiple choice: Multiple choice: pick the option that matches the definition or example.

Related past questions: 2025 HSC Q19 (3 marks): Developing secure code (Python); 2025 HSC Q26 (5 marks): Design, construct and implement a solution (Python)

Memorise: Software development steps and algorithm design

Iteration (repetition) Term Programming Fundamentals (Year 11)

A control structure that repeats statements while or until a condition: pre-test loop (WHILE ... ENDWHILE), post-test loop (REPEAT ... UNTIL) or counted loop (FOR ... NEXT).

Example: 'FOR each item in the array: total = total + item.'

Where you would use it in the test
  • Pseudocode: Iterate through an array and sum it (2025)
  • Python: for / while loops
  • Drawing: flowchart loop
  • Multiple choice: Multiple choice: pick the option that matches the definition or example.

Related past questions: 2025 HSC Q17 (3 marks): Algorithm design; 2025 HSC Q26 (5 marks): Design, construct and implement a solution (Python)

Memorise: Software development steps and algorithm design

Refinement Term Programming Fundamentals (Year 11)

Adding successively more detail: a subroutine is expanded into its own algorithm or structure chart, named the same as the subroutine.

Example: 'Show the refinement of the Validate subroutine in a separate chart.'

Where you would use it in the test
  • Drawing: structure chart
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.

Related past questions: Familiarisation Q4 (2 marks): Structure charts

Memorise: Software development steps and algorithm design

Pseudocode Term Programming Fundamentals (Year 11)

Structured, language-independent English-like code: keywords in capitals (IF, ELSE, WHILE, ENDWHILE, FOR, NEXT, SET, GET, DISPLAY), paired structures and consistent indentation.

Example: Always write a mainline plus subroutines, use indentation and close every structure (ENDIF, ENDWHILE).

Where you would use it in the test
  • Pseudocode: Write an algorithm in the exam pseudocode editor
  • Code reading: Read pseudocode and give the output
  • Multiple choice: Multiple choice: pick the option that matches the definition or example.

Related past questions: 2025 HSC Q17 (3 marks): Algorithm design; Sample exam Q14 (3 marks): Algorithm design (subroutines); Familiarisation Q8 (3 marks): Algorithm design (linear search)

Memorise: Software development steps and algorithm design

Subroutine (module, subprogram, procedure) Term Programming Fundamentals (Year 11)

A named block of statements that performs one specific task and can be called many times; the terms subroutine, module, subprogram and procedure are used interchangeably in the course.

Example: 'One logical task per subroutine makes code reusable and easier to maintain.'

Where you would use it in the test
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Python: Python question: write or complete it in the online Python tool.
  • Multiple choice: Multiple choice: pick the option that matches the definition or example.
  • Short answer: Short answer (2 to 4 marks): define, outline or explain it and tie it to the scenario.

Related past questions: Sample exam Q14 (3 marks): Algorithm design (subroutines); Sample exam Q21b (5 marks): Python: subroutines, lists, loops

Memorise: Software development steps and algorithm design

Function v procedure Term Programming Fundamentals (Year 11)

A function returns a value to the caller (RETURN); a procedure carries out a task and does not return a value.

Example: 'def calc_total(a, b): return a + b' is a function.

Where you would use it in the test
  • Python: def with return
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Multiple choice: Multiple choice: pick the option that matches the definition or example.

Related past questions: Sample exam Q21b (5 marks): Python: subroutines, lists, loops; Familiarisation Q13 (6 marks): Python: lists, loops, selection

Memorise: Software development steps and algorithm design

Parameter and argument Term Programming Fundamentals (Year 11)

A parameter is a variable in the subroutine's definition that receives data; an argument is the actual value passed when the subroutine is called.

Example: 'def greet(name)' has parameter name; 'greet("Sam")' passes argument "Sam".

Where you would use it in the test
  • Python: Python question: write or complete it in the online Python tool.
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Multiple choice: Multiple choice: pick the option that matches the definition or example.

Related past questions: Sample exam Q18b (3 marks): Developing secure code (Python input validation)

Memorise: Software development steps and algorithm design

Mainline Term Programming Fundamentals (Year 11)

The main algorithm that controls the program by calling subroutines in order. Good mainlines are clear and uncluttered.

Example: Put calls to your subroutines in the mainline, and call functions after they are defined (2025 Q19 marker note).

Where you would use it in the test
  • Pseudocode: Write mainline then subroutines (exam process)
  • Python: Python question: write or complete it in the online Python tool.
  • Multiple choice: Multiple choice: pick the option that matches the definition or example.

Related past questions: 2025 HSC Q19 (3 marks): Developing secure code (Python); Sample exam Q14 (3 marks): Algorithm design (subroutines)

Memorise: Software development steps and algorithm design

Inputs, outputs and purpose of an algorithm Term Programming Fundamentals (Year 11)

When analysing an algorithm, identify the data it takes in (inputs), the results it produces (outputs), what it is designed to do (purpose) and how it connects to other subroutines.

Example: 'Inputs: array of marks. Output: the average. Purpose: calculate the class mean.'

Where you would use it in the test
  • Code reading: Code or algorithm reading: interpret a fragment and state its output or purpose.
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Short answer: State what the algorithm does

Related past questions: 2025 HSC Q17 (3 marks): Algorithm design

Memorise: Software development steps and algorithm design

Check this one: Not found word-for-word in the supplied syllabus, specifications, marking guidelines or notes; the definition is standard computing knowledge, so check it against your class notes.

Array Term Programming Fundamentals (Year 11)

A data structure holding a fixed number of items of the same type, accessed by index; can be single or multi-dimensional (rows and columns).

Example: 'marks[0]' is the first item.

Where you would use it in the test
  • Pseudocode: Iterate and sum an array
  • Python: 2D list
  • Multiple choice: Multiple choice: pick the option that matches the definition or example.
  • Code reading: Code or algorithm reading: interpret a fragment and state its output or purpose.

Related past questions: 2025 HSC Q17 (3 marks): Algorithm design; Sample exam Q21a (1 mark): 2D arrays (Python); Sample exam Q21b (5 marks): Python: subroutines, lists, loops

Memorise: Data structures

Clear and uncluttered mainline Term The Object-Oriented Paradigm (Year 11)

A mainline that only calls well-named subroutines or methods in order, so the overall flow is easy to follow.

Example: Keep the mainline to a few calls; put detail in subroutines.

Where you would use it in the test
  • Multiple choice: Multiple choice: pick the option that matches the definition or example.
  • Multi-select: Multi-select: you tick every correct option, so know all its features or goals.
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Python: Python question: write or complete it in the online Python tool.

Related past questions: Sample exam Q14 (3 marks): Algorithm design (subroutines)

Memorise: Testing and code quality (Year 11)

One logical task per subroutine Term The Object-Oriented Paradigm (Year 11)

Each subroutine does a single clear job, which makes it reusable, testable and easier to fix.

Example: 'calculateTotal() only calculates; displayTotal() only displays.'

Where you would use it in the test
  • Multiple choice: Multiple choice: pick the option that matches the definition or example.
  • Short answer: Short answer (2 to 4 marks): define, outline or explain it and tie it to the scenario.
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Python: Python question: write or complete it in the online Python tool.

Related past questions: Sample exam Q14 (3 marks): Algorithm design (subroutines); Sample exam Q21b (5 marks): Python: subroutines, lists, loops

Memorise: Testing and code quality (Year 11)

Closed-loop control Term Programming Mechatronics (Year 11)

A control system where sensors feed the result back and the algorithm adjusts the output to reach a target (thermostat, cruise control).

Example: 'Closed: read the sensor, compare with the target, adjust the motor.'

Where you would use it in the test
  • Multiple choice: Multiple choice: pick the option that matches the definition or example.
  • Matching or table: Matching or table question: match it to its description, example or category.
  • Fill in the blanks: Fill in the blanks or dropdown: choose this term to complete a statement or table.
  • Short answer: Short answer (2 to 4 marks): define, outline or explain it and tie it to the scenario.
  • Pseudocode: Control loop with feedback

Memorise: Mechatronics: hardware, sensors, actuators, control

Control algorithm pattern (line follower) Code pattern Programming Mechatronics (Year 11)

A closed-loop loop: WHILE the robot is running, read the sensor, IF the sensor sees dark THEN turn one way ELSE turn the other, ENDIF, ENDWHILE.

Example: 'WHILE on: read light; IF dark THEN turn left ELSE turn right.'

Where you would use it in the test
  • Pseudocode: Write a control loop
  • Code reading: Code or algorithm reading: interpret a fragment and state its output or purpose.
  • Multiple choice: Multiple choice: pick the option that matches the definition or example.

Memorise: Mechatronics: hardware, sensors, actuators, control

Check this one: Not found word-for-word in the supplied syllabus, specifications, marking guidelines or notes; the definition is standard computing knowledge, so check it against your class notes.

Mainline and subroutines (algorithms) Diagram Diagrams and Modelling Tools (Years 11 and 12)

Start complex algorithms with a clear, uncluttered mainline that calls subroutines; the details of each subroutine are in separate algorithms.

Example: 'BEGIN Main: GetData, Process, Display END.'

Where you would use it in the test
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Drawing: Drawing question: draw or label it in the online drawing tool.
  • Short answer: Short answer (2 to 4 marks): define, outline or explain it and tie it to the scenario.

Related past questions: Sample exam Q14 (3 marks): Algorithm design (subroutines)

Memorise: Drawing rules: DFD, structure chart, storyboard, decision tree, class diagram, ERD

Pseudocode keywords Code pattern Code Patterns: Pseudocode, Python, SQL, CSS (Years 11 and 12)

Keywords are in capitals; structural elements come in pairs (BEGIN/END, IF/ENDIF, WHILE/ENDWHILE); indent to show control structures.

Example: 'IF mark >= 50 THEN ... ENDIF'

Where you would use it in the test
  • Pseudocode: Write pseudocode (2025 Q17)
  • Code reading: Code or algorithm reading: interpret a fragment and state its output or purpose.
  • Fill in the blanks: Fill in the blanks or dropdown: choose this term to complete a statement or table.

Related past questions: 2025 HSC Q17 (3 marks): Algorithm design; Sample exam Q7 (1 mark): Python to pseudocode; Sample exam Q14 (3 marks): Algorithm design (subroutines); Familiarisation Q8 (3 marks): Algorithm design (linear search)

Memorise: Python and SQL you must be able to write

Sequence Code pattern Code Patterns: Pseudocode, Python, SQL, CSS (Years 11 and 12)

Steps executed one after another in the order written.

Example: 'GET a; GET b; total = a + b'

Where you would use it in the test
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Code reading: Code or algorithm reading: interpret a fragment and state its output or purpose.
  • Drawing: Drawing question: draw or label it in the online drawing tool.

Related past questions: 2025 HSC Q17 (3 marks): Algorithm design

Memorise: Python and SQL you must be able to write

Binary selection (IF THEN ELSE) Code pattern Code Patterns: Pseudocode, Python, SQL, CSS (Years 11 and 12)

IF condition THEN process ELSE other process ENDIF: one of two paths is taken.

Example: 'IF age >= 18 THEN DISPLAY "Adult" ELSE DISPLAY "Minor" ENDIF'

Where you would use it in the test
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Code reading: Code or algorithm reading: interpret a fragment and state its output or purpose.
  • Drawing: Drawing question: draw or label it in the online drawing tool.

Related past questions: 2025 HSC Q17 (3 marks): Algorithm design

Memorise: Python and SQL you must be able to write

Multi-way selection (CASEWHERE) Code pattern Code Patterns: Pseudocode, Python, SQL, CSS (Years 11 and 12)

CASEWHERE expression evaluates to choice a: ... OTHERWISE: default END CASE; only one process runs.

Example: 'CASEWHERE grade evaluates to "A": ... OTHERWISE: ...'

Where you would use it in the test
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Code reading: Code or algorithm reading: interpret a fragment and state its output or purpose.
  • Drawing: Drawing question: draw or label it in the online drawing tool.

Memorise: Python and SQL you must be able to write

Nested IF Code pattern Code Patterns: Pseudocode, Python, SQL, CSS (Years 11 and 12)

An IF inside the ELSE of another IF to test several conditions where only one process runs.

Example: 'IF a THEN ... ELSE IF b THEN ... ELSE ... ENDIF ENDIF'

Where you would use it in the test
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Code reading: Code or algorithm reading: interpret a fragment and state its output or purpose.
  • Python: Python question: write or complete it in the online Python tool.

Related past questions: 2025 HSC Q17 (3 marks): Algorithm design

Memorise: Python and SQL you must be able to write

WHILE loop (pre-test) Code pattern Code Patterns: Pseudocode, Python, SQL, CSS (Years 11 and 12)

WHILE condition is true ... ENDWHILE: the condition is tested before each loop, so the body may never run.

Example: 'WHILE count < 5 ... ENDWHILE'

Where you would use it in the test
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Code reading: Code or algorithm reading: interpret a fragment and state its output or purpose.
  • Python: Python while

Related past questions: 2025 HSC Q17 (3 marks): Algorithm design; Sample exam Q9 (2 marks): Algorithm design (guessing game)

Memorise: Python and SQL you must be able to write

REPEAT UNTIL loop (post-test) Code pattern Code Patterns: Pseudocode, Python, SQL, CSS (Years 11 and 12)

REPEAT ... UNTIL condition is true: the body runs at least once, then the condition is tested.

Example: 'REPEAT GET guess UNTIL guess = answer'

Where you would use it in the test
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Code reading: Code or algorithm reading: interpret a fragment and state its output or purpose.

Related past questions: Sample exam Q9 (2 marks): Algorithm design (guessing game)

Memorise: Python and SQL you must be able to write

FOR / NEXT loop (counted) Code pattern Code Patterns: Pseudocode, Python, SQL, CSS (Years 11 and 12)

FOR variable = start TO finish STEP increment ... NEXT variable; used when the number of repeats is known.

Example: 'FOR i = 1 TO 5 ... NEXT i'

Where you would use it in the test
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Code reading: Code or algorithm reading: interpret a fragment and state its output or purpose.
  • Python: Python question: write or complete it in the online Python tool.

Related past questions: 2025 HSC Q17 (3 marks): Algorithm design

Memorise: Python and SQL you must be able to write

Check this one: Not found word-for-word in the supplied syllabus, specifications, marking guidelines or notes; the definition is standard computing knowledge, so check it against your class notes.

Subroutine and function (pseudocode) Code pattern Code Patterns: Pseudocode, Python, SQL, CSS (Years 11 and 12)

BEGIN name (parameters) ... END name. A function returns a single value with RETURN.

Example: 'BEGIN Add (x, y) total = x + y RETURN total END Add'

Where you would use it in the test
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
  • Code reading: Code or algorithm reading: interpret a fragment and state its output or purpose.
  • Python: Python question: write or complete it in the online Python tool.

Related past questions: Sample exam Q14 (3 marks): Algorithm design (subroutines)

Memorise: Python and SQL you must be able to write

Array sum pattern Code pattern Code Patterns: Pseudocode, Python, SQL, CSS (Years 11 and 12)

Set total to 0, loop through every item adding it to the total, then display the total (initialise, loop, accumulate, output).

Example: 'total = 0; FOR each item: total = total + item'

Where you would use it in the test
  • Pseudocode: Write algorithm (2025 Q17)
  • Python: Python question: write or complete it in the online Python tool.

Related past questions: 2025 HSC Q17 (3 marks): Algorithm design

Memorise: Python and SQL you must be able to write

Check this one: A coding pattern from the exam solution style, not a syllabus term.

Linear search pattern Code pattern Code Patterns: Pseudocode, Python, SQL, CSS (Years 11 and 12)

Check each item in order until found or the end is reached; set a Found flag, loop through and stop on a match.

Example: 'found = False; for i in list: if i == target: found = True'

Where you would use it in the test
  • Pseudocode: Linear search (familiarisation Q8)
  • Python: Python question: write or complete it in the online Python tool.

Related past questions: Familiarisation Q8 (3 marks): Algorithm design (linear search)

Memorise: Python and SQL you must be able to write

Construct Command word Command Words and Question-type Skills

Make; build; put together items or arguments.

Example: 'Construct a SQL query.' Answer: build the diagram, query or code with every required feature.

Where you would use it in the test
  • Drawing: Drawing question: draw or label it in the online drawing tool.
  • Python: Python question: write or complete it in the online Python tool.
  • SQL: SQL question: write or read it in the SQL query tool.
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.

Related past questions: 2025 HSC Q21 (4 marks): SQL queries; 2025 HSC Q22 (3 marks): Modelling tools

Memorise: NESA key verbs: what each one asks for

Pseudocode questions Process Command Words and Question-type Skills

Write HSC-style pseudocode: capital keywords, paired END words, indentation; initialise variables; output the required result.

Example: 2025 Q17 array sum.

Where you would use it in the test
  • Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.

Related past questions: 2025 HSC Q17 (3 marks): Algorithm design

Memorise: Exam day facts, key verbs and technique