Page 114 - TP_Play_V2.1_class8
P. 114

3.   In  a  program,  the  statements  following  ................................  are  executed  when  the  condition
                         specified in the 'if' statement is false.

                      4.  There are two types of loops: counting loops and ................................ loops.

                  C.  Short answer type questions.

                      1.  Define conditional statements.

                        .....................................................................................................................................................................................................

                        .....................................................................................................................................................................................................


                      2.  Give one difference between AND and OR conditions

                        .....................................................................................................................................................................................................

                        .....................................................................................................................................................................................................

                      3.  What do you understand by Loop?

                        .....................................................................................................................................................................................................


                        .....................................................................................................................................................................................................


                  D.  Long answer type questions.

                      1.   How do loops help us?

                        .....................................................................................................................................................................................................


                      2.   Write an if condition to display “We have a match on Sunday” or “No, match on Sunday” based on
                         whether today is Sunday and if there is a cricket match.

                        .....................................................................................................................................................................................................

                        .....................................................................................................................................................................................................

                        .....................................................................................................................................................................................................

                        .....................................................................................................................................................................................................


                      3.   Write an if condition to display “Exam today” or “No exam on weekend” if it is a weekday today or
                         your exam.

                        .....................................................................................................................................................................................................

                        .....................................................................................................................................................................................................

                        .....................................................................................................................................................................................................

                        .....................................................................................................................................................................................................



                  112       Play (Ver. 2.1)-VIII
   109   110   111   112   113   114   115   116   117   118   119