MVVM stands for Model-View-ViewModel, an architecture that separates data, user interface, and presentation logic.
Incorrect! Try again.
2Which MVVM component stores and manages application data?
Introduction to MVVM architecture
Easy
A.ViewModel
B.Model
C.Controller
D.View
Correct Answer: Model
Explanation:
The Model represents the application's data and related business rules.
Incorrect! Try again.
3What is the main role of the ViewModel in MVVM?
Introduction to MVVM architecture
Easy
A.To display the Xcode toolbar
B.To connect data with the View
C.To install the iOS Simulator
D.To create application certificates
Correct Answer: To connect data with the View
Explanation:
The ViewModel prepares and exposes Model data for presentation by the View.
Incorrect! Try again.
4What is Xcode mainly used for?
Introduction to Xcode
Easy
A.Creating database server clusters
B.Managing Android application packages
C.Developing Apple platform applications
D.Designing computer network cables
Correct Answer: Developing Apple platform applications
Explanation:
Xcode is Apple's integrated development environment for building applications for platforms such as iOS and macOS.
Incorrect! Try again.
5Which part of the Xcode workspace is primarily used to edit source code?
Workspace window
Easy
A.Utility area
B.Debug area
C.Editor area
D.Navigator area
Correct Answer: Editor area
Explanation:
The editor area is where developers view and modify source code and interface files.
Incorrect! Try again.
6What is Interface Builder used for in Xcode?
Interface Builder
Easy
A.Installing operating system updates
B.Creating source control accounts
C.Managing remote database servers
D.Designing user interfaces visually
Correct Answer: Designing user interfaces visually
Explanation:
Interface Builder allows developers to arrange and configure interface elements visually.
Incorrect! Try again.
7What can be changed using the Attribute inspector?
Attribute inspector
Easy
A.Properties of a selected UI element
B.The simulator's operating system
C.The computer's network connection
D.The application's signing certificate
Correct Answer: Properties of a selected UI element
Explanation:
The Attribute inspector is used to modify properties such as text, color, alignment, and style.
Incorrect! Try again.
8What is the main purpose of the iOS Simulator?
Simulator and creating project
Easy
A.To test an app on a simulated device
B.To design icons for an iOS app
C.To convert Swift code into Java code
D.To publish an app to the App Store
Correct Answer: To test an app on a simulated device
Explanation:
The iOS Simulator lets developers run and test applications without using a physical iPhone or iPad.
Incorrect! Try again.
9Which Xcode command is commonly used to begin creating a new application project?
Simulator and creating project
Easy
A.Open Developer Documentation
B.Create a new Xcode project
C.Connect to a remote repository
D.Install additional components
Correct Answer: Create a new Xcode project
Explanation:
The "Create a new Xcode project" command opens the template selection process for a new application.
Incorrect! Try again.
10What is a view controller mainly responsible for?
Looking at view controller
Easy
A.Installing third-party frameworks
B.Managing a screen and its views
C.Managing the Mac file system
D.Publishing apps to the store
Correct Answer: Managing a screen and its views
Explanation:
A view controller manages a group of views and coordinates their behavior on a screen.
Incorrect! Try again.
11What is an IBOutlet used for?
Understanding outlets
Easy
A.Opening the device camera directly
B.Connecting a UI element to code
C.Creating a new Swift package
D.Starting an application download
Correct Answer: Connecting a UI element to code
Explanation:
An IBOutlet creates a reference in code to a user interface element designed in Interface Builder.
Incorrect! Try again.
12Which keyword commonly appears before an outlet declaration in UIKit?
Understanding outlets
Easy
A.@available
B.@IBOutlet
C.@UIApplicationMain
D.@IBAction
Correct Answer: @IBOutlet
Explanation:
The @IBOutlet keyword identifies a property that can be connected to an interface element.
Incorrect! Try again.
13What does an IBAction usually represent?
Actions
Easy
A.A method triggered by a UI event
B.A tool for selecting simulators
C.A variable storing a UI element
D.A file containing application data
Correct Answer: A method triggered by a UI event
Explanation:
An IBAction is a method connected to a user event, such as tapping a button.
Incorrect! Try again.
14Which user interaction can commonly trigger an action connected to a UIButton?
Actions
Easy
A.Renaming the project
B.Building the workspace
C.Tapping the button
D.Opening the navigator
Correct Answer: Tapping the button
Explanation:
A UIButton can trigger its connected action when the user taps it.
Incorrect! Try again.
15Which UI element is normally used to display a short piece of text?
Designing UI
Easy
A.UISlider
B.UISwitch
C.UILabel
D.UIButton
Correct Answer: UILabel
Explanation:
UILabel is used to display one or more lines of read-only text.
Incorrect! Try again.
16What is Auto Layout used for in an iOS interface?
Designing UI
Easy
A.Compiling Swift source code
B.Downloading content from a server
C.Saving application data to files
D.Positioning UI elements with constraints
Correct Answer: Positioning UI elements with constraints
Explanation:
Auto Layout uses constraints to position and size interface elements across different screen sizes.
Incorrect! Try again.
17What is a common responsibility of the application delegate?
Application delegate
Easy
A.Drawing every interface element
B.Responding to application-level events
C.Storing every user preference
D.Writing all ViewModel properties
Correct Answer: Responding to application-level events
Explanation:
The application delegate responds to application-level events such as launch and lifecycle changes.
Incorrect! Try again.
18Which navigator is used to browse project files in Xcode?
Working with navigator pane
Easy
A.Report navigator
B.Issue navigator
C.Project navigator
D.Test navigator
Correct Answer: Project navigator
Explanation:
The Project navigator displays the files, folders, and groups belonging to the project.
Incorrect! Try again.
19What does the Utility pane commonly contain?
Utility pane
Easy
A.Only compiler error messages
B.Only the application's source files
C.Simulator hardware controls
D.Inspectors and interface libraries
Correct Answer: Inspectors and interface libraries
Explanation:
The Utility pane provides inspectors and libraries used to configure files and interface elements.
Incorrect! Try again.
20In which application state is an iOS app visible and receiving user input?
Activity life cycle
Easy
A.Active
B.Background
C.Inactive
D.Suspended
Correct Answer: Active
Explanation:
In the active state, the application is in the foreground and can receive user input.
Incorrect! Try again.
21A view controller currently downloads user data, formats it, and updates labels. Under MVVM, where should the formatting logic primarily be moved?
Introduction to MVVM architecture
Medium
A.The AppDelegate
B.The Model
C.The ViewModel
D.The storyboard scene that contains the labels and layout constraints
Correct Answer: The ViewModel
Explanation:
The ViewModel prepares model data for presentation, allowing the view controller to focus on displaying data and handling UI events.
Incorrect! Try again.
22A ViewModel exposes an isLoginEnabled property based on whether two text fields contain valid values. What is the main architectural benefit?
Introduction to MVVM architecture
Medium
A.Validation can be tested without creating the view
B.The application delegate owns all login state and updates every controller
C.The Model can directly modify the button
D.The storyboard automatically validates both fields
Correct Answer: Validation can be tested without creating the view
Explanation:
Moving presentation-related validation into the ViewModel makes it testable independently of UIKit views.
Incorrect! Try again.
23An iOS project compiles successfully but crashes while running. Which Xcode feature is most appropriate for pausing execution at the suspected line and inspecting variables?
Introduction to Xcode
Medium
A.A project navigator group containing the affected source files
B.A constraint in Interface Builder
C.A breakpoint in the source editor
D.A scheme archive action
Correct Answer: A breakpoint in the source editor
Explanation:
A breakpoint pauses the running application at a selected line so variable values and execution state can be inspected.
Incorrect! Try again.
24While debugging a layout issue, a developer wants more horizontal space for the source editor without closing the project. Which workspace adjustment is most suitable?
Workspace window
Medium
A.Delete unused project file groups
B.Hide the navigator and inspector areas
C.Change the active build configuration
D.Open the storyboard through the application delegate and rebuild the scheme
Correct Answer: Hide the navigator and inspector areas
Explanation:
The workspace can hide surrounding panes temporarily, giving the editor more space without changing project contents.
Incorrect! Try again.
25A label is correctly positioned on one iPhone size but shifts incorrectly on another. What should the developer modify in Interface Builder?
Interface Builder
Medium
A.The ViewModel access level
B.The application bundle identifier
C.The complete simulator runtime configuration for every supported device
D.The Auto Layout constraints
Correct Answer: The Auto Layout constraints
Explanation:
Auto Layout constraints describe how a view should be positioned and sized across different screen dimensions.
Incorrect! Try again.
26A developer needs to change a button's displayed title and text color without writing code. Which Xcode area should be used?
Attribute inspector
Medium
A.The Attribute inspector
B.The Debug navigator
C.The File inspector, after changing the target membership and localization settings
D.The Report navigator
Correct Answer: The Attribute inspector
Explanation:
The Attribute inspector exposes configurable properties such as a control's title, color, font, and state-specific appearance.
Incorrect! Try again.
27A newly created application must be checked on two simulated iPhone screen sizes. What is the most efficient approach?
Simulator and creating project
Medium
A.Duplicate every view controller and configure one copy for each simulated screen size
B.Create a separate Xcode project for each device
C.Change the bundle identifier before each run
D.Run the same scheme on two simulator devices
Correct Answer: Run the same scheme on two simulator devices
Explanation:
A single project and scheme can be run on different simulator device configurations to test multiple screen sizes.
Incorrect! Try again.
28An application needs camera behavior that the selected Simulator runtime cannot reproduce accurately. What should the developer do?
Simulator and creating project
Medium
A.Move camera code into the application delegate
B.Test that behavior on a physical device
C.Create another simulator-only target with a different bundle identifier and signing certificate
D.Add a camera constraint in the storyboard
Correct Answer: Test that behavior on a physical device
Explanation:
Some hardware-dependent behavior is limited or unavailable in Simulator and must be verified on a physical device.
Incorrect! Try again.
29A view controller must configure a label after all storyboard outlets have been connected. Which method is the appropriate place for this initial setup?
Looking at view controller
Medium
A.loadView()
B.viewDidLoad()
C.application(_:didFinishLaunchingWithOptions:) in the application delegate
D.viewWillDisappear(_:)
Correct Answer: viewDidLoad()
Explanation:
viewDidLoad() is called after the controller's view hierarchy has loaded and its storyboard outlets are available.
Incorrect! Try again.
30A screen refreshes account data every time it becomes visible after another screen is dismissed. Which view controller method best fits this requirement?
Looking at view controller
Medium
A.viewWillAppear(_:)
B.didReceiveMemoryWarning(), because it is called before a previously hidden screen is displayed again
C.viewDidLoad()
D.viewWillDisappear(_:)
Correct Answer: viewWillAppear(_:)
Explanation:
viewWillAppear(_:) runs before each appearance, unlike viewDidLoad(), which normally runs only when the view is loaded.
Incorrect! Try again.
31An IBOutlet is declared as weak, but the connected label remains visible and usable after loading. What retains the label?
Understanding outlets
Medium
A.The application delegate through the active storyboard and navigation stack
B.The outlet declaration
C.Its superview
D.The ViewModel
Correct Answer: Its superview
Explanation:
A view hierarchy strongly retains its child views, so the controller's outlet can usually reference the label weakly.
Incorrect! Try again.
32A storyboard label was connected to titleLabel, but the property was later deleted from the view controller. What is the likely runtime result if the stale connection remains?
Understanding outlets
Medium
A.The storyboard reconnects the label to the nearest property with a compatible UIKit type
B.A silent replacement outlet is generated
C.A compile-time Auto Layout warning
D.A key-value coding connection exception
Correct Answer: A key-value coding connection exception
Explanation:
A stale storyboard outlet references a property that no longer exists, commonly causing a key-value coding exception when the scene loads.
Incorrect! Try again.
33Several buttons should call the same IBAction, while the method must identify which button triggered it. Which method signature is most useful?
Actions
Medium
A.@IBOutlet weak var choose: UIButton!, followed by a separate action stored in the application delegate
Receiving the triggering UIButton lets one action inspect properties such as its tag, title, or identity.
Incorrect! Try again.
34A button's action is connected to the Touch Down event instead of Touch Up Inside. What behavioral difference should be expected?
Actions
Medium
A.The action waits until the application enters the background and the current scene resigns active
B.The action fires when the finger first presses
C.The action fires only after the finger leaves
D.The action fires when the view controller loads
Correct Answer: The action fires when the finger first presses
Explanation:
Touch Down occurs when contact begins, whereas Touch Up Inside occurs when the touch ends within the control.
Incorrect! Try again.
35Three buttons should remain equal in width and evenly spaced as the device rotates. Which Interface Builder approach is most appropriate?
Designing UI
Medium
A.Assign each button a fixed screen coordinate
B.Update their frames only in viewDidLoad()
C.Create three separate view controllers and embed one button in each controller's root view
D.Place them in a horizontal stack view
Correct Answer: Place them in a horizontal stack view
Explanation:
A horizontal stack view can manage equal distribution and spacing while adapting automatically to size changes.
Incorrect! Try again.
36Which task is most appropriately performed in application(_:didFinishLaunchingWithOptions:)?
Application delegate
Medium
A.Update a label whenever its screen appears
B.Initialize an application-wide service
C.Handle every button tap in the application
D.Apply individual Auto Layout constraints to each storyboard scene after every device rotation
Correct Answer: Initialize an application-wide service
Explanation:
The launch callback is suitable for application-level setup, such as configuring shared services and frameworks.
Incorrect! Try again.
37A build fails because a symbol is undefined, and the developer wants to jump directly through the listed compiler errors. Which navigator should be opened?
Working with navigator pane
Medium
A.The Symbol navigator
B.The Breakpoint navigator
C.The Issue navigator
D.The Project navigator with every group expanded and all generated build products displayed
Correct Answer: The Issue navigator
Explanation:
The Issue navigator organizes build errors and warnings and provides links to their relevant source locations.
Incorrect! Try again.
38A source file compiles in the project but is missing from one application target. Which inspector setting should be checked in the utility pane?
Utility pane
Medium
A.Target Membership
B.Module Stability
C.Content Mode
D.The complete list of simulator devices installed for all Xcode toolchains
Correct Answer: Target Membership
Explanation:
Target Membership determines whether a file is included in a target and therefore considered during that target's build.
Incorrect! Try again.
39An application pauses an active timer when it is interrupted by an incoming call. In a traditional app-delegate lifecycle, which callback is most appropriate?
Activity life cycle
Medium
A.application(_:didFinishLaunchingWithOptions:), because interruptions restart the application lifecycle
B.applicationDidBecomeActive(_:)
C.applicationWillResignActive(_:)
D.applicationWillEnterForeground(_:)
Correct Answer: applicationWillResignActive(_:)
Explanation:
The application resigns the active state during interruptions, making this callback appropriate for pausing ongoing work.
Incorrect! Try again.
40A scene-based application should refresh sensitive information whenever its scene returns from the background and becomes interactive. Which callback best matches that moment?
Activity life cycle
Medium
A.applicationWillTerminate(_:), followed by reloading the storyboard and reconstructing every visible controller
B.sceneDidEnterBackground(_:)
C.sceneDidBecomeActive(_:)
D.sceneWillResignActive(_:)
Correct Answer: sceneDidBecomeActive(_:)
Explanation:
sceneDidBecomeActive(_:) is called when the scene becomes active and ready for user interaction again.
Incorrect! Try again.
41A view controller owns a view model, and the view model exposes a closure that the controller assigns to update its UI. Instruments shows that the controller is never deallocated after dismissal. Which change best preserves MVVM communication while fixing the likely leak?
Introduction to MVVM architecture
Hard
A.Move the closure into the model and retain the controller through a protocol property
B.Declare every view-model property weak and recreate the model after each update
C.Capture the controller weakly in the closure and unwrap it before updating the UI
D.Make the controller a singleton so the retained instance is reused across presentations
Correct Answer: Capture the controller weakly in the closure and unwrap it before updating the UI
Explanation:
The controller retains the view model, and the view model retains the closure. A strong capture of the controller completes a retain cycle; using [weak self] breaks it.
Incorrect! Try again.
42A view model fetches data on a background queue and publishes a formatted string that is immediately assigned to a label by the view controller. Which design most correctly handles thread safety and MVVM separation?
Introduction to MVVM architecture
Hard
A.Store the label in the view model and dispatch its property changes to the main thread
B.Format in the view controller and update the label directly from the background queue
C.Return the network response unchanged and let the label parse it on the main thread
D.Format in the view model and deliver the observable UI state on the main thread
Correct Answer: Format in the view model and deliver the observable UI state on the main thread
Explanation:
Presentation formatting belongs in the view model, but UIKit updates must occur on the main thread. The view model should not retain or manipulate UIKit views.
Incorrect! Try again.
43An Xcode workspace contains an application project and a separate dynamic framework project. Both build independently, but the application reports that the framework module cannot be loaded at runtime. Which configuration is most appropriate?
Introduction to Xcode
Hard
A.Add the framework product to the app's frameworks section using Embed & Sign
B.Add the framework's source directory only to the app's header search paths
C.Copy the framework project file into the application's compiled resources phase
D.Select the framework scheme whenever the application is launched from Xcode
Correct Answer: Add the framework product to the app's frameworks section using Embed & Sign
Explanation:
A dynamic framework must be linked and embedded in the application bundle. Merely sharing a workspace or exposing source paths does not make it available at runtime.
Incorrect! Try again.
44Which mapping of Xcode workspace-window components to responsibilities is correct?
The scheme selector controls the active scheme and destination, the jump bar navigates project and symbol hierarchy, and the debug area displays runtime variables and console output.
Incorrect! Try again.
45A view with width points contains a subview with required leading and trailing constraints of points and a required width constraint of points. The design must preserve both margins on different screen widths. Which Interface Builder change is most appropriate?
Interface Builder
Hard
A.Add a required center constraint while retaining all three existing required constraints
B.Raise content-hugging priority so the intrinsic size overrides both required margins
C.Lower the width constraint priority below required so the margins determine the width
D.Lower the leading constraint priority so the fixed width determines the horizontal position
Correct Answer: Lower the width constraint priority below required so the margins determine the width
Explanation:
The required margins imply a width of points, conflicting with the required -point width. Lowering the width priority preserves the adaptive margins.
Incorrect! Try again.
46A developer must set a button's title for its Disabled state, assign an accessibility identifier, and change the storyboard file's target membership. Which inspector sequence should be used?
State-specific button properties are configured in Attributes, identity and accessibility metadata in Identity, and target membership in the File inspector.
Incorrect! Try again.
47An image named ProfileIcon.png loads in the Simulator, but returns nil on a physical device when requested as profileicon.png. Assuming the asset is copied correctly, what is the most likely cause?
Simulator and creating project
Hard
A.The simulator's host file system tolerates a filename case mismatch that the device does not
B.The device automatically converts PNG filenames into lowercase names during installation
C.The simulator loads missing images from Xcode's global derived-data image cache
D.The physical device requires all PNG resources to be registered as launch-screen assets
Correct Answer: The simulator's host file system tolerates a filename case mismatch that the device does not
Explanation:
Simulator behavior can inherit case-insensitive host-file-system behavior, while the device file system treats differently cased resource names as distinct.
Incorrect! Try again.
48In a scene-based iOS project, a developer removes the main storyboard reference from the target settings and creates the window programmatically, but launch still fails while trying to load that storyboard. What was most likely overlooked?
Simulator and creating project
Hard
A.The storyboard name remains in the scene configuration within the application manifest
B.The simulator cached the storyboard because derived data contains compiled Swift modules
C.The storyboard is still selected as the active file in the project navigator
D.The root view controller must be created exclusively in the application delegate initializer
Correct Answer: The storyboard name remains in the scene configuration within the application manifest
Explanation:
A scene configuration can contain its own storyboard name. That reference must be removed when the scene delegate constructs the window and root controller programmatically.
Incorrect! Try again.
49A parent view controller programmatically embeds a child controller. Which sequence correctly establishes containment before the child begins normal appearance handling?
Looking at view controller
Hard
A.Add and constrain its view, call viewDidAppear, then call addChild
B.Call addChild, add and constrain its view, then call didMove(toParent:)
C.Call didMove(toParent:), add its view, then call addChild
D.Present the child modally, add its view, then dismiss the presentation
Correct Answer: Call addChild, add and constrain its view, then call didMove(toParent:)
Explanation:
Custom containment begins with addChild, followed by adding the child's view and constraints, and ends with didMove(toParent:).
Incorrect! Try again.
50A XIB contains a helper object as a top-level object. It is connected to a weak outlet but is not inserted into any retained view hierarchy. The outlet becomes nil after loading. What is the best correction?
Understanding outlets
Hard
A.Make the outlet strong so the owner retains the top-level helper object
B.Declare the outlet computed so the XIB reconstructs the object on every access
C.Convert the outlet into an action so Interface Builder retains its target
D.Keep the outlet weak and add the helper object to the controller's view hierarchy
Correct Answer: Make the outlet strong so the owner retains the top-level helper object
Explanation:
A weak outlet is safe for subviews retained by a view hierarchy. An otherwise unowned top-level XIB object needs a strong reference to remain alive.
Incorrect! Try again.
51A view model receives data before its view controller's view has loaded. A property observer immediately assigns the data to an implicitly unwrapped label outlet, causing a crash. Which solution best handles this edge case?
Understanding outlets
Hard
A.Force access to every outlet in the controller initializer before assigning the view model
B.Move the label into the view model so it exists before storyboard unarchiving begins
C.Convert the label outlet to a class property shared by every controller instance
D.Store the state and render it in viewDidLoad, updating immediately only when isViewLoaded is true
Correct Answer: Store the state and render it in viewDidLoad, updating immediately only when isViewLoaded is true
Explanation:
Storyboard outlets are unavailable before the view is loaded. Retaining state and rendering after viewDidLoad avoids premature outlet access.
Incorrect! Try again.
52Four buttons are connected to one IBAction, and their visible titles are localized. The controller must reliably determine which command was requested. Which approach is most robust?
Actions
Hard
A.Inspect the current touch coordinates and infer which localized command was tapped
B.Compare the sender with known outlets or map each control to a command identifier
C.Compare the sender's displayed title with hard-coded English command strings
D.Use the sender's position because Auto Layout preserves a fixed visual order
Correct Answer: Compare the sender with known outlets or map each control to a command identifier
Explanation:
Control identity or an explicit command mapping is independent of localization and layout. Visible titles and positions are presentation details and may change.
Incorrect! Try again.
53A reusable table-view cell calls addTarget(_:action:for:) on its button every time configure runs. After several reuse cycles, one tap invokes the same action multiple times. What is the safest design correction?
Actions
Hard
A.Disable user interaction during reuse and re-enable it after each configuration call
B.Create a new button in every configuration call and leave the old button attached
C.Register the invariant target-action once during cell initialization rather than during configuration
D.Remove every target in prepareForReuse, including targets installed by other components
Correct Answer: Register the invariant target-action once during cell initialization rather than during configuration
Explanation:
Repeated target registration can create duplicate action deliveries. An invariant action should be wired once, while configuration should update only changing state.
Incorrect! Try again.
54A multiline label supports Dynamic Type but clips text at accessibility sizes. It has required top and bottom constraints, numberOfLines = 0, and a required fixed-height constraint. Which redesign best preserves accessibility?
Designing UI
Hard
A.Change the label to one line and enable truncation at the tail for all size categories
B.Remove the fixed height and let intrinsic content size determine the label's vertical size
C.Keep the fixed height and reduce the font whenever the preferred size category increases
D.Remove the bottom constraint and position the label using an absolute frame origin
Correct Answer: Remove the fixed height and let intrinsic content size determine the label's vertical size
Explanation:
A required fixed height prevents a multiline Dynamic Type label from expanding. Vertical constraints plus intrinsic content size allow accessible text sizes to reflow.
Incorrect! Try again.
55An interface must switch from a vertical control arrangement in compact width to a horizontal arrangement in regular width, including Split View resizing on iPad. Which design is most reliable?
Designing UI
Hard
A.Use trait-aware constraints or stack-view axis changes based on the current size class
B.Select the arrangement once by comparing the device model with a stored phone list
C.Create separate controllers and choose one exclusively from the operating-system version
D.Select the arrangement only from the launch screen's initial pixel dimensions
Correct Answer: Use trait-aware constraints or stack-view axis changes based on the current size class
Explanation:
Size classes and trait changes reflect the current available space, including multitasking. Device-model and launch-size checks do not respond reliably to resizing.
Incorrect! Try again.
56A background URLSession finishes transfers while the application is suspended. iOS relaunches the app and provides a completion handler to the application delegate. When should that handler be called?
Application delegate
Hard
A.Only when the application next becomes active and displays its root controller
B.After the session delegate reports that all background events have finished processing
C.Immediately inside didFinishLaunchingWithOptions before restoring session delegates
D.When the first download task reports progress greater than zero after relaunch
Correct Answer: After the session delegate reports that all background events have finished processing
Explanation:
The delegate should store the system completion handler and invoke it after urlSessionDidFinishEvents(forBackgroundURLSession:) indicates that pending events are handled.
Incorrect! Try again.
57A test passed locally yesterday but failed in an earlier CI-style Xcode run. The developer needs the complete logs and results from that historical test invocation. Which navigator is most appropriate?
Working with navigator pane
Hard
A.Report navigator
B.Symbol navigator
C.Breakpoint navigator
D.Issue navigator
Correct Answer: Report navigator
Explanation:
The Report navigator preserves build, run, and test activity records, including logs and test results from previous invocations.
Incorrect! Try again.
58A developer selects a storyboard constraint and wants to edit its constant and priority, then selects a Swift file and wants to change its target membership. Which utility-pane inspectors are required in order?
Utility pane
Hard
A.File inspector, then Attributes inspector
B.Size inspector, then File inspector
C.Connections inspector, then Quick Help inspector
D.Attributes inspector, then Identity inspector
Correct Answer: Size inspector, then File inspector
Explanation:
Constraint geometry, including constant and priority, is edited in the Size inspector. A source file's target membership is managed in the File inspector.
Incorrect! Try again.
59A scene-based application is active when the user presses the Home button. Ignoring unusual interruptions, which scene-level callback order should the application expect?
Activity life cycle
Hard
A.sceneDidEnterBackground(_:) followed by sceneWillResignActive(_:)
B.sceneWillEnterForeground(_:) followed by sceneWillResignActive(_:)
C.sceneWillResignActive(_:) followed by sceneDidEnterBackground(_:)
D.sceneDidDisconnect(_:) followed by sceneDidBecomeActive(_:)
Correct Answer: sceneWillResignActive(_:) followed by sceneDidEnterBackground(_:)
Explanation:
The scene first transitions from active to inactive, triggering sceneWillResignActive, and then enters the background.
Incorrect! Try again.
60An application saves critical user edits only in applicationWillTerminate(_:). Some edits are lost after the system removes the suspended app from memory. Which strategy is correct?
Activity life cycle
Hard
A.Persist important state as it changes and finalize it when the scene enters the background
B.Save only in sceneDidBecomeActive(_:) because background transitions cannot perform file writes
C.Store edits solely in view-controller properties because suspended memory is permanently preserved
D.Keep using termination because iOS always invokes it before reclaiming suspended applications
Correct Answer: Persist important state as it changes and finalize it when the scene enters the background
Explanation:
Termination callbacks are not guaranteed when a suspended process is reclaimed. Critical state should be saved incrementally and during background transitions.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →