Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 113 - 2607_Trackpad_Pro_5.1_flipbook_C5
P. 113

    Step  5       Create the block stack as shown.

                     Step  6    Now, click on the green flag to run your project.

                            Hashtag

                          #Variable: Changeable value recorded in Scratch's memory
                          #Block: Software code or an algorithm in software programming

                          REVISIT

                       ▶  Variables are a named location where you can store information.
                       ▶  A global variable can be created on any sprite but its value can be accessed or modified by other
                         sprites used in the project.
                       ▶  Local variables can only be accessed or modified from the sprite where it was created.
                       ▶  Sensing blocks are colour-coded light-blue, and are used to control the movement of the sprite in a
                         better manner.

                     1.  Tick ( ) the correct option.
                        a.  Which of the following options best describes the functions of variables?
                              (i)  Storing information                           (ii)  Changing costumes

                            (iii)  Controlling sound effects                    (iv)  Adjusting stage size
                        b.  Identify the role of global variables in Scratch from the options below.

                              (i)  Accessed within one sprite                    (ii)  Accessible by all sprites
                            (iii)  Limited to numeric values                    (iv)  Created automatically

                                                                                                      More on Scratch  111

| 108 109 110 111 112 113 114 115 116 117 118 |