Page 118 - CG_v2.1_flipBooks_class_6
P. 118

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.

















                      116    Computer Genius (V2.1)-VI
   113   114   115   116   117   118   119   120   121   122   123