A
Q. What will be the output of the given code?
Code:num=4>>2 puts num
Here, you will find a collection of MCQ questions on Ruby. Go through these questions to enhance your preparation for upcoming examinations and interviews.
To check the correct answer, simply click the View Answer button provided for each question.
Have your own questions to contribute? Click the button below to share your MCQs with others!
+ Add QuestionA
num=4>>2 puts num
A
num=(10<11)||(11===11)? (11===11.0): 0 puts num
A
boolean_var = !true || (true || 36 != 6**2) puts boolean_var
A
true || false
A
A
A
A
A
A
If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.
Share Your MCQ