Quiz: Fun Math

Test the knowledge you've gained in this section by trying this quiz.

We'll cover the following...
1

What is the output of the following code?

(1..10).each do |x|
     if (x == 2 || x == 4 ||  x==5)
        print x
        break
     end
  end
A)

2

B)

24

C)

245

D)

13

Question 1 of 40 attempted
Access this course and 1400+ top-rated courses and projects.