Exam 5: Working With Loops

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

The while loop is a loop that executes as long as a tested condition continues to evaluate as false.

(True/False)
4.9/5
(30)

When working with the while or until loops, the do or : are mutually exclusive and can be omitted if the loop is spread out over more than one line.

(True/False)
5.0/5
(42)

The each method is a very commonly used looping method. This method is supported by a number of different Ruby classes, including all of the following except ____.

(Multiple Choice)
4.9/5
(37)

Ruby's built-in language looping constructions include which of the following?

(Multiple Choice)
4.9/5
(34)

The until loop is the opposite of the while loop. Instead of looping while a tested expression remains true, the until loop executes until ____.

(Multiple Choice)
4.8/5
(44)

The for...in loop is designed to process collections of data, including:

(Multiple Choice)
4.8/5
(39)

An iterator is a variable used to process the contents of a list of items.

(True/False)
4.9/5
(37)

A feature unique to the for…in loop is that it is built to automatically repeat once for every element stored in an array.

(True/False)
4.8/5
(43)

When combined with conditional logic, loops provide the basis for developing the programming logic needed to process and validate user input.

(True/False)
4.8/5
(27)

The each method automatically iterates once for each item stored in the array.

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

Filters

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