Quiz on Strings and Arrays
Test your knowledge of strings and arrays in Ruby.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
(Select all that apply.) We want to store the following string in the variable msg
. Which option shows the correct syntax in Ruby?
This string has ' and " in it
Multi-select
A.
msg = '''This string has ' and " in it'''
B.
msg = 'This string has ' and " in it'
C.
msg = "This string has ' and " in it"
D.
msg = "This string has \' and \" in it"
1 / 6