kartkówka - petle for i while w języku Python

Quiz
•
Computers
•
12th Grade
•
Medium

Dawid Pindel
Used 12+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jaki będzie wynik wyżej napisanego kodu?
Wypisze 10 razy słowo sprawdzian
Wypisze liczbę 10 i słowo sprawdzian
Wypisze liczbę 10 i słowo sprawdzian
Wypisze jeden raz słowo sprawdzian
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Powtarzanie, aż określony warunek stanie się prawdziwym użyciem
Zastosujesz pętle for
Zastosujesz pętle while
Zastosujesz instrukcje if
Zastosujesz instrukcje elif
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Znak, który musi znajdować się na końcu linii w przypadku if, while, for itp.
:
;
.
,
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jaki będzie wynik tego programu?
1
2
11
1
2
21
1
2
3
11
1
2
3
21
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ile razy następujący program wypisze słowo „komputer”:
slowo= "komputer"
for i in range(1,6):
print(slowo)
7
0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Co zostanie wypisane w wyniku działania poniżej pętli?
licznik = 0
while licznik < 5:
print (licznik)
licznik = licznik + 1
0,1,2,3,4
0,1,2,3,4,5
1,2,3,4
1,2,3,4,5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jakiego kodu użyjesz aby wypisać ciąg liczb: 6, 12, 18, 24, 30 ?
for x in range(6, 30, 6):
print(x)
while x (6, 35, 6):
print(x)
for x in range(6,35,6):
print(x)
while x (6, 30, 6):
print(x)
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Project-Stem Unit 1 python coding

Quiz
•
9th - 12th Grade
11 questions
Python Function

Quiz
•
11th - 12th Grade
20 questions
Python Programming Quiz

Quiz
•
9th Grade - University
10 questions
Bài tập thực hành 1 (tiết 2)

Quiz
•
12th Grade
10 questions
Python Math

Quiz
•
1st - 12th Grade
15 questions
PCEP Section 2a: Make decisions with if instruction

Quiz
•
12th Grade
15 questions
list in python

Quiz
•
10th - 12th Grade
10 questions
Java: repetition control structure for & while

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade