Q. What will be the output of the given code?
Code:boolean_var = 15 < 16 && 15 < 15 puts boolean_var
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
boolean_var = 15 < 16 && 15 < 15 puts boolean_var
num=4<<2 puts num
num=4>>2 puts num
num=(10<11)||(11===11)? (11===11.0): 0 puts num
boolean_var = 3**2 != 2**3 || true puts boolean_var
boolean_var = false || -20 > -18 puts boolean_var
boolean_var = !(100 / 10 === 10) puts boolean_var
boolean_var = !true || (true || 36 != 6**2) puts boolean_var
true || false
!true && !false