May 2022 1 8 Report
1. Ile razy będzie wyświetlony napis ‘kolejna pętla’?
for i in range(1,5): print('kolejna pętla')
a) 3
b) 4
c) 5
d) 1

2. Ile razy będzie wyświetlany napis ‘kolejna pętla’?
j = 1
while j < 7:
print('kolejna pętla')
j += 1
a) 5
b) 6
c) 7
d) 1

3. Ile razy będzie wyświetlany napis ‘kolejna pętla’?
j = 1
while j < 7:
print('kolejna pętla')
j += 1
if j == 3:
break
a) 2
b) 3
c) 4
d) 7

4. Jaka lista zostanie utworzona?
lst = list(range(1,5))
print(lst)
a) [1, 2, 3, 4, 5, 6]
b) [1, 2, 3, 4, 5]
c) [1, 2, 3]
d) [1, 2, 3, 4]

Recommend Questions



Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.