ExamVeda
Login
Home
91
What is the output of the given code?
my_string=Ruby
    puts(my_string)
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
92
What is the output of the given code?
“Ruby”.length #to find the length of given string
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
93
Which of the following is not a valid library function?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
94
What is the output of the given code?
print "what's your first name?"
   first_name=gets.chomp
   a=first_name.capitalize
   "a".reverse
   puts"My name is #{a}"
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
95
What is the output of the given code?
boolean_1 = 77<78
   puts(boolean_1)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
96
Ruby can deal with both numbers and floating point values.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
97
It is must for Ruby to use a compiler.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
98
Why is the library function 'puts'used for?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
99
Ruby is a case-sensitive language.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
100
What will be the output of the following?
"Ruby".reverse.upcase
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board