Page 341 - AI Ver 1.0 Class 9
P. 341
S. No Questions Answers
12 Give the output of print(-21//-5) b
a) 5
b) 4
c) -5
d) -4
13 Give the output of print(type(5.6)) a
a) <class ‘float’>
b) <class ‘int’>
c) <class ‘str’>
d) <class ‘bool’>
14 What is the value of the expression print(3**2**1)? a
a) 9
b) 27
c) 6
d) 2
15 What will be the output of the following code? 0 3 2#
a,b=–1,3
c=a%b
a+=b%c
b+a%b%(-c)
print(a,b,c,end="#")
16 Which of the following expressions is/are True? b and d
a) 2>3
b) 3<4
c) 2>3 and 3<4
d) 2>3 or 3<4
17 Which of the following expression(s) is/are True? a and d
a) ‘p’<=’z’ and ‘p’>=’a’
b) ‘s’<=z and ‘s’>=’A’
c) not(‘5’<=’A’ and 5<=9)
d) not 5 or not 5<4
Python Practical Questions 339

