Section 1

Preview this deck

To assign a variable a value, use

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 1, 2020

Cards (9)

Section 1

(9 cards)

To assign a variable a value, use

Front

the equal sign ############ x = 8 puts x # outputs 8 ############

Back

Rearrange the code to output "My first program" to the screen. # prints "My" # prints "progam" # puts "first"

Front

############## # prints "My" # puts "first" # prints "program" ###############

Back

the =begin and =end reserved words are considered

Front

a comment ################ =begin This comment spans multiple lines =end puts "Hello" ################

Back

hashtag symbol is used to create

Front

a single-line comment

Back

Ruby on Rails is a:

Front

Web Framework

Back

Fill in the blanks to print "Ruby is fun" to the screen. ____"Ruby is fun"

Front

puts or print

Back

Diffrence between puts and print

Front

puts automatically adds a new line after the output, while print does not ################# #puts "Hi" #print "there" #print "Ruby" ##Hi ##thereRuby #################

Back

a named storage location for a value

Front

A variable

Back

What is the output of this code? # puts "1" puts "2"

Front

2

Back