Page 80 - TP_Prime_V2.2_Class7
P. 80

3.  Long answer type questions.
                      a.  What are the different types of conditional statements used in Python?

                      b.  What are the different types of arithmetic operators?

                      c.   Explain the use of if…else statement with an example.
                                                                                                   21 st
                  4.  Competency-based/Application-based questions.                             Century   #Information Literacy
                                                                                                  Skills
           Prime (Ver. 2.2)-VII     b.   Aryan is creating a Python program for his school maths project. He wants to                                                                                                                                   MORE ON PYTHON
                      a.   Bhavya  was  writing  a  program  in  which  she  wanted  to  execute  a  particular  set  of

                          statements  depending  upon  a  particular  test  condition.  Which  type  of  statements  can
                          she use for this?



                          create a relation chart between various data types. What type of operators
                          should he use?





          78          Activity Time                                                               Century   #Critical Thinking                                                                                                                        79
                                                                                                     21 st
                                                                                                    Skills
                  What will be the output of the following programs?

                      a.  a=10

                          b=20
                          if(a>b):

                              print(a)

                          else:

                              print(b)

                      b.  var1 = 1
                          var2 = 2

                          var3 = 3

                          print(var1 + var2 + var3)

                      c.  a=100

                          if(1000>a):
                              print(a)

                          else:

                              print(“not a big number")
   75   76   77   78   79   80   81   82   83   84   85