Home / Programming Questions / Ruby MCQs / Page 8
Dear candidates you will find MCQ questions of Ruby here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
V
Q. What will be the output of the given code?
boolean_var = !(100 / 10 === 10) puts boolean_var
V
Q. What will be the output of the given code?
boolean_var = !true || (true || 36 != 6**2) puts boolean_var
V
Q. What will the following expression evaluate to?
true || false
V
Q. What will the following expression evaluate to?
!true && !false
V
Q. Which of the following is not a type of loop in ruby?
V
Q. What is true about Until loop?
V
Q. What is true about while loop?
V
Q. What is the use of break statement?
Don't have account? Register here.