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.
- 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)
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.
- 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
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.
- 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
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.'
- 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)
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.'
- 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)
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.'
- Drawing: structure chart
- Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
Related past questions: Familiarisation Q4 (2 marks): Structure charts
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).
- 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)
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.'
- 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
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.
- 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
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".
- 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)
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).
- 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)
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.'
- 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
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.
Linear search Term Programming Fundamentals (Year 11)
A search that checks each item in order until the target is found or the list ends. Works on unsorted data; slow for large lists.
Example: 'FOR i = 0 TO length-1: IF list[i] == target THEN found.'
- Pseudocode: Search an array for a value
- 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.
- Code reading: Code or algorithm reading: interpret a fragment and state its output or purpose.
Related past questions: Familiarisation Q8 (3 marks): Algorithm design (linear search); 2021 Software Design and Development HSC Q29 (3 marks): Tracing an algorithm (linear search)
Check this one: Not named in the syllabus; it appears in past questions and the school notes.
Binary search Term Programming Fundamentals (Year 11)
A search on a SORTED list that checks the middle item and discards half the list each time (a divide and conquer method).
Example: 'Binary search needs sorted data; each step halves the search space.'
- 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.
- Pseudocode: Pseudocode question: use it correctly in the exam pseudocode editor.
- Short answer: Short answer (2 to 4 marks): define, outline or explain it and tie it to the scenario.
Related past questions: 2021 Software Design and Development HSC Q28 (5 marks): Debugging an algorithm (binary search)
Check this one: Not named in the syllabus; it appears in past SDD questions.
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.
- 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.
- 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.'
- 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.'
- 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.'
- 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.'
- 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'
- 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'
- 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'
- 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: ...'
- 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'
- 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'
- 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'
- 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'
- 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'
- 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'
- 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'
- 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.
- 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.
- 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