Quiz on Strings and Arrays
Explore key concepts of Ruby strings and arrays through this quiz. Learn to work with basic and multidimensional arrays to build your understanding of essential Ruby data structures.
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