A

Admin • 828.03K Points
Coach

Q. Which of these statements about optionals is true?

  • (A) An optional must have a value
  • (B) Optionals cannot be nil
  • (C) Optionals can be nil or have a value
  • (D) Optionals are always unwrapped automatically
  • Correct Answer - Option(C)
  • Views: 13
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
Optionals are used to represent a variable that might hold a value or might be nil.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.