Search Header Logo

Tutorium 6 - Option, ETA, Curry, Partielle Fun

Authored by Loris Galler

Computers

University

Used 16+ times

Tutorium 6 - Option, ETA, Curry, Partielle Fun
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

Wofür nutzt man Option in Scala?

Um Datenbanken effizienter abzufragen

Um null-Werte zu ersetzen und mit optionalen Werten sicher umzugehen

Um Performance zu verbessern

Für die GUI-Entwicklung

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Welche Werte kann ein Option-Typ in Scala annehmen?

true oder false

Nur numerische Werte

Some(value) oder None

null oder Some

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Was ist die Eta-Expansion in Scala?

Konvertierung einer Methode in eine Funktion

Eine spezielle Rekursionsart

Eine Form der Typinferenz

Ein neues Feature aus Scala 3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Findet Eta-Expansion in Scala automatisch statt?

Ja

Ne

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Welchen Zweck hat Currying in Scala?

Bessere Unterstützung für paralleles Rechnen

Ermöglicht teilweise Anwendung von Funktionen

Schnellere Ausführung von Programmen

Ersetzt die Verwendung von match

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Was ist die Rückgabe?

3

4

7

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Wann spricht man in Scala von einer partiell angewandten Funktion?

Wenn alle Parameter einer Funktion gleichzeitig übergeben werden

Wenn null als Argument verwendet wird

Wenn nur ein Teil der Parameter festgelegt ist und der Rest später

Wenn der Rückgabewert Option ist

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?

Discover more resources for Computers