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
0%
GCSE.Unit2.Subroutines
Delen
Delen
Delen
door
Mrszhong
KS4
KS5
Y9
Y10
Y11
Computing
Inhoud Bewerken
Afdrukken
Embedden
Meer
Toewijzingen
Scorebord
Meer weergeven
Minder weergeven
Dit scoreboard is momenteel privé. Klik op
Delen
om het publiek te maken.
Dit scoreboard is uitgeschakeld door de eigenaar.
Dit scoreboard is uitgeschakeld omdat uw opties anders zijn dan die van de eigenaar.
Opties Herstellen
Quiz
is een open template. Het genereert geen scores voor een scoreboard.
Inloggen vereist
Visuele stijl
Lettertypen
Abonnement vereist
Opties
Template wisselen
Alles weergeven
Er zullen meer templates verschijnen terwijl je de activiteit gebruikt.
Open resultaten
Kopieer link
QR-code
Verwijderen
Automatisch opgeslagen activiteit "
" herstellen?