As Topic 9 Revision Questions Scheme
As Topic 9 Revision Questions Scheme
2. Identify the values stored in the variables when the assignment statements in the code below
have all been completed. The function ASC returns the ASCII value of a character.
ANSWER
3. In the programming language you have chosen to use, write a short program to input MyValue
and YourValue and complete the single choice with an alternative IF statement for the
Pseudocode below. Note any differences in the command words you need to use and the
construction of your programming statements compared with the pseudocode.
4. In pseudocode, write statements to check that a number input is between 10 and 20 or over
100. Make use of brackets to ensure that the order of the comparisons is clear.
ANSWER
5. In pseudocode, write an algorithm to set a password for a user when they have to input the
same word twice. Then allow the user three attempts to enter the correct password. Complete an
identifier table for your algorithm.
6. The flowchart below has been extended to allow more than one mark to be input.