w3resource
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, Sep 2018 compared to a year ago:

Rank Change Language Share Trend
1 up arrow Python 24.58 % +5.7%
2 down arrow Java 22.14 % -0.6 %
3 up arrow Javascript 8.41% +0.0 %
4 down arrow PHP 7.77 % -1.4 %
5 C# 7.74 % -0.4 %
6 C/C++ 6.22 % -0.8 %
7 R 4.04 % -0.2 %
8 Objective-C 3.33% -0.9 %
9 Swift 2.65 % -0.9%
10 Matlab 2.1 % -0.3 %
11 Ruby 1.62 % -0.4 %
12 up arrow TypeScript 1.57 % +0.2 %
13 down arrow VBA 1.49% -0.0 %
14 down arrow Scala 1.23% -0.1 %
15 down arrow Visual Basic 1.11 % -0.2 %
16 up arrow Kotlin 1.02 % +0.4 %
17 Go 0.94 % +0.3 %
18 down arrow Perl 0.7 % -0.1 %
19 lua 0.38 % -0.0 %
20 up arrow Rust 0.38 % +0.0 %
21 up arrow Haskell 0.3 % -0.0 %
22 down arrow Delphi 0.25% -0.1 %

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

TIOBE Index for September 2018

Sep 2018 Sep 2017 Change Programming Language Ratings Change
1 1 Java 17.436% +4.75%
2 2 C 15.447% +8.06%
3 5 up arrow Python 7.653% +4.67%
4 3 down arrow C++ 7.394% +1.83%
5 8 up arrow Visual Basic .NET 5.308% +3.33%
6 4 down arrow C# 3.295% -1.48%
7 6 down arrow PHP 2.775% +0.57%
8 7 down arrow JavaScript 2.131% +0.11
9 - up arrow SQL 2.062% +2.06%
10 18 up arrow Objective-C 1.509% +0.00%
11 12 up arrow Delphi/Object Pascal 1.292% -0.49%
12 10 down arrow Ruby 1.291% -0.64%
13 16 up arrow MATLAB 1.276% -0.35%
14 15 up arrow Assembly language 1.232% -0.41%
15 13 down arrow Swift 1.223% -0.54%
16 17 up arrow Go 1.081% -0.49%
17 9 down arrow Perl 1.073% -0.88%
18 11 down arrow R 1.016% -0.80%
19 19 PL/SQL 0.850% -0.63%
20 14 down arrow Visual Basic 0.682% -1.07%

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

List of Exercises with Solutions :