Search Header Logo

Python ismeretek

Authored by Kiss Andrea

Computers

10th Grade

Used 5+ times

Python ismeretek
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Milyen adattípust ad vissza az input() függvény?

int (integer - szám)

str (string - szöveg)

float (valós szám)

bool (logikai)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mi történik, ha int(input("Adj meg egy számot: ")) parancsot használunk, és a felhasználó "alma"-t ír be?

A program 0-t ad vissza.

A program szövegként tárolja.

Hibaüzenetet kapunk.

A program lefut, de nem történik semmi.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Melyik for ciklus írja ki a számokat 0-tól 4-ig?

for i in range(5):

for i in range(1,5):

for i in range(0,4):

for i in range(6):

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Melyik ciklus fut, amíg a szám kisebb, mint 10?

while szam > 10:

while szam < 10:

while szam == 10:

while szam != 10:

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Melyik elágazás ellenőrzi, hogy egy szám negatív, nulla vagy pozitív?

if, else

if, elif, else

while, if

for, if

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Mi lesz a következő kód kimenete?

Nagy

Kicsi

Hibát jelez.

Nem történik semmi.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Melyik match-case szerkezet ellenőrzi, hogy a valtozo értéke 1 vagy 2?

match valtozo:

case 1:

print("Egy")

case 2:

print("Kettő")

if valtozo == 1 or 2:

print("Egy vagy kettő")

switch valtozo:

case 1:

print("Egy")

match valtozo:

case "1":

print("Egy")

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?