15 SwiftUI vs UIKit questions from the Swift bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.describing what the interface should look like for a given state rather than imperatively mutating views
B.a wrapper for a view's private mutable source of truth that triggers a redraw when changed
C.a lightweight value type whose body describes a piece of the interface and is recreated on updates
D.the older imperative framework that builds interfaces from mutable view-controller objects and view hierarchies
Answer + AI explanation with Pro
2. Which term means: "describing what the interface should look like for a given state rather than imperatively mutating views"?
Junior
A.UIKit
B.Declarative UI
C.View struct
D.@State
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Declarative UI — a wrapper for a view's private mutable source of truth that triggers a redraw when changed
B.Declarative UI — a wrapper giving a child view read-write access to a value owned by its parent
C.Declarative UI — describing what the interface should look like for a given state rather than imperatively mutating views
D.Declarative UI — a lightweight value type whose body describes a piece of the interface and is recreated on updates
Answer + AI explanation with Pro
4. What is @State?
Mid
A.a wrapper for a view's private mutable source of truth that triggers a redraw when changed
B.a wrapper giving a child view read-write access to a value owned by its parent
C.describing what the interface should look like for a given state rather than imperatively mutating views
D.the older imperative framework that builds interfaces from mutable view-controller objects and view hierarchies
Answer + AI explanation with Pro
5. Which term means: "a wrapper for a view's private mutable source of truth that triggers a redraw when changed"?
Mid
A.UIKit
B.@Binding
C.View struct
D.@State
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.@State — a wrapper for a view's private mutable source of truth that triggers a redraw when changed
B.@State — describing what the interface should look like for a given state rather than imperatively mutating views
C.@State — the older imperative framework that builds interfaces from mutable view-controller objects and view hierarchies
D.@State — a wrapper giving a child view read-write access to a value owned by its parent
Answer + AI explanation with Pro
7. What is @Binding?
Mid
A.a wrapper giving a child view read-write access to a value owned by its parent
B.a wrapper for a view's private mutable source of truth that triggers a redraw when changed
C.describing what the interface should look like for a given state rather than imperatively mutating views
D.the older imperative framework that builds interfaces from mutable view-controller objects and view hierarchies
Answer + AI explanation with Pro
8. Which term means: "a wrapper giving a child view read-write access to a value owned by its parent"?
Mid
A.@Binding
B.Declarative UI
C.@State
D.UIKit
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.@Binding — the older imperative framework that builds interfaces from mutable view-controller objects and view hierarchies
B.@Binding — a wrapper giving a child view read-write access to a value owned by its parent
C.@Binding — describing what the interface should look like for a given state rather than imperatively mutating views
D.@Binding — a lightweight value type whose body describes a piece of the interface and is recreated on updates
Answer + AI explanation with Pro
10. What is View struct?
Junior
A.a wrapper giving a child view read-write access to a value owned by its parent
B.a wrapper for a view's private mutable source of truth that triggers a redraw when changed
C.a lightweight value type whose body describes a piece of the interface and is recreated on updates
D.describing what the interface should look like for a given state rather than imperatively mutating views
Answer + AI explanation with Pro
11. Which term means: "a lightweight value type whose body describes a piece of the interface and is recreated on updates"?
Junior
A.Declarative UI
B.View struct
C.@State
D.@Binding
Answer + AI explanation with Pro
12. Which statement is correct?
Junior
A.View struct — describing what the interface should look like for a given state rather than imperatively mutating views
B.View struct — a lightweight value type whose body describes a piece of the interface and is recreated on updates
C.View struct — a wrapper for a view's private mutable source of truth that triggers a redraw when changed
D.View struct — a wrapper giving a child view read-write access to a value owned by its parent
Answer + AI explanation with Pro
13. What is UIKit?
Junior
A.the older imperative framework that builds interfaces from mutable view-controller objects and view hierarchies
B.describing what the interface should look like for a given state rather than imperatively mutating views
C.a lightweight value type whose body describes a piece of the interface and is recreated on updates
D.a wrapper giving a child view read-write access to a value owned by its parent
Answer + AI explanation with Pro
14. Which term means: "the older imperative framework that builds interfaces from mutable view-controller objects and view hierarchies"?
Junior
A.@State
B.View struct
C.Declarative UI
D.UIKit
Answer + AI explanation with Pro
15. Which statement is correct?
Junior
A.UIKit — a wrapper giving a child view read-write access to a value owned by its parent
B.UIKit — a wrapper for a view's private mutable source of truth that triggers a redraw when changed
C.UIKit — a lightweight value type whose body describes a piece of the interface and is recreated on updates
D.UIKit — the older imperative framework that builds interfaces from mutable view-controller objects and view hierarchies
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every SwiftUI vs UIKit question come with Pro.