Exam 4: Implementing Conditional Logic

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

Conditional expressions provide the ability to append a conditional check to the beginning of Ruby statements in order to control the conditional execution of the statement.

(True/False)
4.8/5
(34)

Like other modern programming languages, Ruby provides programmers with access to a range of comparison operators, not including ____.

(Multiple Choice)
4.8/5
(40)

Ruby provides programmers with access to several ways of applying conditional logic, including all of the following except ____.

(Multiple Choice)
4.8/5
(36)

The following example is an example of what type of conditional evaluation? print "Enter your age and press Enter: " answer = STDIN.gets answer.chop! puts "You must be 18 or older to play this game!" if answer.to_i

(Multiple Choice)
4.8/5
(37)

Some situations require a more complicated analysis than can be accomplished using an single conditional modifier or expression. One way of performing more complex conditional testing is through a processing called ____.

(Multiple Choice)
4.9/5
(39)

Which of the following is a limitation of the case blocks?

(Multiple Choice)
4.7/5
(34)

Flowcharts are often used in large projects in order to ____.

(Multiple Choice)
4.9/5
(40)

Using Ruby, you can create scripts that consist of a series of statements that are executed in sequential order. However, these scripts are often not suited to complex tasks.

(True/False)
4.8/5
(30)

Which of the following is the ternary operator?

(Multiple Choice)
4.9/5
(44)
Showing 41 - 49 of 49
close modal

Filters

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