Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 607 Bytes

strings_and_integers_quiz.markdown

File metadata and controls

9 lines (8 loc) · 607 Bytes

Strings and Integers Quiz

  1. If you have a variable named a that contains the string "Ruby" and a variable named b that contains the string "is fun", what code would you write to output "Ruby is fun"?
  2. If you write 5 + 6 + 7, what does Ruby see behind the "syntactic sugar"?
  3. If you had a variable name that contained a user's first name, how could you output the line Your name is 4 characters long where 4 is the correct length of their name?
  4. How can print out the string "Hello, World" ten times?
  5. What's the difference between a single-quoted and a double-quoted string?