Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 116 - 2609_Logiccode
P. 116

    3.  Write 'T' for true and 'F' for false.
                         a.  If all conditions with the AND block are true, it will return false.

                         b.  Each variable in a program must have a unique name.

                         c.  The name of a variable serves as an identifier.

                         d.  A keyword is a predefined word in any programming language.

                      4.  Think and answer.

                         a.  What is a keyword?
                            ______________________________________________________________________________________

                            ______________________________________________________________________________________

                         b.  What is the use of the Math blocks?

                            ______________________________________________________________________________________

                            ______________________________________________________________________________________

                         c.  Write the names of the Conditional blocks in MakeCode Arcade.
                            ______________________________________________________________________________________

                            ______________________________________________________________________________________

                         d.  Identify the block name and describe about it in the given space.

                             (i)                    _______________________________________________________________

                            (ii)                    _______________________________________________________________

                            (iii)                   _______________________________________________________________

                                                                                                21 st   #Critical Thinking
                      5.  Competency-based/Application-based questions.                       Century   #Productivity & Accountability
                                                                                                Skills
                         a.   Ravi has created a game where a variable named health decreases when a player is hit by enemies.
                            If the player’s health drops below 20, the game should display a “Low Health!” warning to alert the
                            player. Create a MakeCode Arcade project to demonstrate this situation.
                         b.   You have an enemy that should behave differently depending on the player’s score. If the score is
                            above 50, the enemy should move faster. Otherwise, the enemy moves at a normal speed. Create
                            a MakeCode Arcade project to demonstrate this situation.
                         c.   Riya is creating a game in MakeCode Arcade where she wants to store the player’s score so it can
                            change during the game. She decides to give this storage place a name and save numbers in it.
                            What programming concept is Riya using and what are its main parts?
                         d.   Rahul creates a variable called Lives and later creates another variable called lives, thinking they are
                            the same. The game treats them as two different variables. Why does this happen?
                         e.   In a racing game, Kabir wants to add 10 points to the score each time the car crosses the finish line.
                            Which block category should he use to perform this calculation?

                       114  Premium Edition-VII

| 111 112 113 114 115 116 117 118 119 120 121 |