1) Nuna has written the following code to display a menu for a computer game below. She wants to show the menu a number of times throughout the game. What would be the best way for ther to do this? a) Copy and paste the code where it is needed b) Place the code into a loop c) Place the code within a procedure d) Place the code within a selection statement 2) Which of the following code makes use of a function? a) total = price * quantity b) name = "John" c) While Grade != 5 d) name = input("Enter your name") 3) What is the difference between a function and procedure? a) Functions are for maths and Procedures are for strings. b) Functions return values, Procedures may or may not return a value. c) Functions carry out a predefined task, Procedures are tasks you set yourself. d) Functions always return a value, Procedures do not return values. 4) What will this pseudocode output? a) Nothing b) 158 c) 3524 d) 815 5) What will this pseudocode output? a) 68 b) 2435 c) Nothing d) 86 6) Why do functions use parameters? a) To enable the function to utilise variable that are passed to it b) To enable the program to use translators c) To minimise naming errors d) To allow it to return values

Leaderboard

Visual style

Options

Switch template

Continue editing: ?