Page 117 - CG_v2.1_flipBooks_class_6
P. 117

3.  This process of assigning a value to a variable is called            .
                    4.  The splash block is present in the                blocks category.

                 C.  State whether these statements are true or false.
                    1.  If all conditions with the AND block are true, it will return false.

                    2.  Each variable in a program must have a unique name.
                    3.  The name of a variable serves as an identifier.
                    4.  A keyword is a predefined word in any programming language.

                 D.  Answer the following questions:
                    1.  What is a keyword?






                    2.  What is the use of the Math blocks?





                    3.  Write the names of the Conditional blocks in MakeCode Arcade.





                    4.  What is the role of the ‘logical and’ block?













                      FUN ZONE                                                          Critical Thinking
                                                                                        Information Literacy

                   1.  Convert the following logic into a MakeCode Arcade project using blocks and write the output:
                         age=19
                         if(age>18)

                               display(“You are eligible to vote.”)
                         else
                               display(“Not eligible”)














                                                                                  More on MakeCode Arcade     115
   112   113   114   115   116   117   118   119   120   121   122