Discussion :: Ruby Programming MCQs
-
What is the output of the given code?if 11>2puts "Eleven is greater than two"endprint "You'r right"
A.
Eleven is greater than two
|
B.
You'r right
|
C.
Eleven is greater than two You'r right
|
D.
None of the mentioned
|
Answer : Option C
Explanation :
If condition is true then code is executed and then it comes out and then execute the remaining code. Output: Eleven is greater than two You'r right
Be The First To Comment