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

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

12th Grade

15 Qs

quiz-placeholder

Similar activities

Bài kiểm tra giữa kì 2

Bài kiểm tra giữa kì 2

9th - 12th Grade

20 Qs

python String and comment

python String and comment

3rd Grade - University

13 Qs

Python - kl. 8

Python - kl. 8

7th - 12th Grade

10 Qs

Kiểu dữ liệu xâu kí tự - xử lí xâu kí tự

Kiểu dữ liệu xâu kí tự - xử lí xâu kí tự

9th - 12th Grade

14 Qs

Python Conditionals and If Statements

Python Conditionals and If Statements

8th Grade - University

15 Qs

python quiz

python quiz

12th Grade

20 Qs

Strings, Lists & Tuples

Strings, Lists & Tuples

9th - 12th Grade

20 Qs

Arithmetic Types Declare Initialize Relation Logical Ops

Arithmetic Types Declare Initialize Relation Logical Ops

9th Grade - University

16 Qs

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

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

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Dawid Pindel

Used 12+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image


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)

5
1

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?