Quiz on Variables
Take a quiz on Ruby variables
Technical Quiz
1.
Consider the following code:
x = 12 - 2 + 4
puts x
What’s the expected output?
A.
12
B.
10
C.
14
D.
4
1 / 3
Take a quiz on Ruby variables
Consider the following code:
x = 12 - 2 + 4
puts x
What’s the expected output?
12
10
14
4