Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 31 - 2501_KVS_C-7
P. 31

    C.    Match the following:

                                     A                                                   B
                             1.   24//5                                      a. 81
                             2.   3**4                                       b. Relational Operator
                             3.   >=                                         c. 4
                             4.   %                                          d.  Expression
                             5.   X=a+b+c                                    e. Arithmetic Operator

                      D.    Tick (ü) the correct option.
                            1.    if a =16//4 and b=9, what will be the resultant of a > b?

                                  a. True              b. False                c. None                  d. 10

                            2.    Which of the following is not an arithmetic operator?

                                  a. %                 b. **                   c.   >                   d. //

                            3.    Which of the following is not an expression?

                                  a. d=x+y**2               b. ZZ=yy+xx               c. "Radhe"            d. b=x**2+y
                            4.    Which of the following is used to describe relationships among values?

                                  a. Operand           b. Arithmetic operator  c. Relational Operator  d. Expression

                            5.    Which of the following will be the result of 9/3?

                                  a. 3                 b. 3.0                  c. 9.0                   d. 0

                      E.    State whether these statements are true or false.

                            1.    + is a type of operand.                                             ____________

                            2.    == operator is used to compare two values/variables.                ____________
                            3.    = operator is also known as assignment operator.                    ____________

                            4.    Expression 225%5 will return zero.                                  ____________
                            5.    Python contains five relational operators.                          ____________

                                Something to Do

                       1.    Practise using operators with the following variables and write the correct result for E,

                             if a = 8, b = 9, c = 6:
                             a.    E=a**2+b         b.   E=a//2+b/3+c**2         c.   E=(a%5+b)%3

                       2.    Give the result for the following expressions:

                             a.    “Ravi”>”ravi”                                         b. a< (b%3)

                                                                                           Python                       29

| 26 27 28 29 30 31 32 33 34 35 36 |