Page 146 - Trackpad_V1_Book 7_Flipbook
P. 146

5.  What will be the output of the following expressions?

                      a.   15 – (2*4)   ______________         b.  (14 + 4) /9   ______________
                      c.   (20/2) + 7   ______________         d.  16 + 6*10   ______________

                  6.  Application based question:

                        Simran is creating a Python program for her school maths project. She wants to create
                      a relation chart between various data types. What type of operators should she use?
                      _________________________________________________________________________________





                         LAB ACTIVITY                                                                   Interdisciplinary


                         Visit your computer lab and perform the following actions:
                                Write a program to enter two numbers and print their difference.

                                Write a program to calculate the area of a triangle.
                                Write a program to calculate average of 6 numbers.




                          COding Zone       COding Zone     {}      =     COding Zone Computational Thinking
                                 {C ding z ne}
                                                                                                              []
                                                                                                     COding Zone
                                                                          </>
                      What will be the output of the following programs?
                          a.  a = 4.5                           c.   p, q, r = 10, 20 ,30

                            b = 2                                   print(p, q, r)
                            print (a//b)                            ________________________
                          ________________________              d.  a = 4
                          b.  y = 10                                b = 11

                            y += 2                                  print(a or b)
                            print(y)                                print(a > 2)

                          ________________________                  ________________________






                         CAREER HERE

                  People who are experts in Python may pursue their careers as software developer.



                     FOR THE TEACHER
                    1.  Explain various types of data types in detail.
                    2.  Give small programs related to interesting, real life examples to the students.




                  144   Trackpad (Version 1.0)-VII
   141   142   143   144   145   146   147   148   149   150   151