Ruby Maths by Makers Academy

Ruby Maths by Makers Academy

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

17 % 7

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 14, 2020

Cards (5)

Section 1

(5 cards)

17 % 7

Front

How would you compute the remainder when 17 is divided by 7?

Back

puts(Math::PI)

Front

How would you print Pi?

Back

5**2

Front

How would you compute 5 squared in Ruby?

Back

Above 0.0, below 1.0

Front

What range of numbers will the output be between, If i execute: puts rand

Back

0, 1, 2, 3 or 4

Front

What will the output be if I execute: puts rand(5)?

Back