1) What is the purpose of the forever block in Scratch? a) perform a task only once b) To repeat a task until the user clicks the stop button c) To repeat a task a specific number of times d) To create a new variable 2) How are subroutine created in Scratch? a) Control b) Events c) My Blocks d) look 3) A subroutine is a piece of code that can be used repeatedly in a program a) True b) False 4) What type of construct allows a program to make a choice between two options? a) Loop b) Selection c) Variable d) Procedure 5) Which Scratch block would you use to output a message to the screen for 2 seconds? a) Say b) Repeat c) Wait d) Broadcast 6) The if, then, else block is used for iteration. a) True b) False 7) Which of these statements best describes decomposition a) Executing a sequence of instructions in any order b) When you use a subroutine to write an algorithm c) Writing a sequence of instructions d) Breaking down a problem into small manageable chunks 8) Which of these sets of instructions is not a subroutine? (Image source: Scratch blocks) a) A b) B c) C d) D 9) What is the purpose of a prototype in programming?1. a) a) To create the final product b) b) To test a small part of a program c) c) To store data d) d) To write documentation 10) Which of the following is an example of an INTEGER variable? a) a) "Hello" b) b) 'A' c) c) 100 d) d) True 11) Which Scratch block is used for iteration (repeating actions)? a) a) if block b) b) wait block c) c) forever block d) d) broadcast block 12) What is a programming construct? a) a) A block of reusable code b) b) A method for storing data c) c) A common building block of programs, such as iteration, selection, and procedures d) d) A tool for creating user interfaces

Leaderboard

Visual style

Options

Switch template

Continue editing: ?