CHAPTER 6
BASIC PROGRAMMING CONSTRUCTS WITH SCRATCH
FULL EXERCISE SOLVED
Objective Type Questions
1. Choose the correct option. (Tick all that apply):
a. How do you move a sprite in Scratch?
i. use the 'move' block (correct)
ii. use the 'go to' block
iii. use the 'jump' block
iv. use the 'travel' block
b. What is the construct used for making decisions in Scratch?
i. 'if-else'(correct)
ii. 'switch'
iii. 'select'
iv. 'evaluate'
c. How do you crate a variable in Scratch?
i. use the 'create variable' block (correct)
ii. use the 'set variable' block
iii. use the 'define variable' block
iv. use the 'new variable' block
d. What is the construct used for crating a new script in Scratch?
i. 'script' (correct)
ii. 'procedure'
iii. 'function'
iv. 'event'
e. How do you check if a certain condition is true in Scratch?
i. use the 'if' block(correct)
ii. use the 'check' block
iii. use the 'compare' block
iv. use the 'condition' block
f. What is the construct used for creating a broadcast message in Scratch?
i. 'broadcast'
ii. 'message'(correct)
iii. 'signal
iv. 'event'
g. How do you create a list in Scratch?
i. use the 'create list' block(correct)
ii. use the set ust block
iii. use the 'define list' block
iv. use the 'new list' block
h. What is the construct used for creating a wait time in Scratch?
i. 'wait'(correct)
ii. 'pause'
iii. 'sleep'
iv. 'halt'
I. How do you clone a sprite in Scratch?
i. use the 'clone' block
ii. use the 'duplicate' block (correct)
iii. use the 'copy' block
iv. use the 'replicate' block
j. What is the construct used for creating a repeat until loop in Scratch?
i. 'repeat until' (correct)
ii. 'loop until'
iii. 'repeat while'
iv. 'loop while'
k. What block is used to create a loop in Scratch?
i. 'repeat' (correct)
ii. 'loop'
iii. 'forever'
iv. 'while'
Descriptive Type Questions:
1. Answer the following
a. In what situations are conditional statements used?
Answer:
When the program has to choose between two or more courses
of actions, the conditional statements are used. The conditions
control the programs flow based on the true or false value of the
condition.
b. How do we change the backdrop in Scratch?
Answer: Following step should be follow
1. Select a new backdrop from choose a backdrop option.
2. Select a new backdrop from the backdrop library
3. Now, the desired backdrop and sprite you want to select from
library.
4. Or you own backdrop upload from PC hard drive.
c. Describe the procedure of adding and deleting the code
blocks?
Answer:
Adding Block:
To create a new code block, drag the required block
from the Block Palette the Code Area.
Deleting Block:
To deleting Blocks, Drag the blocks you want to delete over the
Block Palette to remove them from the stage. You canalso right
click a block and select Delete Block from the menu that appears.
d. Define Variables and their types.
Variables:
Variables in programming terminology serve as a
container that can store some value. Variables store a varying
value in their memory. Its types are integer, float, string, list, set,
object etc.
e. What is the difference between a variable and a list in
Scratch?
Variable: A variable is a container for storing a single value or
data item.
List: A list is a data structure that can hold multiple values or
items.
f. How do you change the value of a variable in Scratch?
In Scratch, you can change the value of a variable using the "Set
[variable] to [value]" block. This block allows you to assign a new
value to the specified variable