Page 211 - AI Ver 1.0 Class 10
P. 211

B.  Fill in the blanks.
                    1.  ………………………. operator does the comparison of values and returns True or False.

                    2.  ………………………. parameter with print() gives a separator between the objects.

                    3.  Repetition of statements can be done using ………………………. and ………………………. in Python.
                    4.  The reserved words in Python are called ………………………. .

                    5.  The ………………………. statement is optional and if required can be only one in one if block.

                    6.  ………………………. is used to take input from the user.
                    7.  ………………………. identifies the type of data which a variable can hold.

                    8.  ………………………. operators which take the value of the operand on the right side, perform an operation and assign a
                       new value to the operand on the left side.

                    9.  ………………………. and ………………………. are used for division in Arithmetic operators.

                    10.  Python got its name from ………………………. .

                 C.  State whether these statements are true or false.
                    1.  Python is free and open source.                                                           ……….……

                    2.  Datatype of ‘12’ is integer.                                                              ……….……
                    3.  Dictionary is a combination of key: value.                                                ……….……
                    4.  String can be enclosed in single or double quotes.                                        ……….……
                    5.  Set is an immutable, ordered collection of values.                                        ……….……
                    6.  Boolean is a data type with two built in values.                                          ……….……


                                                  SECTION B (Subjective Type Questions)

                 A.  Short answer type questions:
                    1.  Find out the errors in the given code.

                       a.  “abc”=name
                       b. print(“hello class)

                       c. n=input(enter a number)
                       d. n1=10,n2=20
                       e.  20/10=a

                       f.  a+b=c
                       g. num=int(input(enter your name)
                    2.  Give the output of the given statements.
                       a. print(12< 9 and 10 >= 20)

                       b. print(int(False)+10)
                       c.  print(12/2+2)

                       d. print(‘5’+’10’)
                       e. print(12+3*((10*2)-8)/5)

                       f.  print(-12//3)
                                                                                           Advance Python   209
   206   207   208   209   210   211   212   213   214   215   216