Quiz on Variables

Take a quiz on Ruby variables

1

Consider the following code:

x = 12 - 2 + 4
puts x

What’s the expected output?

A)

12

B)

10

C)

14

D)

4

Question 1 of 30 attempted