iOS

Swift Language Essentials

Protocols, extensions, generics, property wrappers, type casting, advanced enums

15 câu hỏi phỏng vấn·
Junior
1

What is an Array in Swift?

Câu trả lời

Array is an ordered collection storing elements of the same type and allowing duplicates. Elements are accessible by index starting from 0. Array maintains insertion order and suits scenarios where element order matters.

2

What characterizes a Set in Swift?

Câu trả lời

Set is an unordered collection of unique elements. Each element appears only once. Set is optimal for fast membership testing and guaranteeing uniqueness. Unlike Array, insertion order is not preserved.

3

What is a Dictionary in Swift?

Câu trả lời

Dictionary is an unordered collection of key-value pairs. Each key is unique and enables quick access to its associated value. Dictionary suits storing related data identified by a key, like a phone directory where the name is the key. Key-based access is constant time O(1).

4

What is a stored property in Swift?

5

What is a computed property in Swift?

+12 câu hỏi phỏng vấn

Nắm vững iOS cho lần phỏng vấn tiếp theo

Truy cập tất cả câu hỏi, flashcards, bài kiểm tra kỹ thuật, bài tập code review và mô phỏng phỏng vấn.

Bắt đầu miễn phí