Page 136 - ComputerGenius_V2.1_Class8
P. 136

FUN ZONE                                                          Critical Thinking
                                                                                         Information Literacy

                    Write the syntax for the following:
                    1.   if-elif-else statement









                    2.   for Loop











                     Competency-based/Application-based questions                        Information Literacy

                    Tick ( ) the correct option.
                    1.   Bheem is writing code, he wants to put one condition in the code, which statement will you suggest him?
                       (i)   for statement                    (ii)  if statement
                    2.   Awneet wants to print numbers between 20 to 50 by using Python code. Which statement will you
                       suggest him?
                       (i)   for statement                    (ii)  if statement




                                                                                        Interdisciplinary Learning
                     LAB Activity                                                       Critical Thinking


                    A.   Write a Python program that inputs a number and checks whether the number is divisible by 5 or not.
                    B.    Write a program to print the numerical table of 7.
                    C.    Write a program that accepts a character from the user and display whether it is a prime number
                        or not.




                                                                             Leadership & Accountability
                             TECH VALUE                                      Initiative


                             Never steal anyones code.





                      134    Computer Genius (V2.1)-VIII
   131   132   133   134   135   136   137   138   139   140   141