Home / C# Programming / Strings - C# :: Discussion

Discussion :: Strings - C#

  1. Which of the following snippets are the correct way to convert a Single into a String?

    1. Single f = 9.8f;  String s; s = (String) (f);
    2. Single f = 9.8f;  String s; s = Convert.ToString(f);
    3. Single f = 9.8f;  String s; s = f.ToString();
    4. Single f = 9.8f;  String s; s = Clnt(f);
    5. Single f = 9.8f;  String s; s = CString(f);

  2. A.
    1, 2
    B.
    2, 3
    C.
    1, 3, 5
    D.
    2, 4

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment