Quiz: Printing Shapes

Solidify your knowledge of printing shapes through a short quiz.

1

What is the output of the following code?

puts "ruby" * 2
A)

rubyruby

B)

rruubbyy

C)

2ruby

D)

2r2u2b2y

E)

ruby2

Question 1 of 50 attempted

Get hands-on with 1400+ tech skills courses.