Page 152 - 2633 Trackpad Pro V5.1 Class 7
P. 152

c.  What is the use of the 'not' and 'and' operators in Python?
                      ______________________________________________________________________________________


                      ______________________________________________________________________________________

                      ______________________________________________________________________________________

                     d.  What do you mean by a data type? Give two examples.

                      ______________________________________________________________________________________

                      ______________________________________________________________________________________


                      ______________________________________________________________________________________

                      ______________________________________________________________________________________

                     e.  Explain any one assignment operator with an example.

                      ______________________________________________________________________________________


                      ______________________________________________________________________________________

                      ______________________________________________________________________________________

                      ______________________________________________________________________________________


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

                     a.  16 – (3*2)                    ______________

                     b.  (5+3)//3                      ______________


                     c.  5>=10 and 6<10                ______________


                     d.  (3*4)==(15-3)                 ______________

                                                                                                 21 st
                  6.  Competency-based/Application-based questions.                            Century   #Critical Thinking
                                                                                                 Skills
                     a.   Ram needs to  calculate the average score of students  in a class and wants to  ensure that  the
                        calculation handles floating-point numbers accurately. What operator should he use to perform
                        floating-point division?

                     b.   Reena needs to check if a given numeric value is exactly equal to another numeric value,
                        including case sensitivity. What operator should he use for this comparison?














                  150   Premium Edition-VII
   147   148   149   150   151   152   153   154   155   156   157