Search Header Logo

Refresher Kapitel 3, 4, Notebook 2

Authored by Ismâil Muhammad Prada Ziegler

Information Technology (IT)

University

Used 1+ times

Refresher Kapitel 3, 4, Notebook 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Was wird ausgegeben?

True

False

Fehlermeldung

None

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Eingabe:
["cow", "snake", "cat"]

Wie lautet die Ausgabe?

snake

rattlesnake

other animal

no animal

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Eingabe:
[]

Wie lautet die Ausgabe?

snake

rattlesnake

other animal

no animal

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Eingabe:
["cow", "rattle", "snake", "cat"]

Wie lautet die Ausgabe?

snake

rattlesnake

other animal

no animal

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Eingabe:
["cow", "cat"]

Wie lautet die Ausgabe?

snake

rattlesnake

other animal

no animal

6.

CATEGORIZE QUESTION

1 min • 3 pts

Kategorisiere diese if-Blöcke als Valide / Invalide (Invalide == Fehlermeldung)

Groups:

(a) Valide

,

(b) Invalide

if x > 0 && x < 10: print("between 1 and 9")

if isinstance(x, int): print("is an integer")

if x == 5 print("hi")

if x = 5: print("hi")

if x > 0 and x < 10: print("between 1 and 9")

if x > 3: print("hi")

if x.__eq__(5): print("hi")

if x is None: print("is none")

if x != 0: print("not zero")

if (x > 3) print("hi")

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

Was wird ausgegeben / was passiert?

Gibt gerade Zahlen von 24 bis 0 aus, dann fertig.
(in Form von "Even Number: <Zahl>)

Gibt ohne aufzuhören "Even Number: 24" aus.

Fehlermeldung

Gibt "Even Number: 24" aus, dann fertig.

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?