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

Rank Change Language Share Trend
1 up arrow Python 22.8 % +5.5 %
2 down arrow Java 22.5 % -0.7 %
3 up arrow Javascript 8.57 % +0.2 %
4 down arrow PHP 8.33 % -1.6 %
5 down arrow C# 7.87 % -0.7 %
6 C/C++ 6.26 % -1.2 %
7 up arrow R 4.22 % +0.2 %
8 down arrow Objective-C 3.56 -1.0 %
9 Swift 2.8 % -0.7%
10 Matlab 2.33 % -0.4 %
11 Ruby 1.69 % -0.4 %
12 up arrow TypeScript 1.56 % +0.4 %
13 VBA 1.37% -0.0 %
14 Scala 1.16 % -0.1 %
15 down arrow Visual Basic 1.14 % -0.3 %
16 up arrow Kotlin 0.94 % +0.8 %
17 Go 0.86 % +0.3 %
18 down arrow Perl 0.76 % -0.1 %
19 down arrow lua 0.39 % -0.1 %
20 up arrow Rust 0.34 % +0.0 %
21 down arrow Delphi 0.28 % -0.1 %
22 down arrow Haskell 0.28% -0.1 %

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

TIOBE Index for May 2018

May 2018 May 2017 Change Programming Language Ratings Change
1 1 Java 16.380% +1.74%
2 2 C 14.000% +7.00%
3 3 C++ 7.668% +2.92%
4 4 Python 5.192% +1.64%
5 5 C# 4.402% +0.95%
6 6 Visual Basic .NET 4.124% +0.73%
7 9 up arrow PHP 3.321% +0.63%
8 7 down arrow JavaScript 2.923% -0.15%
9 - up arrow SQL 1.987% +1.99%
10 11 up arrow Ruby 1.182% -1.25%
11 14 up arrow R 1.180% -1.01%
12 18 up arrow Delphi/Object Pascal 1.012% -1.03%
13 8 down arrow Assembly language 0.998% -1.86%
14 16 up arrow Go 0.970% -1.11%
15 15 Objective-C 0.939% -1.16%
16 17 up arrow MATLAB 0.929% -1.13%
17 12 down arrow Visual Basic 0.915% -1.43%
18 10 down arrow Perl 0.909% -1.69%
19 13 down arrow Swift 0.907% -1.37%
20 31 up arrow Scala 0.900% +0.18%

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

List of Exercises with Solutions :