0
0
iOS Swiftmobile~20 mins

Project structure in iOS Swift - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Project Structure Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding the role of Info.plist in an iOS project
What is the primary purpose of the Info.plist file in an iOS Swift project?
AIt contains the Swift source code for the app's main view controller.
BIt stores configuration data like app permissions and display name used by the system.
CIt manages the app's user interface layout and constraints.
DIt holds the compiled binary executable of the app.
Attempts:
2 left
💡 Hint
Think about what the system needs to know about your app before running it.
ui_behavior
intermediate
2:00remaining
Locating the main storyboard in an iOS project
In a typical iOS Swift project using storyboards, where is the main storyboard file referenced so the app knows which UI to load first?
AIn the Info.plist file under the key "UIMainStoryboardFile".
BInside the AppDelegate.swift file as a string constant.
CIn the Assets.xcassets folder as an image set.
DIn the LaunchScreen.storyboard file.
Attempts:
2 left
💡 Hint
This setting tells the system which storyboard to load at app launch.
lifecycle
advanced
2:30remaining
Order of files executed at app launch
Which sequence correctly describes the order of execution when an iOS Swift app launches?
A2, 1, 3, 4
B3, 1, 2, 4
C1, 2, 3, 4
D1, 3, 2, 4
Attempts:
2 left
💡 Hint
Think about what happens first: system call, app delegate, UI loading, then showing window.
navigation
advanced
2:00remaining
Where to add new Swift files for view controllers
In a well-organized iOS Swift project, where should you place new Swift files that define view controllers?
AIn the Info.plist file as embedded code.
BInside the LaunchScreen.storyboard file.
CDirectly inside the Assets.xcassets folder.
DInside a dedicated folder named "ViewControllers" or similar within the project directory.
Attempts:
2 left
💡 Hint
Think about keeping code files organized by their role.
🔧 Debug
expert
3:00remaining
Why does the app crash on launch after renaming the main storyboard file?
You renamed your main storyboard file from "Main.storyboard" to "Start.storyboard" but did not update any other files. What is the most likely cause of the app crashing on launch?
AThe Info.plist still references "Main" as the main storyboard file, causing a missing file error.
BThe AppDelegate.swift file must be renamed to match the storyboard name.
CThe Assets.xcassets folder needs to be updated with the new storyboard name.
DThe LaunchScreen.storyboard must be deleted to avoid conflicts.
Attempts:
2 left
💡 Hint
Check where the system looks for the initial UI file.