Beruflich Dokumente
Kultur Dokumente
Review
EZ Round
1. It is a sequence control that
performs a group of
statements repeatedly.
1. It is a sequence control that
performs a group of
statements repeatedly.
True False
4. True or False: Python
Variables are case-insensitive.
True False
5. What is the Result of the
statement 3*‘La’+’nd’ in
Python?
5. What is the Result of the
statement 3*‘La’+’nd’ in
Python?
odd_cnt = 0
for i in range(1,_____):
if i%2 == 0:
None
even_cnt += 1
break of
8.
_________
these
odd_cnt += 1
print("Even count:",even_cnt)
print("Odd count:",odd_cnt)
8. Below is a program that counts the
even and odd numbers from 1 to N.
N = int(input("Enter N: "))
even_cnt = 0 exit continue
odd_cnt = 0
for i in range(1,_____):
if i%2 == 0:
None
even_cnt += 1
break of
8.
_________
these
odd_cnt += 1
print("Even count:",even_cnt)
print("Odd count:",odd_cnt)
9. What is the output of the code below?
i = 1
while i < 3:
for j in range(1,3):
print(i*j, end=" ")
print()
9. What is the output of the code below?
i = 1
while i < 3:
for j in range(1,3):
print(i*j, end=" ")
print()
12 12 123 Infinite
24 6 24 246 Loop
9. What is the output of the code below?
i = 1
while i < 3:
for j in range(1,3):
print(i*j, end=" ")
print()
12 12 123 Infinite
24 6 24 246 Loop
10. What is the output of the code below?
for i in range(0,3):
for j in range(0,3):
if i >= j:
print('*', end="")
print()
10. What is the output of the code below?
for i in range(0,3):
for j in range(0,3):
if i >= j:
print('*', end="")
print()
*** *** *
*** ** ** *
*** * *** **
10. What is the output of the code below?
for i in range(0,3):
for j in range(0,3):
if i >= j:
print('*', end="")
print()
*** *** *
*** ** ** *
*** * *** **
thanks!
Any questions?
You can find/ask me at
C-118
exer.mbbderobles@gmail.com
Credits
Special thanks to all the people who made and released
these awesome resources for free:
✘ Presentation template by SlidesCarnival
✘ Photographs by Unsplash