What is the difference between nil and false?
A. nil represents absence of value, false represents a boolean value
B. Both are the same
C. nil is a string, false is a boolean
D. nil is a number, false is a boolean
Answer: Option A
A. nil represents absence of value, false represents a boolean value
B. Both are the same
C. nil is a string, false is a boolean
D. nil is a number, false is a boolean
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