Page 112 - 2422_C5_Flipbook
P. 112

Factopedia                           Let’s PraCtiCe                               Century   #Technology Literacy
                                                                                                  21 st
                                                                                                  Skills
                                                     Open Scratch. Create a script using sensing block and
                                                     conditional block where a penguin asks questions to a
                                                     bear.







                   There is a fun feature                   Let’s BaCk-uP
                    in Scratch that you
                   can add any image or                 The blocks in Scratch are in different shapes. They can
                   text you want to add               be divided into six types of shapes.
                     to your program.                   Hat blocks always come at the top of a script as they

                                                      start a script.
                                                       Stack blocks perform the main commands.

                                                        Boolean blocks are condition blocks which return the
                                                      values “true” or “false” or the numbers “0” or “1”
                                                        Reporter blocks can hold values, which consist of
                                                      numbers or strings.
                                                        C blocks are loop blocks which check if a condition is

                                                      true in the blocks within the loop.
                   Go button is used to
                     run the script and                The blocks that end scripts are known as Cap blocks.
                   Stop button is used to               The sensing blocks in Scratch sense the input from the
                   stop the execution of              keyboard or the mouse at the time of execution of a
                        the project.                  script.

                                                       In Scratch, a program is called a Script.

                                                        We store data in the computer memory so that we
                                                      can get information from it later. This data is stored in
                                                      variables.
                                                        A variable that stores numbers is called a numeric
                                                      variable.

                                                        A variable that stores letters in the form of strings or
                                                      characters, is called string variable.
                    You can open any
                     project from the                   Scratch has two conditional blocks:  If…then…..  and If…
                      website https://                then….else block.
                   scratch.mit.edu/ and                 You can create games in Scratch by painting a new
                   click on ‘See Inside’ to           sprite and a new backdrop.
                       see its script.




                  110   Premium Edition-V
   107   108   109   110   111   112   113   114   115   116   117