Python pętle while/for
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
KP KP
Used 23+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
conditional and iterative statements
Quiz
•
11th Grade
16 questions
Quiz on List and Tuples
Quiz
•
University
10 questions
AI and Python: Ch.1 Revision
Quiz
•
9th Grade
15 questions
End of term assessment
Quiz
•
9th Grade
15 questions
python basics
Quiz
•
11th Grade - University
16 questions
C-Programming Basics
Quiz
•
12th Grade
10 questions
Word basics
Quiz
•
8th - 12th Grade
10 questions
python-BTxâu
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
