Search Header Logo

Woche 5

Authored by Hedi Chehaidar

Computers

University

Used 3+ times

Woche 5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Wie kann man die länge von einem Array arr bestimmen?

length(arr)

arr.length

arr.length()

len(arr)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Gegeben b = {{1, 2, 3}, {4, 5, 6}, {7, 8}}
Was ist der Wert von b[1][1]

1

2

4

5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Gegeben g = {{3, 2}, {0, 1}, {-1, -2}}
Was ist der Wert von g[g[1][0]]

{0,1}

0

{3,2}

3

4.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Wir wollen alle Elemente vom Array arr ausgeben:

for(int i = 0; i <= (Antwort) ; i++) write(arr[i]);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Was ist der Wert von array nach dem Aufruf von foo(array) ?

{1,2,3,4,5}

{2,3,4,5,6}

{1,3,6,10,15}

{1,3,5,7,9}

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Welche Arrays sind richtig initialisiert?

a b

a d

a b d

alle

7.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Wir wollen auf das i-te Element von hinten in einem Array arr zugreifen
elem = (Antwort) ;
Beispiel: arr = {5,4,6} und i = 2 dann elem = 4

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?