Which of the following is a valid way of creating a string within a Ruby statement?

A. Embed text within an opening %Q{ and } characters.
B. Embed text within a pair of double quotation marks.
C. Embed text within a pair of single quotation marks.
D. Both a and b.

Answer: D

Computer Science & Information Technology

You might also like to view...

The slide master can be saved as a(n) ________ and can be applied to other slide presentations

Fill in the blank(s) with correct word

Computer Science & Information Technology

A(n) ________ is a powerful, interactive data-mining feature that enables you to summarize and analyze data, especially helpful when working with large datasets

Fill in the blank(s) with correct word

Computer Science & Information Technology