Search Header Logo

Python - klasa 8 SP

Authored by Adam Łukasiuk

Computers

8th Grade

Used 16+ times

Python - klasa 8 SP
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Który zapis sprawi, że pętla będzie powtarzana w nieskończoność?

repeat until True:

while a>0:

while True:

while False:

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Który zapis zwiększy wartość zmiennej i o 1 (jeden)?

i=i+1

i=++1

i==+1

i=1+

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Który zapis da jako wynik resztę z dzielenia?

10$5

10%5

10//5

10 mod 5

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Aby powtórzyć wykonanie zadania 5 razy, wybierzemy zapis:

for i in range(6):

for i in range(len('text_here'):

for i in range (1,5):

for i in range(5):

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

aby uzyskać długość zapisanego w zmiennej a ciągu znaków (np. a='napis') użyjemy funkcji:

len(a)

a.len

len[a]

length(of(a))

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Chcąc zdefiniować procedurę NWD z dwoma parametrami, użyjemy zapisu:

def NWD():

def NWD(a:b):

def NWD(a,b):

def NWD[a,b]:

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?