Control flow Operators Flashcards
0
Q
Else
A
If # Test = False # Do else # Do End
1
Q
If
A
If # Test = True # Do
End
2
Q
Elsif
A
Another Test = True
End
3
Q
Unless
A
Unless # Test = True # Do End
4
Q
What is missing?
if (x >= 10)
print “Learning Ruby”
A
if x >= 10
print “Learning Ruby”
end
5
Q
What do you need to delete?
if ( x >= 10)
print “Learning Ruby”
A
Brackets
if x >= 10
print “Learning Ruby”
end
Don’t forget the end