Exam 5: Working With Loops

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

The upto method is provided by the String class.

(True/False)
4.9/5
(37)

The redo method facilitates which of the following actions?

(Multiple Choice)
4.8/5
(40)

Ruby provides programmers with a number of different ways of altering a loop's execution, including all of the following methods except ____.

(Multiple Choice)
4.8/5
(42)

The next method facilitates which of the following actions?

(Multiple Choice)
4.8/5
(32)

Ruby supports different categories of loops, including which of the following?

(Multiple Choice)
4.9/5
(36)

The break command provides the ability to ____.

(Multiple Choice)
4.8/5
(39)

Which of the following is true regarding the while or until loops?

(Multiple Choice)
4.9/5
(39)

Loop methods are language commands that are part of the set of built-in Ruby language constructions.

(True/False)
4.8/5
(43)

Using a minimum amount of code, loops facilitate the development of scripts that can process huge amounts of data. However, the cost of this processing efficiency comes at a price in terms of additional code statements.

(True/False)
4.7/5
(41)

Loops can be used to collect and process an unlimited amount of user input.

(True/False)
4.8/5
(37)

A loop is a collection of statements that ____.

(Multiple Choice)
4.8/5
(42)

The while modifier evaluates a Boolean expression and then conditionally executes the statement to which is has been appended as long as that condition remains true.

(True/False)
4.9/5
(35)

Ruby provides you with access to many different types of loops, which can be organized broadly as ____.

(Multiple Choice)
4.7/5
(38)

Ruby range operator ( .. ) provides the ability to do which of the following?

(Multiple Choice)
4.8/5
(36)

The loop method is designed to be executed a given number of times.

(True/False)
4.9/5
(38)

The downto method iterates a predetermined number of times, starting at a specified integer value and counting down to whatever integer value is passed to it.

(True/False)
4.9/5
(38)

The ____ method forces a loop to repeat only after evaluating its condition and without iterating.

(Multiple Choice)
4.9/5
(33)

One limitation of loops is that they are not well suited to the development of scripts that need to be replayed over and over again.

(True/False)
4.9/5
(31)

Which of the following is not a loop modifier supported by Ruby?

(Multiple Choice)
4.7/5
(33)

The loop method belongs to the ____.

(Multiple Choice)
4.9/5
(38)
Showing 21 - 40 of 50
close modal

Filters

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