Exam 3: Working With Strings, Objects, and Variables

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

A loop is ____.

Free
(Multiple Choice)
4.8/5
(48)
Correct Answer:
Verified

B

Which of the following operators is the Ruby assignment operator?

Free
(Multiple Choice)
4.9/5
(44)
Correct Answer:
Verified

C

Which of the following operators can be used to automatically increment a variable's value?

Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
Verified

B

In Ruby variable names must be formulated in accordance in a very specific set of rules. These rules includes all of the following except:

(Multiple Choice)
4.7/5
(36)

new is a method that initiates the creation of a new object.

(True/False)
4.8/5
(42)

When working with #{} , Ruby is able to perform variable substitution.

(True/False)
4.9/5
(41)

Which of the following is a valid string?

(Multiple Choice)
4.7/5
(37)

Ruby requires that programmers specify a numeric class type, otherwise errors occur.

(True/False)
4.8/5
(42)

When working with double-quotes, Ruby is not able to perform escaping.

(True/False)
4.8/5
(35)

Which of the following statements is false?

(Multiple Choice)
4.9/5
(31)

The childclass operator is used to create a new class based on an existing (parent) class.

(True/False)
4.9/5
(40)

Which of the following escape characters can be used to embed a new line feed instruction inside a text string?

(Multiple Choice)
4.9/5
(34)

A numeric value can be converted to a string using which of the following methods?

(Multiple Choice)
4.8/5
(39)

One of the primary benefits of object-oriented programming is its ability to allow programmers to model the creation of classes based on real life concepts.

(True/False)
4.7/5
(38)

Ruby supports a number of different types of scope, including ____.

(Multiple Choice)
4.8/5
(34)

A module is a container use to group classes, method, and constants.

(True/False)
4.9/5
(30)

Ruby is not an object-oriented programming language.

(True/False)
4.7/5
(29)

The advantage of using %q{ and } and %Q{ and } characters in place of quotation marks is that these characters allow for the creation of strings that span multiple lines.

(True/False)
4.8/5
(32)

An attr_accessor is a keyword that identifies a list of one or more object properties.

(True/False)
4.9/5
(41)

Which of the following is a true statement about constants?

(Multiple Choice)
4.8/5
(35)
Showing 1 - 20 of 50
close modal

Filters

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