What is the output of the given code? my_string=Ruby puts(my_string) a) Ruby b) Nil c) Error
View QuestionWhat is the sequence of ruby strings?
a) 16-bit bytes b) 8-bit bytes c) 10-bit bytes d) None of the mentioned Answer: b Explanation: ...
View QuestionWhat does the notataion \b stands for?
a) Escape b) Space c) Backspace d) Newline Answer: c Explanation: This notataion is used for backspace.
View QuestionObjects of which class does the integer from the range -2^30 to 2^(30-1) belong to?
Objects of which class does the integer from the range -2^30 to 2^(30-1) belong to? a) Bignum
View Question
What is the output of the given code?
boolean_1 = 77<78
puts(boolean_1)
What is the output of the given code? boolean_1 = 77<78 puts(boolean_1) a) Nil
View QuestionRuby can deal with both numbers and floating point values.
a) True b) False Answer: a Explanation: We can assingn a integer and a floating point value ...
View QuestionWhat is the size of an integer data type in ruby?
a) -230 to 230 b) -230 to 2(30-1) c) -229 to 230 d) -260 to 261 Answer: b Explanation: ...
View QuestionRuby is a case-sensitive language.
a) True b) False Answer: a Explanation: Ruby differentiates between small and capital letters and their ...
View QuestionWhy can not we use quotation marks (‘ or “) with boolean?
a) It indicates that we are talking about a string b) It indicates that we are assining a ...
View QuestionWhat will any variable evaluate to if it is of Boolean data type?
a) True b) Nil c) False d) Either True or False Answer: d Explanation: Boolean data types will give ...
View Question