Search Header Logo

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

Authored by Dawid Pindel

Computers

12th Grade

Used 12+ times

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

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers