Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 132 - logicode 2609 C6
P. 132

    1.  Tick ( ) the correct option.
                         a.  What is the purpose of the "set position" block in MakeCode?

                             (i)  To change the size of a sprite or element
                            (ii)  To rotate a sprite or element

                            (iii)  To place a sprite or element at specific X and Y coordinates on the screen
                            (iv)  To change the color of a sprite or element

                         b.  Which of the following uses drag and drop approach?
                             (i)  Block-based coding                      (ii)  Pseudocode
                            (iii)  both (i) and (ii)                     (iv)  None of these

                         c.  Which tool allows you to select from a range of colors for drawing and filling?
                             (i)  Undo/Redo                               (ii)  Color Palette

                            (iii)  Line tool                             (iv)  Pencil tool
                         d.  What does the Fill tool do?

                             (i)  Draws freehand strokes
                            (ii)  Creates rectangular shapes

                            (iii)  Fills a selected area or shape with colour or pattern
                            (iv)  Adjusts the pencil thickness
                         e.  What is a bug in programming?

                             (i)  A fault in a program that causes it to run correctly.
                            (ii)  A fault in a program that can predict output.

                            (iii)  A fault in a program that generates incorrect output.
                            (iv)  All of these

                         f.  What is an event handler in programming?
                             (i)  A function that initialises variables before an event occurs.

                            (ii)  A block of code that gets executed in response to a specific event.
                            (iii)  A tool that manages the overall program execution flow.
                            (iv)  A method used to define new events in a program.

                      2.  Fill in the blanks using the words from the help box.

                                       dictionary, MakeCode Arcade, say, Pseudocode, event handler

                         a.                     is  used  to  describe  the  steps  of an algorithm  in a human-understandable
                            language.

                      130   Premium Edition-VI

| 127 128 129 130 131 132 133 134 135 136 137 |