Professional Documents
Culture Documents
Cover Page Midterm Theory Part 2022
Cover Page Midterm Theory Part 2022
Total
SIGNATURE: _________________________
1. (12 pts.) Trace the following programs and write their outputs in the second column.
Code Outputs
# (example)
x = 8
y = -1
if x < 10: 8
print(x) Even Number
if x % 2 == 0: 7
print("Even Number")
if x + y > 0:
print(x + y)