In Ruby, what is the keyword used to define a loop that repeats until a condition is true?
A. until
B. loop
C. while
D. repeat
Answer: Option A
A. until
B. loop
C. while
D. repeat
Answer: Option A
What does the 'puts' method do in Ruby?
A. Prints to console
B. Converts to string
C. Finds the length
D. Reads input from user
Join The Discussion