A

Admin • 828.03K Points
Coach

Q. What is the output of 'nil.nil?' in Ruby?

  • (A) true
  • (B) false
  • (C) nil
  • (D) error
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
Calling nil? on nil returns true.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.