ExamVeda
Login
Home
1
What is the keyword used to define a conditional statement in Ruby?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
2
Which of the following loops in Ruby is executed at least once?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
3
In Ruby, what does the unless keyword do?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
4
What is the purpose of the case statement in Ruby?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
5
Which loop in Ruby allows you to iterate over a collection of elements?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
6
What is the result of the expression 5 > 3 ? "Yes" : "No" in Ruby?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
7
What does the break keyword do in a loop in Ruby?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
8
Which of the following is NOT a comparison operator in Ruby?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
9
What is the purpose of the redo keyword in Ruby?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
10
What is the output of the following code snippet?
x = 10
unless x > 15
  puts "Hello"
end
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board