The following example is an example of what type of conditional evaluation? print "Enter your age and press Enter: "answer = STDIN.getsanswer.chop!puts "You must be 18 or older to play this game!" if answer.to_i < 18
A. if expression
B. Ternary operator
C. if modifier
D. None of the above
Answer: C
Computer Science & Information Technology
You might also like to view...
The Weather app appears as a(n) ________ tile on the Windows Start menu
Fill in the blank(s) with correct word
Computer Science & Information Technology
How do proxy servers differ from packet filters?
What will be an ideal response?
Computer Science & Information Technology
Chart sizes can be locked so they do not resize when columns or rows are resized
Indicate whether the statement is true or false
Computer Science & Information Technology
The mail() function returns a value of TRUE if the message was sent successfully and FALSE if it was not.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology