CSE MCQs :: Ruby Programming MCQs
- Which of the following is supported by Ruby?
-
What is the output of the given code?"Ruby.length #to find the length of given string
- Why do we use =begin and =end?
- Why can not we use quotation marks (' or ") with boolean?
-
What is the output of the given code?boolean_1 = 77 less than 78puts(boolean_1)
- What is the role of ! at the end of the capitalize method?
-
What is the output of the given code?print "Hey"puts "Everyone!"print "We are learning Ruby"
- Which sequence can be used to substitute the value of any ruby expression in a string?
-
What will be the output of the following?"Eric".irreverse