Exam 3: Working With Strings, Objects, and Variables

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

Which of the following constructions is used as the basis for defining objects?

(Multiple Choice)
4.9/5
(34)

A method is an object attribute stored as a variable that describes a particular aspect or feature of the object.

(True/False)
4.8/5
(39)

A case code block is ____.

(Multiple Choice)
4.8/5
(27)

The String class's swapcase method converts a string to all uppercase letters.

(True/False)
4.8/5
(41)

One of the differences between Ruby and many other programming languages is that ____.

(Multiple Choice)
4.9/5
(36)

Ruby variable names are:

(Multiple Choice)
4.8/5
(40)

Which of the following statements correctly defines local variable scope?

(Multiple Choice)
4.8/5
(30)

Interpolation is the process of substituting the value of an expression or variable inside a string.

(True/False)
4.8/5
(40)

A constant is very similar to variable, expect that:

(Multiple Choice)
4.8/5
(46)

Which of the following methods should be used to convert a numeric value to an integer?

(Multiple Choice)
4.9/5
(42)

Ruby supports a number of different types of numeric classes, including all of the following except ____.

(Multiple Choice)
4.8/5
(27)

Creating a string by embedding characters inside the %q{ and } characters is equivalent to embedding them within double quotes.

(True/False)
4.9/5
(38)

Which of the following is not true about Ruby?

(Multiple Choice)
4.7/5
(39)

To compare two strings to see if they are equal the = operator must be used.

(True/False)
4.9/5
(39)

When creating multiline text strings using the %q{ and } and %Q{ and } characters, you can substitute any characters you wish in place of the { and } characters.

(True/False)
4.8/5
(43)

Which of the following variable names is valid?

(Multiple Choice)
4.8/5
(25)

Objet properties are implemented as named variables.

(True/False)
4.8/5
(42)

Text plays a big role in many scripts when communicating with users. Text strings in Ruby can consist of letters, numbers, special characters and even blank spaces.

(True/False)
4.8/5
(35)

When the user presses Enter in order to submit input, Ruby automatically appends an end of line marker to the end of the input. This end of line marker can be removed using what method?

(Multiple Choice)
4.9/5
(40)

Concatenation is the process of splitting a string into two smaller strings.

(True/False)
4.8/5
(43)
Showing 21 - 40 of 50
close modal

Filters

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