Python pętle while/for

Quiz
•
Computers
•
9th Grade
•
Medium
KP KP
Used 21+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Co zostanie wypisane po wykonaniu poniższego kodu? for i in range(5): print(i)
0 1 2 3 4
1 2 3 4
1 2 3 4 5
0 1 2 3
2.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Jakie wartości będzie przyjmować zmienna i w poniższym kodzie? for i in range(1, 3): print(i)
1 2
1 2 3
2 3
1 3
3.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Co zostanie wypisane po wykonaniu poniższego kodu? for i in range(1, 6, 2): print(i)
1 3 5
1 2 3 4 5
1 2 3 4
1 3
4.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Jakie wartości będą wypisane po wykonaniu poniższego kodu? i = 1 while i <= 100: print(i) i *= 2
1 2 4 8 16 32 64
1 2 4 8 16 32 64 128
1 2 4 8 16 32 64 128 256 512
1 2 4 8 16 32 64 128 256
5.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Co oznacza iteracja w kontekście programowania?
Zakończenie programu
Wywołanie funkcji
Zmiana wartości zmiennej
Powtarzanie tej samej operacji w pętli
6.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Jakie wartości będą wypisane po wykonaniu poniższego kodu? i = 3 while i <= 10: print(i) i += 3
3 6 9 12 15 18
3 6 9 12
3 6 9 12 15
3 6 9
7.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Co zostanie wypisane po wykonaniu poniższego kodu? should_print = True while should_print: print("Będzie wypisane tylko raz") should_print = False
Będzie wypisane tylko raz
Będzie wypisane tylko raz Będzie wypisane tylko raz
Nic się nie wypisze
Będzie wypisane tylko raz Będzie wypisane tylko raz Będzie wypisane tylko raz
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
KODU15 Aug 20

Quiz
•
2nd - 9th Grade
12 questions
Visual Studio Code - Podstawy

Quiz
•
9th Grade
13 questions
Python - palindrom, tekst, do zadań losowych

Quiz
•
9th Grade
9 questions
Sortowanie bąbelkowe AI

Quiz
•
9th Grade
10 questions
Scratch ile Kodlama

Quiz
•
4th - 9th Grade
10 questions
Cyberbezpieczeństwo

Quiz
•
9th - 12th Grade
16 questions
Podstawy języka Python

Quiz
•
9th Grade
11 questions
Ponavljanje osnove informatike

Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade