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, September 2019 compared to a year ago:

Rank Change Language Share Trend
1 Python 29.21 % +4.6 %
2 Java 19.9 % -2.2 %
3 Javascript 8.39 % +0.0 %
4 C# 7.23% -0.6 %
5 PHP 6.69 % -1.0 %
6 C/C++ 5.8 % -0.4 %
7 R 3.91 % -0.2 %
8 Objective-C 2.63% -0.7 %
9 Swift 2.46 % -0.3 %
10 Matlab 1.82 % -0.2 %
11 up arrow TypeScript 1.77 % +0.2 %
12 up arrow Kotlin 1.55% +0.6 %
13 VBA 1.44 % -0.0 %
14down arrow Ruby 1.4 % -0.2 %
15 up arrow Go 1.2 % +0.3 %
16 down arrow Scala 1.14 % -0.1 %
17 down arrow Visual Basic 1.05 % -0.1 %
18up arrow Rust 0.66 % +0.3 %
19 down arrow Perl 0.53 % -0.2 %
20 down arrow Lua 0.37 % -0.0 %
21 Haskell 0.3 % -0.0 %
22 up arrow Julia 0.29 % +0.1 %
23down arrow Delphi 0.27 % +0.0 %

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

TIOBE Index for August 2019

Sep 2019 Sep 2018 Change Programming Language Ratings Change
1 1 Java 16.661% -0.78%
2 2 C 15.205% -0.24%
3 3 Python 9.874% +2.22%
4 4 C++ 5.635% -1.76%
5 6 up arrow C# 3.399% +0.10%
6 5 down arrow Visual Basic .NET 3.291% -2.02%
7 8 up arrow JavaScript 2.128% -0.00%
8 9 up arrow SQL 1.944% -0.12%
9 7 down arrow PHP 1.863% -0.91%
10 10 Objective-C 1.840% +0.33%
11 34 up arrow Groovy 1.502% +1.20%
12 14 up arrow Assembly language 1.378% +0.15%
13 11 down arrow Delphi/Object Pascal 1.335% +0.04%
14 16 up arrow Go 1.220% +0.14%
15 12 down arrow Ruby 1.211% -0.08%
16 15 down arrow Swift 1.100% -0.12%
17 20 up arrow Visual Basic 1.084% +0.40%
18 13 down arrow MATLAB 1.062% -0.21%
19 18 down arrow R 1.049% +0.03%
20 17 down arrow Perl 1.049% -0.02%

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

List of Exercises with Solutions :