• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 3 fuera de 22 páginas
Examen

Cse 335 Final Exam Questions With Answers And Explanations

Document preview thumbnail
Vista previa 3 fuera de 22 páginas

Cse 335 Final Exam Questions With Answers And Explanations

Vista previa del contenido

CSE 335 FINAL EXAM QUESTIONS WITH
ANSWERS AND EXPLANATIONS
1. During final integration, engineers encounter this case: A feature must keep API orchestration
out of declarative
UI rendering code. Which solution best preserves correctness and maintainability?
A. The app icon asset
B. The launch screen
C. The View
D. The ViewModel
Correct Answer: D. The ViewModel
Explanation: In MVVM, the ViewModel coordinates presentation logic and exposes view-ready
state/actions while the View focuses on
rendering and interaction.
2. During final integration, engineers encounter this case: A search service exposes page tokens
for long result
sets. Which solution best preserves correctness and maintainability?
A. Store page numbers in Keychain only
B. Pagination / incremental loading
C. Create a new app target per page
D. Download an unbounded dataset in one response
Correct Answer: B. Pagination / incremental loading
Explanation: Pagination limits transfer and rendering cost for large remote collections.
3. A production-readiness review raises this issue: A search result should open a detail
destination while
preserving prior navigation history. What should the team do?
A. ZStack
B. Form
C. NavigationStack
D. GeometryReader
Correct Answer: C. NavigationStack
Explanation: NavigationStack provides stack-based value-driven navigation in modern SwiftUI.
4. A release candidate exposes this design requirement: A field app must allow edits with no
cellular connection
and sync later. Which response is most appropriate?
A. Assume the network is always available
B. Offline-first synchronization with conflict rules
C. Block the UI until the server responds
D. Discard every local edit when connectivity drops
Correct Answer: B. Offline-first synchronization with conflict rules
Explanation: Offline-capable apps need a local source, queued/synchronized changes, and explicit
conflict resolution semantics.
5. During final integration, engineers encounter this case: A view model should use a mock API
client during tests
and a real client in production. Which solution best preserves correctness and maintainability?
A. Duplicate service logic in each view
B. Dependency injection
C. Create every dependency inside every method
D. Use hidden global state for all services
Correct Answer: B. Dependency injection
Explanation: Dependency injection makes dependencies explicit and replaceable, improving
modularity and testability.

,6. While hardening the application for deployment, the team must solve this problem: A request
body should be
encoded from a Swift value into JSON. Which option is the best choice?
A. GeometryReader
B. NotificationCenter
C. NSLock
D. Codable
Correct Answer: D. Codable
Explanation: Codable supports structured encoding/decoding between Swift models and formats
such as JSON when representations
match.
7. A release candidate exposes this design requirement: A gradient and a title need to occupy the
same rectangular
area. Which response is most appropriate?
A. ZStack
B. List
C. VStack
D. HStack
Correct Answer: A. ZStack
Explanation: ZStack overlays children along the depth axis.
8. While hardening the application for deployment, the team must solve this problem: The app
must perform an
HTTPS GET request to a REST endpoint. Which option is the best choice?
A. AVAudioSession
B. CoreLocation
C. URLSession
D. UserDefaults
Correct Answer: C. URLSession
Explanation: URLSession is the standard networking API for HTTP requests and data tasks.
9. A production-readiness review raises this issue: A view model should depend on a service
abstraction that
production and test implementations can both satisfy. What should the team do?
A. A protocol
B. A storyboard segue
C. A hard-coded concrete singleton
D. A global variable
Correct Answer: A. A protocol
Explanation: Protocols describe required behavior independently of a specific concrete
implementation and improve
substitutability/testability.
10. A release candidate exposes this design requirement: An editable contact list allows
reordering and filtering.
Which response is most appropriate?
A. Use stable IDs for editable list rows
B. Regenerate every row ID on each refresh
C. Identify rows only by a nonunique title
D. Use the current array offset as permanent identity
Correct Answer: A. Use stable IDs for editable list rows
Explanation: Stable identities allow edits, deletes, and moves to target the intended model item
as collection order changes.

, 11. A production-readiness review raises this issue: A dynamic list must preserve row identity
while its backing
array is filtered. What should the team do?
A. Use the row index even when rows can move
B. Generate a new UUID during every body evaluation
C. Use a non-unique display label as the identity
D. Use a stable unique identifier for each element
Correct Answer: D. Use a stable unique identifier for each element
Explanation: Stable identity lets SwiftUI track which data element corresponds to which
rendered row as collections change.
12. A production-readiness review raises this issue: Decoded results need to be published to a
SwiftUI screen.
What should the team do?
A. Store every UI value in UserDefaults
B. Mutate UI state from an arbitrary background context
C. Update UI-observed state on the main actor
D. Disable concurrency entirely
Correct Answer: C. Update UI-observed state on the main actor
Explanation: UI-facing state should be mutated on the main actor to preserve thread-safety
expectations of the UI framework.
13. While hardening the application for deployment, the team must solve this problem: A cart
total is shown in
multiple screens and must update from one authoritative model. Which option is the best choice?
A. Recompute the value from unrelated global variables
B. Store a second editable copy in every child view
C. Copy the same mutable value into several independent @State properties
D. A single source of truth
Correct Answer: D. A single source of truth
Explanation: SwiftUI data flow is most reliable when one owner holds mutable state and
dependent views derive or bind to it.
14. A production-readiness review raises this issue: A data loader awaits remote JSON without
freezing the main
interface. What should the team do?
A. Block with a long synchronous sleep
B. Busy-wait on the main thread
C. Spin in a while loop until the response arrives
D. async/await
Correct Answer: D. async/await
Explanation: async/await expresses asynchronous work without blocking the caller thread while
waiting for completion.
15. While hardening the application for deployment, the team must solve this problem: Two
action buttons should
share the same row. Which option is the best choice?
A. Form
B. HStack
C. ZStack
D. VStack
Correct Answer: B. HStack
Explanation: HStack arranges child views horizontally.

Información del documento

Subido en
10 de octubre de 2026
Número de páginas
22
Escrito en
2026/2027
Tipo
Examen
Contiene
Preguntas y respuestas
$15.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Favorgrades
3.8
(199)
Vendido
854
Seguidores
377
Artículos
57829
Última venta
6 días hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes