w3resource
w3resource logo
Swift Programming Exercises

Swift Programming Exercises, Practice, Solution

Swift Programming Exercises with solution

Swift is a powerful general-purpose, multi-paradigm, compiled programming language developed by Apple Inc. for iOS, macOS, watchOS, tvOS, and Linux. Writing Swift code is interactive and fun and Swift includes modern features developers love. Swift is designed to work with Apple's Cocoa and Cocoa Touch frameworks and the large body of existing Objective-C (ObjC) code written for Apple products.

The best way we learn anything is by practice and exercise questions. We have started this section for those (beginner to intermediate) who are familiar with Swift language. Exercises are designed to enhance your ability to write well-structured Swift programs. Hope, these exercises help you to improve your Swift programming skills. Currently following sections are available, we are working hard to add more exercises. Happy Coding!

List of Swift Exercises:

Popularity of Programming Language
Worldwide, Jun 2018 compared to a year ago:

Rank Change Language Share Trend
1 up arrow Python 23.04 % +5.2 %
2 down arrow Java 22.45 % -0.6 %
3 up arrow Javascript 8.6 % +0.3 %
4 down arrow PHP 8.21 % -1.6 %
5 down arrow C# 8.01 % -0.4 %
6 C/C++ 6.15 % -1.1 %
7 up arrow R 4.14 % +0.1 %
8 down arrow Objective-C 3.46 -1.0 %
9 Swift 2.75 % -0.8%
10 Matlab 2.15 % -0.4 %
11 Ruby 1.7 % -0.4 %
12 up arrow TypeScript 1.54 % +0.4 %
13 VBA 1.37% -0.0 %
14 Scala 1.23 % -0.1 %
15 down arrow Visual Basic 1.22 % -0.2 %
16 up arrow Kotlin 0.93 % +0.6 %
17 Go 0.92 % +0.3 %
18 down arrow Perl 0.76 % -0.1 %
19 down arrow lua 0.43 % -0.0 %
20 up arrow Rust 0.37 % +0.0 %
21 down arrow Haskell 0.3 % -0.1 %
22 down arrow Delphi 0.27% -0.1 %

Source : http://pypl.github.io/PYPL.html

TIOBE Index for June 2018

June 2018 June 2017 Change Programming Language Ratings Change
1 1 Java 15.368% +0.88%
2 2 C 14.936% +8.09%
3 3 C++ 8.337% +2.61%
4 4 Python 5.761% +1.43%
5 5 C# 4.314% +0.78%
6 6 Visual Basic .NET 3.762% +0.65%
7 8 up arrow PHP 2.881% +0.11%
8 7 down arrow JavaScript 2.495% -0.53%
9 - up arrow SQL 2.339% +2.34%
10 14 up arrow R 1.452% -0.70%
11 11 Ruby 1.253% -0.97%
12 18 up arrow Objective-C 1.181% -0.78%
13 16 up arrow Visual Basic 1.154% -0.86%
14 9 down arrow Perl 1.147% -1.16%
15 12 down arrow Swift 1.145% -1.06%
16 10 down arrow Assembly language 0.915% -1.34%
17 17 MATLAB 0.894% -1.10%
18 15 down arrow Go 0.879% -1.17%
19 13 down arrow Delphi/Object Pascal 0.875% -1.28%
20 20 PL/SQL 0.848% +0.72%

Source : https://www.tiobe.com/tiobe-index/

List of Exercises with Solutions :



Amazon promo codes to get huge discounts for limited period (USA only).