Search Header Logo

Tutorium 4 - Prog2

Authored by Loris Galler

Computers

University

Used 12+ times

Tutorium 4 - Prog2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Konstanten werden in Scala mit dem Schlüsselwort "var" deklariert

Stimmt

Falsch

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Wie definiert man ein Tupel in Scala?

val person = ("Hans"; 35; true)

val person == ("Hans"; 35; true)

val person == ("Hans", 35, true)

val person = ("Hans", 35, true)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Was entspricht in Java einem Scala-Match-Ausdruck

Klassenvariablen

if-else

Switch-Case

Vergleich mit ==

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In der Range (1 until 10 by 2) ist die 10 enthalten

Stimmt

Falsch

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hat man in Scala eine verschachtelte Schleife, so braucht man (im Gegensatz zu Java) nur einen Schleifenkopf

Stimmt

Falsch

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Was ist das Ergebnis dieses Codes?

Hello, ${name}

Hello, James

Hello, $name

Hello, "James"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Wie werden Funktionen in Scala definiert?

Mit def

Mit val oder var

Mit func

Mit method

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?