Page 78 - Dig_CodeAI_V2.1_Class_7
P. 78

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?












                                                                                          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”)














                       76    DigiCode AI (Ver. 2.1)-VII
   73   74   75   76   77   78   79   80   81   82   83