Solved

The Following Example Is an Example of What Type of Conditional

Question 44

Multiple Choice

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


A) if expression
B) Ternary operator
C) if modifier
D) None of the above

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions