ExamVeda
Login
Home
71
What is the output of the given code?
"Ruby Language".length
       = begin
       calculate length
       = end
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
72
What will be the output of the given code?
"I'am learning Ruby Language".reverse.upcase.length
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
73
Why do we use comments?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
74
How to comment multiple lines in ruby?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
75
What will be the output of the given code?
"Come let's learn.reverse Ruby.length language".upcase
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
76
What is the output of given code?
string="I'am Learning RUBY Language".downcase
    string.upcase
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
77
What is the output of the code?
print "What's your first name?"
   first_name=gets.chomp
   a=first_name.capitalize
   first_name.capitalize!
   print "What's your last name?"
   last_name=gets.chomp
   b=last_name.capitalize
   last_name.capitalize
   puts "My name is #{first_name} #{last_name}"
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
78
What is the output of the following?
ruby.reverse
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
79
What is the output of the given code?
print "what's your first name?"
   first_name=gets.chomp
   a=first_name.capitalize
   "first_name.capitalize!".reverse
   puts"My name is #{first_name}"
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
80
What is the output of the following?
"Iam learning ruby language".length
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board