T

Team MCQ Buddy • 20.60K Points
Instructor III

Q. Which of the following are valid floating point literal?

  • (A) 0.5
  • (B) 5
  • (C) ---
  • (D) ---
  • Correct Answer - Option(A)
  • Views: 114
  • Filed under category Ruby

Explanation by: Team MCQ Buddy
floating point literals are valid only when they have digits on both the sides of decimal point.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics