Q1. Which of the following types, does repeat block belong to?
(a) Conditional
(b) Iteration
(c) Data
(d) Operator
Ans. (b) Iteration
Repeat block belongs to iteration category.
Q2. Which of the following types, does if...else block belong to?
(a) Conditional
(b) Iteration
(c) Data
(d) Operator
Ans. (a) Conditional
if...else block belongs to conditional category.
Q3. Which of the following command blocks enables you to control a sprite?
(a) Point in direction
(b) Wait_secs
(c) When_key is pressed
(d) Pen down
Ans. (c) When_key is pressed
'When_key is pressed' block enables us to control a sprite.
Q4. Which of the following are conditional blocks?
(a) Repeat
(b) if
(c) Forever
(d) if-else
Ans. if and if-else
if and if-else blocks perform a certain function if a particular condition is true or false. Hence, they are conditional blocks.
Q5. A Scratch script/program begins with
(a) An ask block
(b) A Say block
(c) An event block
(d) A control block
Ans. An event block
In Scratch, the event blocks are used to start the execution of a script when a specific event occurs. Common event blocks include, "When Green Flag Clicked", "When Key Pressed", "When Sprite Clicked".
Q1. True or False.
(a) In Scratch, the Ask block stores the user's response in "question" variable.
Ans. (a) False.
In Scratch, the Ask block stores the user's response in "answer" variable.
(b) In Scratch, movement of a sprite draws on stage only if pen is down.
Ans. (b) True.
When the pen is down, the sprite draws as it moves on the stage.
(c) Multiple sprites can receive a message.
Ans. (c) True.
Scratch provides a broadcast block from Events category that will send the specified message to all the sprites.
(d) A variable can be thought of as a container or placeholder in memory holding different values over time.
Ans. (d) True.
A variable is a placeholder that can store a value as long as the script runs.
(e) An answer variable must be created before using Ask block.
Ans. (e) False.
The Ask block stores the user's response in a default variable named 'answer'. It may not be created by the user beforehand.
Q2. What limits define the X, Y coordinate system of Scratch ?
Ans. The value of X coordinate ranges from -240 to 240 and the value of Y coordinate ranges from -180 to 180.
Q3. Which block will you use to place a sprite at a specific XY position on screen ?
Ans. The go to x:__ y:__ block is used to place a sprite at a specific XY position on screen.
Q4. What are events in Scratch ? How are these useful ?
Ans. An event refers to occurrence of some action recognized by computer. For example, when a key is pressed on the keyboard or when we click a mouse button.
Using events blocks, we can create programs defining actions to be performed in case a specific event occurs. For example, with the help of events, we can rotate our sprite by 15° when the user presses a space key.
Q5. Which block(s) will you use to play sounds in a script ?
Ans. We will use the following blocks to play sounds in a script:
play sound ___
play sound ___ until done
play drum ___ for ___ beats
play note ___ for ___ beats
Q6. Which predefined variables of sound can you use to control the loudness and play-speed of sound, respectively ?
Ans. We can use the volume and tempo to control the loudness and play-speed of sound, respectively.
Q7. What all can you do through Data category of blocks ?
Ans. Data blocks let us create and manipulate data in our animations and games. We can create two types of data: variables and lists. These can be used with sprites and with the stage.
When we specify the name of a variable, we can also specify if the variable is a local variable or a global variable. Once the variable is created, it is available through the Data block and the commands used to manipulate the variable are also available in the Data block.
Q8. What is the difference between repeat and repeat until blocks ?
Ans. Repeat block iterates a specified number of times whereas repeat until block repeats as long as the given condition is false.
Q9. What is the difference between repeat and forever blocks ?
Ans. Repeat block is a finite iteration block i.e., it iterates a specified number of times whereas forever block is an infinite iteration block i.e., it keeps repeating the commands inside it over and over again.
Q10. What is the difference between if and if-else blocks ?
Ans. The if block is used when we have to take action depending on a certain condition being true whereas the if-else block is used when we have to take different courses of action depending upon whether the condition is true or false.
Q11. What is the difference between say and ask blocks ?
Ans. The differences between say and ask blocks are:
- Say block is used to represent speech by sprites whereas ask block is used to prompt something to user asking for a value or response.
- Say block displays a specific speech block in the speech bubble which appears on the screen for a specified amount of time whereas ask block provides a place for the message to be displayed and waits for the response.
- Say block doesn't prompt the user for any response whereas ask block provides an input box where the user can type his response.
- Say block is available under looks category whereas ask block is available under sensing category.
Q12. To send a message to all the sprites in the program, which block will you use ?
Ans. We will use broadcast<message> block from Events category to send a message to all the sprites in the program.
Q13. To respond to a received message, which block can be used by a sprite ?
Ans. We will use When I receive <message> block from Events category to respond to a received message.
Q14. Name the tab and category of blocks that should be selected to do the following :
(i) Ask the user's name
(ii) Add a variable to store points of the game
Ans.
(i) The Ask block under Sensing category
(ii) Make a variable block under Data category
10 videos|97 docs|18 tests
|
1. What is Scratch programming and why is it important for Class 10 students? | ![]() |
2. How does Scratch programming support learning in other subjects? | ![]() |
3. What are the basic components of a Scratch project? | ![]() |
4. Can Scratch programming be used for advanced projects, and if so, how? | ![]() |
5. What skills can students develop by learning Scratch programming? | ![]() |