📜 ⬆️ ⬇️

Interview: Swift. Questions and answers

The Swift programming language is only four years old, but it is already becoming the main development language for iOS. Developing to version 5.0, Swift has become a complex and powerful language that responds to both the object-oriented and functional paradigm. And with each new release it adds even more features.

But how well do you really know Swift? In this article you will find examples of questions for an interview on Swift.

You can use these questions to interview candidates to test their knowledge or you can test your own. If you do not know the answer, do not worry: there is an answer to every question.

Questions are divided into three groups:
')

For each level there are two types of questions:


While reading the article, keep an open playground to be able to check the code from the question. All responses were tested on Xcode 10.2 and Swift 5 .

Source: https://habr.com/ru/post/449410/


All Articles