Swift MCQ Questions - Mobile Development

11. Which of the following is not a literals in swift?

A. Binary Literals
B. Quad Literals
C. Hexadecimal Literals
D. Decimal Literals

View Answer


12. Numbers with decimal values or fractional components are called?

A. decimal number
B. integer number
C. floating numbers
D. All of the above

View Answer


13. Which of the following features of Swift programming language?

A. Swift is very easy to learn and precise to use
B. Automatic memory management
C. Swift follows Objective-C like syntax
D. All of the above

View Answer


14. In Swift programming language, single-line comments are started with ___________?

A. single slashes
B. double slashes
C. asterisk
D. hash

View Answer


15. _____________ is a process of querying and calling properties

A. Lazy Chaining
B. Swift Chaining
C. Optional Chaining
D. All of the above

View Answer


16. How many types of classes in Inheritance in Swift?

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

View Answer


17. How many varieties of collection types in Swift?

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

View Answer


18. Which Of The Following Is Incorrect Data Type In SWIFT ?

A. UInt
B. Double
C. Char
D. Optional

View Answer


19. Which Of The Following Is Incorrect Value Type Of The Swift?

A. Double
B. Character
C. Enum
D. Class

View Answer


20. The class which inherits the properties from other class is called child class or sub class.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer





Discussion


* You must be logged in to add comment.