Search Header Logo

Quiz z Pythona

Authored by Elżbieta Podwyszyńska

Computers

1st Grade

Used 5+ times

Quiz z Pythona
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jaki będzie wynik działania poniższego kodu? x = 0 for i in range(4): x += i print(x)

4

6

10

3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Ile razy wykona się pętla w poniższym kodzie? for i in range(2, 10, 3): print(i)

3

4

5

2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Co zostanie wyświetlone po uruchomieniu poniższego kodu? n = 5 while n > 0: n -= 1 print(n)

5

0

-1

1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jaki będzie wynik działania poniższego kodu? for i in range(3): for j in range(2): print(i * j, end=" ")

0 1 0 1 0 1

0 0 0 1 0 2

0 0 0 0 0 0

0 0 1 0 2 0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jaki będzie wynik poniższego kodu? n = 0 for i in range(3): n += 1 print(n)

3

2

1

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jaki jest zakres indeksów generowanych przez poniższą funkcję range()? range(4)

Od 1 do 4.

Od 0 do 4.

Od 0 do 3.

Od 1 do 3.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Co zostanie wyświetlone w poniższym kodzie? x = 0 for i in range(2, 6): x = x + i print(x)

14

20

18

15

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?