Home / CSE MCQs / Ruby Programming MCQs :: Discussion

Discussion :: Ruby Programming MCQs

  1. Which of the following are valid floating point literal?
  2. A.
    5
    B.
    2
    C.
    0.5
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    floating point literals are valid only when they have digits on both the sides of decimal point.


Be The First To Comment