Search Header Logo

Tutorium 2 - Prog2 - Scala Funktionen + Functional Interfaces

Authored by Loris Galler

Computers

University

Used 17+ times

Tutorium 2 - Prog2 - Scala Funktionen + Functional Interfaces
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

Media Image

Was macht diese Scala-Funktion?

Sie gibt das Quadrat von x zurück

Sie gibt x multipliziert mit 3 zurück

Sie gibt x dividiert durch 3 zurück

Sie gibt immer die Zahl 3 zurück

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Was bedeutet es in Scala, dass Funktionen "First-Class Citizens" sind?

Funktionen können nur innerhalb von Klassen definiert werden

Funktionen können als Werte behandelt und weitergegeben werden

Funktionen dürfen keine Parameter besitzen

Funktionen werden vom Compiler automatisch in Klassen umgewandelt

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Welches Programmierparadigma erfüllen Lambda Ausdrücke in Java?

Objektorientiert

Logisch

Funktional

Prozedural

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Welches funktionale Interface gibt es NICHT?

BiProducer

BiConsumer

BinaryOperator

BiFunction

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Welches der folgenden Functional Interfaces repräsentiert einen Lieferanten von Ergebnissen?

Consumer

Function

Supplier

UnaryOperator

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Boxing ist ein Mechanismus in Java, um primitive Typen in Referenztypen zu verwandeln

Stimmt

Falsch

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Welche Methode gehört zu dem Functional Interface Function<T,R>

apply(...)

test(...)

accept(...)

get(...)

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?