Lesson03 QUIZ
Lesson03 QUIZ
Multiple Choice
Identify the choice that best completes the statement or answers the question.
MATCHING
Base from the following: Match the following to the items below.
a = 20 a. aaa e. XXX
b. YYY f. ddd
b = 10 c. bbb g. eee
d. ccc h. fff
c = 15
d=5
____ 9.
e=0
a = 50
b = 30
Match the following to the items
if ( a is b ):
below.
print "aaa"
a. 415 f. 125
b. 51 g. 150 else:
c. 90 h. 55
d. 302 i. 335 print "bbb"
e. 660
What will be printed in the code listings above?
____ 6. e = (a * b + a ) * c
/d ____ 10.
b = 90
____ 7. e=b+d+a+a*
if ( a is not b ):
c
print "eee"
What is the value of e?
____ 11.
a = 20
b = 30
if ( a is b ):
print "XXX"
else:
print "YYY"
Case Analsysis:
Consider the following sequence of assignment statements:
>>> a = 10
>>> b = 20
>>> a = b
Match the following to the items below.
a. b d. 0
b. 10 e. 30
c. 20
____ 12. What is the value of a after the first line?
--------------------------------------------------------------------------------------------
PRELIM QUIZ02
Name : ____________________________
Course, Year and Block : ____________________________
Subject Code : ____________________________
Date : ____________________________ SCORE: _____________
Name of Instructor : ____________________________