
Tutorium 4 - Prog2
Authored by Loris Galler
Computers
University
Used 12+ times

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
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?