Back to the full dot-point answer
SingaporeComputer ScienceQuick questions
Algorithms and Problem Solving
Quick questions on Pseudocode fundamentals explained: O-Level Computing
6short Q&A pairs drawn directly from our worked dot-point answer. For full context and worked exam questions, read the parent dot-point page.
What is selection with IF?Show answer
Selection chooses between paths:
What is iteration with WHILE?Show answer
A WHILE loop repeats while a condition is true. It is used when you do not know in advance how many times to loop:
What are a WHILE that never ends?Show answer
The loop body must change the condition (for example read a new value or increase a counter), or it loops forever.
What is q1?Show answer
Write pseudocode that inputs a number and outputs "Even" or "Odd". [3 marks]
What is q2?Show answer
State when you would use a WHILE loop rather than a FOR loop. [2 marks]
What is q3?Show answer
Explain what score = score + 1 does. [2 marks]
Have a question we have not covered?
This dot-point answer is short enough that we have not extracted many short questions yet. Read the full dot-point answer or ask Mo, our study assistant, in the chat for follow ups.