Categories
|
Test: Swift - Floating Point Types 5. Which of following is true in Swift?
Results Congratulations! Correct Answer. You Answered: None. If you took the test, your answer will show up here. Correct Answer: Float represents 32-bit Floating Point Number; Double represents 64-bit Floating Point Number; Swift infers floating point number to be a Double; Explanation Double has larger precision and is chosen as the type when a variable is declared by assigning a floating point number literal.Take the Test Take the complete test on this topic. You will be able to review answers to questions and get a test score.
Take the Test
Question 5 of 5
Test is Based on this Article
This article talks about decimal numbers in Swift, including Float, Double, and CGFloat. Also talks about Binary, Octal, and Hexadecimal representations.
|
Test on Float and Double types in Swift, as well as binary, octal, and hex representations.
|
|
More Articles With Similar Tags
|
Test on Float and Double types in Swift, as well as binary, octal, and hex representations.
|
This series of articles goes through the basics of Swift. It introduces Playgrounds and REPL; Variables and Constants; Int, Float, Bool; Tuples, Type Aliases, Type Inference, Type Safety, and more.
|
This article discusses the boolean types in Swift and contrasts with how these types are used in C and Objective-C.
|
Test on Boolean Types in Swift.
|
This article goes through the usage of various integer types in Swift (including Int and UInt).
|
|
|
|
|