Exam 3: Working With Strings, Objects, and Variables

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following methods does not belong to the String class?

(Multiple Choice)
4.9/5
(34)

Concatenation is performed using the & character.

(True/False)
4.9/5
(43)

Ruby provides the ability to generate random numbers using what method?

(Multiple Choice)
4.8/5
(32)

In Ruby variable scope is indicated by the first character in a variable's name. The character used to specify a global variable is?

(Multiple Choice)
4.9/5
(34)

Inheritance is an object-oriented process that allows one class to be used as the basis for the definition of another class.

(True/False)
4.9/5
(42)

Which of the following variable names is invalid?

(Multiple Choice)
4.9/5
(35)

Escape characters provide the ability to embed instructions into text strings that tell Ruby how to format displayed text.

(True/False)
4.9/5
(36)

Single-quoted strings support both escaping and variable substitution.

(True/False)
4.8/5
(32)

Objects are partially self-contained entities designed to work with methods and properties stored externally to itself.

(True/False)
4.9/5
(39)

You can create new strings by multiplying existing strings using the String class's * method.

(True/False)
4.8/5
(26)
Showing 41 - 50 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)