Page 79 - Dig_CodeAI_V2.1_Class_7
P. 79

2.  Write the output of the following block code in MakeCode Arcade:





















                   3.  What will be the output of the following block code:





























                   Competency-based/Application-based questions                         Information Literacy

                   1.   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.

                   2.   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.













                                                                                  More on MakeCode Arcade      77
   74   75   76   77   78   79   80   81   82   83   84