1. C
@State holds view-local mutable state and triggers view updates when mutated.
2. B
Adult learners retain more when tasks are relevant, hands-on, and provide immediate feedback.
3. B
.accessibilityLabel(_:) supplies a machine-readable label used by VoiceOver and other assistive tech.
4. B
Stable, unique Identifiable ids ensure SwiftUI can diff and reuse rows efficiently when order changes.
5. A
debounce delays rapid inputs and emits only after the user stops typing for the specified interval, reducing network calls.
6. B
Pair-programming with targeted questions and debriefs provides real-time guidance and reflection, accelerating learning.
7. B
A ViewModel (ObservableObject) separates validation logic from view code and enables testing and reuse.
8. B
A rubric with objective criteria and blind scoring increases fairness and reliable assessment.
9. B
@EnvironmentObject is suitable for sharing app-wide models provided higher in the view hierarchy.
10. B
NavigationStack (iOS 16+) with a programmatic path is the modern SwiftUI navigation approach for hierarchical flows.
11. B
Understanding view identity, minimal state, and avoiding heavy computations in body are key performance topics.
12. C
Extracting children and using Equatable/EquatableView reduces unnecessary recomputation when unrelated parent state changes.
13. B
Secure handling (encryption, compliance with HIPAA/GDPR where relevant) and limiting telemetry are required in regulated apps.
14. B
Testing ViewModels isolates logic and makes unit tests fast and reliable.
15. B
Migration guides, examples, and hands-on workshops reduce confusion and ease adoption for teams.
16. D
Use .animation(_:) on views or wrap state changes in withAnimation { } to animate transitions and state updates.
17. B
@AppStorage provides a convenient binding to UserDefaults and integrates with SwiftUI state. Sensitive data should still be limited.
18. B
Combining automated checks with manual screen reader testing and a rubric ensures robust accessibility evaluation.
19. B
Phased migration with training and leadership support improves buy-in and reduces risk.
20. A
ObservableObject with @Published properties and using @StateObject/@ObservedObject appropriately is the recommended pattern.
21. B
Building a debounced search that wires Combine publishers into a SwiftUI list demonstrates applied Combine knowledge.
22. B
Custom controls must expose appropriate accessibility metadata and focus behavior to be usable by assistive tech.
23. B
Targeted lessons that diagnose the misunderstanding and practice solutions encourage durable learning change.
24. B
Lazy stacks, pagination, and lightweight row views minimize memory and CPU overhead for large data sets.
25. B
Pre/post tests and practical assessments plus follow-up metrics show learning gains and practical transfer.
26. B
LocalizedStringKey and Localizable.strings plus locale testing are the correct localization pipeline.
27. B
HTTPS, ATS compliance, proper certificate validation, and secure token storage (Keychain) are required for secure networking.
28. B
A combination of unit tests for logic, XCUI tests for flows, and snapshot tests provides comprehensive coverage.
29. B
Sequencing from fundamentals to advanced topics with scaffolded projects aligns with adult learning and skill building.
Prepare for the SwiftUI exam with our free practice test modules. Each quiz covers key topics to help you pass on your first try.