Pertanyaan dan Jawaban Wawancara Paling Populer & Tes Online
Platform edukasi untuk persiapan wawancara, tes online, tutorial, dan latihan langsung

Bangun keterampilan dengan jalur belajar terfokus, tes simulasi, dan konten siap wawancara.

WithoutBook menghadirkan pertanyaan wawancara per subjek, tes latihan online, tutorial, dan panduan perbandingan dalam satu ruang belajar yang responsif.

Prepare Interview

Ujian Simulasi

Jadikan Beranda

Bookmark halaman ini

Langganan Alamat Email
WithoutBook LIVE Mock Interviews Swift Related interview subjects: 9

Interview Questions and Answers

Know the top Swift interview questions and answers for freshers and experienced candidates to prepare for job interviews.

Total 49 questions Interview Questions and Answers

The Best LIVE Mock Interview - You should go through before interview

Know the top Swift interview questions and answers for freshers and experienced candidates to prepare for job interviews.

Interview Questions and Answers

Search a question to view the answer.

Freshers / Beginner level questions & answers

Ques 6

What is the purpose of the 'static' keyword in Swift?

The 'static' keyword in Swift is used to define type-level properties and methods that are associated with the type itself, rather than an instance of the type.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 9

What is the purpose of the 'self' keyword in Swift?

'self' is used to refer to the instance of the current type, and it's often required to distinguish between instance variables and parameters with the same name.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 11

Explain the difference between 'frame' and 'bounds' in UIKit.

'frame' represents a view's location and size in its superview's coordinate system, while 'bounds' represents a view's location and size in its own coordinate system.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 13

Explain the role of the 'UIApplicationDelegate' in a Swift app.

The 'UIApplicationDelegate' is a protocol in Swift that defines methods for handling app lifecycle events, such as app launch, termination, and background execution.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 14

What is a typealias in Swift, and when would you use it?

A typealias is used to create a named alias for an existing type. It is useful for making code more readable and for simplifying complex type declarations.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments

Intermediate / 1 to 5 years experienced level questions & answers

Ques 15

Explain the difference between a value type and a reference type in Swift.

A value type is copied when it's assigned to a new variable or passed as an argument, while a reference type refers to the same instance of the data.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 21

Explain the difference between synchronous and asynchronous tasks in Swift.

Synchronous tasks block the current thread until they are completed, while asynchronous tasks allow the program to continue executing other tasks without waiting.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 22

What is the role of the 'unowned' keyword in Swift?

The 'unowned' keyword is used in Swift to declare a reference that does not keep a strong hold on the instance it refers to, and it is assumed to always have a value.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 25

Explain the difference between a struct and a class in Swift.

Structs are value types, while classes are reference types. Structs are copied when assigned or passed, whereas classes share a reference to the same instance.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 27

How do you create a custom delegate in Swift?

To create a custom delegate in Swift, define a protocol, adopt it in the delegating class, and use optional delegate methods to notify the delegate of events.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 28

Explain the concept of value semantics in Swift.

Value semantics mean that the value of a type is copied when assigned to a new variable or passed as an argument, ensuring that each instance is independent.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 30

Explain the difference between '==', '===', and 'isEqual' in Swift.

'==' is used to check for value equality, '===' is used to check for reference equality, and 'isEqual' is typically used for comparing objects in Objective-C and is bridged to '==' in Swift.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 31

Explain the 'escaping' closure and why it's necessary in Swift.

An 'escaping' closure is a closure that is called after the function it was passed to has returned. It's necessary when the closure is stored or outlives the scope of the function.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 32

Explain the difference between 'defer' and 'finally' in Swift.

'defer' is used to execute a block of code just before the scope is exited, while 'finally' is not used in Swift. Instead, error handling with 'defer' and 'catch' is more idiomatic.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 33

Explain the purpose of 'inout' parameters in Swift functions.

'inout' parameters allow a function to modify the value of the parameter directly, and any changes made inside the function affect the original value outside the function.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 34

What is a closure capture list, and when would you use it?

A closure capture list specifies how variables and constants are captured and held by a closure. It's useful to prevent strong reference cycles, especially when capturing 'self' in closures.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 35

What is the purpose of the 'autoreleasepool' in Swift?

The 'autoreleasepool' is used to manage the lifecycle of objects in memory, especially in performance-critical code or when working with Objective-C APIs.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 38

What are Swift access control levels, and how are they used?

Swift has five access control levels: 'open', 'public', 'internal', 'fileprivate', and 'private'. They control the visibility of classes, methods, and properties.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments

Experienced / Expert level questions & answers

Ques 41

Explain the concept of protocol-oriented programming in Swift.

Protocol-oriented programming is a programming paradigm in Swift that emphasizes the use of protocols to define the structure and behavior of types.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 42

What is the purpose of the '@escaping' keyword in Swift?

The '@escaping' keyword is used in Swift to indicate that a closure passed as a parameter to a function may be stored beyond the lifetime of that function.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 44

What are the key differences between Swift and Objective-C?

Swift is a modern, safer, and more concise language compared to Objective-C. It introduces optionals, type inference, generics, and is memory-safe with Automatic Reference Counting (ARC).
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 46

Explain the concept of generics in Swift with associated types.

Generics with associated types allow you to define protocols with placeholders for associated types, enabling you to use generic types conforming to the protocol.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 48

Explain the concept of method swizzling in Swift.

Method swizzling is a technique used to exchange the implementation of methods at runtime. It's often used for extending or modifying the behavior of existing classes.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments
Ques 49

How does Swift handle memory leaks, and what are some common causes?

Swift uses Automatic Reference Counting (ARC) to manage memory, but memory leaks can still occur if strong reference cycles are created. Common causes include strong reference cycles between objects.
Simpan untuk Revisi

Simpan untuk Revisi

Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.

Buka Perpustakaan Belajar Saya
Apakah ini membantu?
Add Comment View Comments

Most helpful rated by users:

Hak Cipta © 2026, WithoutBook.