Scala Methoden

Philipp Reger
Quiz by , created 10 months ago

Informatik Quiz on Scala Methoden, created by Philipp Reger on 07/01/2018.

Eye 0
Pin 0
Balloon left 0
Tags No tags specified
Philipp Reger
Created by Philipp Reger 10 months ago
Anatomy and Physiology - BIO 111 - Test #1 Flashcards
ajudkins
“The knower’s perspective is essential in the pursuit of knowledge.” To what extent do you agree with this statement?
Lucia Rocha Mejia
Using GoConqr to study English literature
Sarah Egan
Část 1.
Nikola Truong
Conclusion Paragraph
Amber Carter
Chemistry Quiz General -3
lauren_johncock
AP Chemistry
Cathal Darby
Girls' and Boys' Education - A Mind Map
Cecelia Price
AEM Quiz
netiszen
Psychology flashcards memory
eharveyhudl

Question 1

Question
Geben Sie die Definition einer Scala Methode an, die die folgenden Eigenschaften erfüllt. - Instanzvariablen x und y jeweils von Typ Int - Rückgabewert von Typ Int def methode([blank_start]x: Int[blank_end], [blank_start]y: Int[blank_end])[blank_start]: Int[blank_end] = { ... }
Answer
  • x: Int
  • y: Int
  • : Int

Question 2

Question
Setzen Sie die folgende while-Schleife so zusammen, dass der Inhalt ausgeführt wird, solange i kleiner als x ist. val i: Int = 0 val x: Int = 0 while(i[blank_start]<[blank_end][blank_start]x[blank_end]){ x += 2 [blank_start]i[blank_end] + = 1 }
Answer
  • i
  • a
  • b
  • <
  • >
  • <=
  • >=
  • +
  • -
  • x
  • y
  • z