Unit - 3 Class 11 Computer Science Cbse Question and Answers
Unit - 3 Class 11 Computer Science Cbse Question and Answers
EXERCISE
1. Create following Variables
i) „mystring‟ to contain „hello‟
ii) „myfloat‟ to contain „2.5‟
iii) „myint‟ to contain „10‟
Answer: mystring = 'hello'
myfloat = 2.5
myint = 10
5. True or False
i) Character Data type values should be delimited by using the single quote.
ii) None is one of the data type in python
iii) The += operator is used to add the right hand side value to the left hand side
variable.
iv) The data type double is not a valid python data type.
v) Python does not have any keywords
vi) The equal to condition is written by using the == operator
Answer: False,True,False,True,False,True
7. MCQ
i) The __________ data type allows only True/False values
a) bool b) boolean c) Boolean d) None
ii) If the value of a = 20 and b = 20, then a+=b will assign ________ to a
a) 40 b) 30 c) 20 d) 10
iii) The ____________ operator is used to find out if division of two number
yields any remainder
a) / b) + c) % d) //
11. What does „immutable‟ mean; which data type in python are immutable.
Answer: Integer & Long , Float/floating point , Complex