QUESTION IMAGE
Question
17.which of these is a boolean value in swift?
o a. yes / no
o b. 1 / 0
c. true / false
o d. on / off
clear my choice
18.which keyword is used to create an array in swift?
o a. array()
b.
o c. set()
o d. dictionary()
clear my choice
19.which framework in ios handles base objects like nsstring, nsarray, nsdictionary?
o a. uikit
b. foundation
o c. core animation
o d. mapkit
clear my choice
Brief Explanations
- In Swift, the Boolean values are
trueandfalse. They are used for logical operations. - In Swift, an empty array is created using square - brackets
[]. Thearray()is not the correct keyword for creating a basic array in Swift.set()is for creating sets anddictionary()is for creating dictionaries. - The Foundation framework in iOS provides base objects like
NSString,NSArray,NSDictionary.UIKitis for building user interfaces,Core Animationis for animations andMapKitis for maps.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
- C. true / false
- B. []
- B. Foundation