Page 44 - 2501_KVS_C-8
P. 44

5.  not(3==4) and (25==25):


                           A.   True                                 C.   Error
                           B.   False                                D.   None

                    D.  State whether these statements are true or false.

                         1.   ‘not’ operator can be used in 2 or more than 2 conditions.               ________
                         2.  not(6==6) gives the result ‘True’.                                        ________

                         3.  ‘or’ operator may be used to check more than 3 conditions.                ________
                         4.   ‘and’ operator will give the result ‘True’ even if a single condition

                             is True from 2 or more than 2 conditions.                                 ________
                         5.  ‘or’ & ‘and’ operator both may work on only a single condition.           ________





                          Check Your Knowledge


                  1.      Write a program in python to accept a number from the user and check and display
                        whether it is divisible by 3 and 5 both or not.

                  2.      Write a program in python to accept the percentage of a student and display its grade
                        as per the conditions given below:

                                             Percentage                    Grade
                                             >=75                          A
                                             Between 60-74.9               B
                                             Between 35-59.9               C
                                             <35                           D
                  3.      Write a program in python to accept any three numbers from the user and display the

                        smallest among them.
                  4.      Write a program in python to accept the three(03) sides of a triangle and display
                        whether it is equilateral or not i.e. all the 3 sides are equal to each other.

                  5.      Write a program in python to accept the total amount(TA) to be paid by a person after
                        shopping in a mall from the user. Also, the shopping mall is giving some discount(D) as
                        per the given conditions:

                                             Total Amount(in Rs.)          Discount(%)
                                             <=5000                        0
                                             5001-10000                    2%
                                             10001 to 25000                5%
                                             >25000                        8%

                          Now,  calculate  and display  the  net amount to be paid by  the  person after giving
                        Discount(D).

                42                         KVS DELHI REGION 2025
   39   40   41   42   43   44   45   46   47   48   49