Page 85 - TP_Prime_v2.2_Class_5
P. 85

Snap this block to the ask block. Now click and see what happens. Penguin speaks the
                 name for the given number of seconds.

                 You can change the question in the ask block to any question of your choice. Click on
                 the text box and type the question.



                                                                                                  21 st   #Information Literacy
                                                                                               Century
                      Warm            Answer the following questions:                            Skills                     CONDITIONAL BLOCKS IN SCRATCH
                      Up!             1.  Which block is used to make the penguin ask question?

                                             ___________________________________________


                                      2.  Which blocks are usually the last blocks in the script?
                                             ___________________________________________

                                      3.  What is the another name of C blocks?

                                             ___________________________________________                                  83

                                      4.  Which blocks are the most used blocks in Scratch?

                                             ___________________________________________







                   Variables



                 A program is a group of commands and instructions that tell the computer to carry
                 out a task. In Scratch, a program is called a script. A script is made up of a number
                 of blocks. So, the blocks are the commands or instructions that we give to the sprite
                 to perform a task.

                 All the numbers, text, date, or pictures that we use in a program are called data. We

                 store this data in the computer memory so that we can get information from it later.
                 This data is stored in variables. It is called a variable because its value is not fixed
                 and can change. For example, in the                     block, the variable has a value 10 by
                 default. You can modify this value according to your script.



                  Types of Variables


                 Variables can store numbers as well as letters. A variable that stores numbers is

                 called a numeric variable. These numbers are used in calculations. Examples are 48,
                 –986, 12345, etc.
   80   81   82   83   84   85   86   87   88   89   90