Home / Programming Questions / Ruby MCQs / Page 7
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. Among the following which operator has highest Precedence?
V
Q. Among the following which operator has lowest Precedence?
V
Q. What will be the output of the given code?
boolean_var = 15 < 16 && 15 < 15 puts boolean_var
V
Q. What will be the output of the given code?
num=4<<2 puts num
V
Q. What will be the output of the given code?
num=4>>2 puts num
V
Q. What will be the output of the given code?
num=(10<11)||(11===11)? (11===11.0): 0 puts num
V
Q. What will be the output of the given code?
boolean_var = 3**2 != 2**3 || true puts boolean_var
V
Q. What will be the output of the given code?
boolean_var = false || -20 > -18 puts boolean_var
Don't have account? Register here.