Page 78 - Digicode_AI_class_7
P. 78

C.  State whether these statements are true or false.
                1.  Boolean is a subtype of integer data type.

                2.  We cannot reduce the lines of code by using a loop.
                3.  Event is an action on which the program responds.
                4.   Entry criteria is a check for a looping condition, which needs to be true to ensure
                   that the loop runs.
                5.  Collection of cards is not an example of collection.

            D.  Answer the following questions:
                1.  Write the syntax to declare and initialise a variable in programming.




                2.  Write one difference between While loop and For loop.



                3.  Mention any two benefits of using sequences in coding.






                4.  What is an event? What do you mean by event handler?






                5.  Give two examples of the collection.







                                                                                    Critical Thinking
                                                                                    Information Literacy

              A.  Order the steps for the algorithm of your morning routine.
                   Step    Have breakfast
                   Step    Brush your teeth

                   Step    Go to school
                   Step    Take a bath
                   Step    Wake up

              B.  Find the errors and rewrite the given pseudocode.
                  1.  Program Start
                     for value i in a range 1 to 5

                     increase ‘I am Good’
                     display the value of a by -1
                     Program End


                 76    DigiCode AI-VII
   73   74   75   76   77   78   79   80   81   82   83