WorksheetsVariablen und Vergleiche
Total questions: 10
Worksheet time: 4mins
Name
Class
Date
1.
1.0 / 0.0
a)
0
b)
Fehler
c)
Infinity
d)
NaN
2.
0 / 0
a)
0
b)
Fehler
c)
Infinity
d)
NaN
3.
0.0 / 0
a)
0
b)
Fehler
c)
Infinity
d)
NaN
4.
Was wird ausgegeben?
System.out.println("Hallo "Name"!");
a)
Fehler
b)
Hallo "Name"!
c)
Hallo !
d)
Nichts (wird nicht kompiliert)
5.
Was wird ausgegeben?
int x = 42;
int y = 41;
System.out.println(y++ == x);
a)
true
b)
Fehler
c)
false
6.
Was kann man mit = vergleichen?
a)
Nichts
b)
Objektinhalte
c)
Primitive Datentypen
d)
Zahlen
7.
Was wird normalerweise mit == verglichen?
a)
Nichts
b)
Objekte
c)
Primitive Datentypen
d)
Zahlen
8.
Was wird ausgegeben?
boolean x = true;
boolean y = false;
System.out.println(!x == y || 0 / 0 == 0);
a)
true
b)
Fehler
c)
false
d)
Nichts (wird nicht kompiliert)
9.
Was wird ausgegeben?
boolean x = true;
boolean y = false;
System.out.println(!x == y | 0 / 0 == 0);
a)
true
b)
Fehler
c)
false
d)
Nichts (wird nicht kompiliert)
10.
1.0 / 0
a)
0
b)
Fehler
c)
Infinity
d)
NaN
100 %
