Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 134 - 2615_KEC
P. 134

    TOOLBOX

                      Code.org's App Lab, contains different categories of blocks used for programming. Here's
                      what each category generally does:

                         UI controls: Create buttons, text inputs and labels for user interaction.

                         Data: Store and manage structured information like lists and databases.
                         Control: Manage program flow using loops, conditionals and event handlers.

                         Variables: Store  and update  dynamic  values
                         for calculations and tracking.

                         Canvas: Draw and display custom graphics or
                         animations.

                         Turtle: Use simple commands to draw shapes
                         and patterns.

                         Math: Perform calculations, random numbers and logic operations.

                         Functions: Create reusable code blocks to simplify programming.

                      CATEGORIES OF BLOCKS

                      In Code.org, we use blocks to create programs. Each block has a special job. These blocks
                      are grouped into different categories and each category is shown in a different colour to

                      make it easy for students to find them.
                      Below are the main categories explained in a simple way:

                      1.  UI Controls: These blocks are used to interact with
                         the app’s screen elements, allowing you to design

                         and control app screens. They manage text, images,
                         colours and enable interaction with buttons, labels
                         and input boxes. They also allow showing or hiding
                         elements and switching between screens.

                        Some common UI Control blocks include:

                            Set text
                            Set image

                            Show or hide elements

                            Set screen

                            Get property

                      132   Premium Edition-V

| 129 130 131 132 133 134 135 136 137 138 139 |