MCQs / Computer Science / iOS: Architecture and Framework
iOS: Architecture and Framework MCQs — Computer Science (page 2) 47 multiple-choice questions on iOS: Architecture and Framework from Computer Science, each with the correct answer and, where available, a teacher's explanation. Read through them to revise the chapter, then practise the same questions one by one to test yourself.
26. The Android equivalent of SwiftUI is: Fragments Jetpack Compose XML Views Gradle Answer: B) Jetpack Compose
Explanation: Both are modern declarative UI toolkits.
Discuss this question
27. The Security framework and keychain are part of the: Core OS layer Cocoa Touch layer App layer Media layer Answer: A) Core OS layer
Explanation: Low-level security services are in Core OS.
Discuss this question
28. Interface Builder files used to visually design several UIKit screens and their transitions are called: Bundles Storyboards Manifests Plists Answer: B) Storyboards
Explanation: Storyboards contain scenes and segues for UIKit apps.
Discuss this question
29. Apple recommends that developers use: The highest-level framework that meets their needs Only the Core OS layer Only Objective-C Assembly language Answer: A) The highest-level framework that meets their needs
Explanation: Higher layers are easier, safer and more efficient for most tasks.
Discuss this question
30. An iOS app in the foreground but not receiving events (e.g. during an incoming call alert) is: Suspended Active Inactive Not running Answer: C) Inactive
Explanation: Inactive means foreground without receiving events.
Discuss this question
31. In UIKit, an @IBOutlet is used to: Import a library Handle a button tap Declare a database table Reference a storyboard UI element from code Answer: D) Reference a storyboard UI element from code
Explanation: Outlets connect UI elements to properties in code; actions connect events to methods.
Discuss this question
32. Which UIKit class shows a scrolling list of rows? UIStepper UISwitch UITableView UILabel Answer: C) UITableView
Explanation: UITableView displays rows in a single column list.
Discuss this question
33. SwiftUI is described as a: Declarative UI framework Imperative networking library Database framework Kernel extension Answer: A) Declarative UI framework
Explanation: In SwiftUI you declare the UI for a given state.
Discuss this question
34. The Apple Developer Program fee for publishing apps is: Free forever USD 25 one time USD 10 per app USD 99 per year Answer: D) USD 99 per year
Explanation: Apple charges USD 99 per year.
Discuss this question
35. Which is the HIGHEST layer of the iOS architecture? Core Services Media Core OS Cocoa Touch Answer: D) Cocoa Touch
Explanation: Cocoa Touch is the top layer that apps interact with most.
Discuss this question
36. In SwiftUI, which container arranges views vertically? List only HStack VStack ZStack Answer: C) VStack
Explanation: VStack stacks child views vertically.
Discuss this question
37. The iOS kernel is called: Windows NT XNU (part of Darwin) Linux Mach-Linux Answer: B) XNU (part of Darwin)
Explanation: XNU, a hybrid of Mach and BSD, is the kernel of Darwin used by iOS and macOS.
Discuss this question
38. Which SwiftUI property wrapper stores local mutable state of a view? @State @IBOutlet @main @objc Answer: A) @State
Explanation: @State holds view-local state; changing it re-renders the view.
Discuss this question
39. Apple's OS for the Vision Pro headset is: XROS-Android visionOS watchOS tvOS Answer: B) visionOS
Explanation: visionOS runs on Apple Vision Pro.
Discuss this question
40. Xcode runs on: macOS only Android Windows Linux Answer: A) macOS only
Explanation: Xcode is available only for macOS.
Discuss this question
41. Which UIViewController method is called once after the view is loaded into memory? viewDidLoad() viewWillAppear() viewDidDisappear() deinit Answer: A) viewDidLoad()
Explanation: viewDidLoad is the usual place to set up the UI, like Android's onCreate.
Discuss this question
42. How many main layers are in the classic iOS architecture? Two Four Five Three Answer: B) Four
Explanation: Core OS, Core Services, Media and Cocoa Touch.
Discuss this question
43. The iOS app package uploaded to the store is a/an: IPA DEX AAB APK Answer: A) IPA
Explanation: iOS apps are packaged as IPA files.
Discuss this question
44. Which Xcode tool profiles memory, CPU and energy usage? Simulator Instruments Interface Builder TestFlight Answer: B) Instruments
Explanation: Instruments is Xcode's performance profiling tool.
Discuss this question
45. Which iOS framework is used to show maps inside an app? MapKit Core Image Accelerate PhotoKit Answer: A) MapKit
Explanation: MapKit embeds maps and annotations.
Discuss this question
46. In UIKit, each screen is usually managed by a: UIWindowDelegate NSManagedObject UIViewController UIApplication Answer: C) UIViewController
Explanation: A view controller manages one screen's views and events.
Discuss this question
47. Swift Package Manager and CocoaPods are used to: Add third-party libraries (dependencies) Encrypt the IPA Design icons Test on Android Answer: A) Add third-party libraries (dependencies)
Explanation: They are dependency managers for iOS projects.
Discuss this question
Previous Page 2 of 2
Practise iOS: Architecture and Framework MCQs
More Computer Science chapters