Vidyalelo
Ruby Programming · Q27

Basic Syntax in Ruby

Programming · Ruby Programming · question 27

Q27

What is the difference between nil and false?

A.
nil represents absence of value, false represents a boolean value
Answer
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

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board