Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 118 - 2611_SmartGPT Pro V(5.0) C-4
P. 118

    COding Zone       COding Zone    {}      =      COding Zone               COding Zone
                                      {C ding z ne}
                                                                                                  #Critical Thinking
                                                                                              21 st
                                                                                            Century
                                                                                                  #Technology Literacy
                                                                                              Skills
                                                                               </>
                            1.   Below is a pseudocode for moving a sprite with the arrow keys. Your task is to convert
                              this pseudocode into Scratch code using the appropriate Scratch blocks.
                              When green flag clicked forever
                              if <key [up arrow v] pressed?> then
                              change y by (10)
                              end
                              if <key [down arrow v] pressed?> then
                              change y by (-10)
                              end
                              if <key [right arrow v] pressed?> then
                              change x by (10)
                              end
                              if <key [left arrow v] pressed?> then
                              change x by (-10)
                              end
                            end

                          2.  The following stack of codes when executed draws a square. What changes will you
                              have to make to it in order to draw a hexagon?

                                                            when   clicked
                                                                 pen down

                                                            repeat  4
                                                              move     100  steps

                                                              turn     90  degrees

                             CAREER HERE
                      People who are experts in Scratch may pursue their careers as Programmers.

                         FOR THE TEACHER

                        1.  Demonstrate all the blocks and their functions.
                        2.  Explain the use and importance of Pen blocks.

                       116  Computer Science (V5.0)-IV

| 113 114 115 116 117 118 119 120 121 122 123 |