by BlastRoom
Students explain what sub-routines and procedures are, why they let us reuse code, and how to define and call one.
#computing#ict#cambridge_computing#cambridge_computing_stage_6
20 questions
One question set, multiple game modes. Tap any game to see it in action. Not sure which to pick?
What is a sub-routine?
Which word is another name for a sub-routine?
What is the main reason for using a sub-routine?
What does it mean to define a sub-routine?
What does it mean to call a sub-routine?
A sub-routine has been defined but never called. What happens when the program runs?
In Scratch, where do you make your own sub-routine block?
In Scratch, which hat block holds the steps of your own block?
A sub-routine called drawSquare draws one square. The program calls drawSquare 3 times. How many squares are drawn?
A Scratch block draw square with side (size) is called twice: first with 30, then with 60. What does it draw?
A sub-routine called jump does: change y by 50, wait 0.5 seconds, change y by -50. After jump runs once, where is the sprite?
A sub-routine is used in 5 places in a program. You find a mistake inside it. How many places do you need to fix?
The main program reaches a call to drawStar. What happens after drawStar finishes?
Which is the best name for a sub-routine that plays a tune when the player wins?
When is it a good idea to put some code into a sub-routine?
A program draws a house with four windows that all look the same. Which part is best made into a sub-routine?
How do sub-routines help when breaking a big problem into smaller parts?
A sub-routine called resetGame sets score to 0 and lives to 3. When should it be called?
In Scratch, your block draw square with side (50) has an input. What does the input let you do?
How does using sub-routines usually change a program?
Outrun the horde and crack the passcode.
Pick a tile, answer, hit bonuses and steals.
Networks and the Internet
20 questions
Robots and Automation
20 questions
Search and Sort Algorithms
20 questions
Selecting Hardware and Software
20 questions
Spreadsheet Formulas
20 questions
Stage 6 Review 1
40 questions
Stage 6 Review 2
40 questions
Variables in Programming
20 questions
Animation and Movement
20 questions
Automation in Industry
20 questions