CH 2 - Python Operators and Control Flow Statements (22616 MAD)
CH 2 - Python Operators and Control Flow Statements (22616 MAD)
Stay Tuned for Daily MCQs for All 6th Semester subs Computer EGG Group
Online Quiz to help you in preparing for Online Exams, It covers Multiple Choice
Questions (MCQs) for 20 Marks
imp Links:
All Theory tutorials: https://bit.ly/335XFKi
contact us on [email protected]
a) x^y
b) x**y
c) x^^y
a) /
b) //
c) %
https://docs.google.com/forms/d/e/1FAIpQLSd9DOXNK1pTiLbDr6kILkPdDEhEze2Bl7BxCXeqWTHTcbxKsg/viewscore?viewscore=A… 1/8
3. What is the order of precedence in python? * 1/1
a) i,ii,iii,iv,v,vi
b) ii,i,iii,iv,v,vi
c) ii,i,iv,iii,v,vi
d) i,ii,iii,iv,vi,v
a) 7
b) 1
c) 0
d) 5
True
False
https://docs.google.com/forms/d/e/1FAIpQLSd9DOXNK1pTiLbDr6kILkPdDEhEze2Bl7BxCXeqWTHTcbxKsg/viewscore?viewscore=A… 2/8
6. What is the output of this expression, 3*1**3? * 1/1
a) 27
b) 9
c) 3
d) 1
7. Which one of the following has the same precedence level? 1/1
*
True
False
https://docs.google.com/forms/d/e/1FAIpQLSd9DOXNK1pTiLbDr6kILkPdDEhEze2Bl7BxCXeqWTHTcbxKsg/viewscore?viewscore=A… 3/8
9. What is the output of print(2%6) * 1/1
ValueError
0.33
A. in
B. is
C. assert
True
False
Error
True
False
NameError
https://docs.google.com/forms/d/e/1FAIpQLSd9DOXNK1pTiLbDr6kILkPdDEhEze2Bl7BxCXeqWTHTcbxKsg/viewscore?viewscore=A… 4/8
13. The range() function by default returns a ____ * 1/1
tuple
string
dict
list
if
else if
elif
if elif
if else
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[ 1, 2, 3, 4, 5, 6, 7, 8, 9,10]
[(1, 2, 3, 4, 5, 6, 7, 8, 9,10)
(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
https://docs.google.com/forms/d/e/1FAIpQLSd9DOXNK1pTiLbDr6kILkPdDEhEze2Bl7BxCXeqWTHTcbxKsg/viewscore?viewscore=A… 5/8
16. Is for loop possible without range() in Python * 1/1
Yes
No
Maybe
assert
continue
import
break
await
pass
else
https://docs.google.com/forms/d/e/1FAIpQLSd9DOXNK1pTiLbDr6kILkPdDEhEze2Bl7BxCXeqWTHTcbxKsg/viewscore?viewscore=A… 6/8
18 Which code is correct for this output? * 2/2
Option 1
Option 2
Feedback
https://docs.google.com/forms/d/e/1FAIpQLSd9DOXNK1pTiLbDr6kILkPdDEhEze2Bl7BxCXeqWTHTcbxKsg/viewscore?viewscore=A… 7/8
Happy Learning! cwipedia.in
This content is neither created nor endorsed by Google. - Terms of Service - Privacy Policy
Forms
https://docs.google.com/forms/d/e/1FAIpQLSd9DOXNK1pTiLbDr6kILkPdDEhEze2Bl7BxCXeqWTHTcbxKsg/viewscore?viewscore=A… 8/8