Skip to content
OtisamLMS
Computing

Computing · Quick practice · answer shown after each question

Algorithm design: pseudocode and flowcharts

Question 1 of 10

Question 1 of 10

Draw or describe a flowchart that inputs a mark and outputs "Distinction" for 75 and above, "Pass" for 50 to 74 and "Fail" otherwise.

Question 2 of 10

Question 2 of 10

A FOR loop is most suitable when

Question 3 of 10

Question 3 of 10

A value such as −1 used to mark the end of input is a ___ value.

Question 4 of 10

Question 4 of 10

A sentinel value is a value used to stop input.

Question 5 of 10

Question 5 of 10

What is output by: x ← 3; y ← 4; x ← x + y; OUTPUT x?

Question 6 of 10

Question 6 of 10

Write pseudocode using CASE to output the day name for a number from 1 to 7.

Question 7 of 10

Question 7 of 10

A loop that always runs at least once is the REPEAT ... ___ loop.

Question 8 of 10

Question 8 of 10

Which pseudocode structure repeats while a condition is true?

Question 9 of 10

Question 9 of 10

A WHILE loop may run zero times.

Question 10 of 10

Question 10 of 10

The table used to record values of variables during a dry run is a ___ table.

Questions written by OtisamLMS in the style of the WASSCE. They are not WAEC past questions.