Zusammenfassung der Ressource
Frage 1
Frage
What is the output from the following ruby statement:
puts (1 + 2 * 2)
Frage 2
Frage
What is the output from the following ruby statement:
puts (4 * 6 / 2 * 2)
Frage 3
Frage
What is the output from the following ruby expression:
puts (4 / 2 * 2 + 2 / 2)
Frage 4
Frage
What is the output from the following ruby statement:
puts (5 + 10 % 3 + 6 / 2)
Antworten
-
9
-
3
-
\(5 \frac{1}{2} \)
-
\(6 \frac{1}{2} \)
Frage 5
Frage
What is the output from the following ruby statement:
puts (4 * 2 ** 2 * 2)
Frage 6
Frage
What is the output from the final ruby statement:
c = 3
d = 4
puts (c or d == 7)
Frage 7
Frage
What is the output of the last ruby statement
x = 5 && 4
puts x
Frage 8
Frage
What is the output of the last ruby statement
x = 5 and 4
puts x
Frage 9
Frage
What is the output from the final ruby statement:
a = false
b = true
! a || b = false
puts b
Frage 10
Frage
What is the output from the following ruby statement
puts (13 & 10 << 1)
Frage 11
Frage
What is the output from the final ruby statement
a = false
b = true
puts (a && b ? 'foo' : 'bar')
Frage 12
Frage
What is the output from the final ruby statement
a = false
b = true
puts (a and b ? 'foo' : 'bar')