w3resource

C# Sharp Programming Exercises, Practice, Solution

What is C# Sharp?

C# is an elegant and type-safe object-oriented language that enables developers to build a variety of secure and robust applications that run on the .NET Framework. You can use C# to create Windows client applications, XML Web services, distributed components, client-server applications, database applications, and much, much more.

C# syntax is highly expressive, yet it is also simple and easy to learn. The curly-brace syntax of C# will be instantly recognizable to anyone familiar with C, C++ or Java. Developers who know any of these languages are typically able to begin to work productively in C# within a very short time.

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 C# Sharp programming. Hope, these exercises help you to improve your C# Sharp programming coding skills. Currently, following sections are available, we are working hard to add more exercises .... Happy Coding!

List of C# Sharp Exercises :

Popularity of Programming Language
Worldwide, May 2020 compared to a year ago:

Rank Change Language Share Trend
1 Python 31.17 % +4.3 %
2 Java 17.75 % -2.4 %
3 Javascript 7.99 % -0.3 %
4 C# 7.05 % -0.2 %
5 PHP 6.09 % -1.0 %
6 C/C++ 5.67 % -0.3 %
7 R 3.93 % -0.1 %
8 Objective-C 2.4 % -0.4 %
9 Swift 2.26 % -0.1 %
10 up arrow TypeScript 1.89% +0.3 %
11 down arrow Matlab 1.81 % -0.2 %
12 up arrow Kotlin 1.55 % +0.3 %
13 VBA 1.33 % +0.0 %
14 up arrow Go 1.26 % +0.1 %
15 down arrow Ruby 1.19 % -0.2 %
16 Scala 1.01 % -0.1 %
17 Visual Basic 0.91 % -0.2 %
18 up arrow Rust 0.75 % +0.2 %
19 Abap 0.55 % +0.0 %
20 up arrow Dart 0.49 % +0.2 %
21 down arrow Perl 0.44 % -0.2 %
22 up arrow Cobol 0.42 % +0.1 %
23 down arrow Lua 0.41 % +0.0 %
24 down arrow Groovy 0.4 % -0.1 %
25 down arrow Ada 0.4 % +0.0 %
26 up arrow Julia 0.3 % +0.0 %
27 down arrow Haskell 0.3 % -0.0 %
28 down arrow Delphi 0.27 % +0.0 %

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

TIOBE Index for May 2020

May 2020 May 2019 Change Programming Language Ratings Change
1 2 up arrow C 17.07% +2.82%
2 1 down arrow Java 16.28% +0.28%
3 4 up arrow Python 9.12% +1.29%
4 3 down arrow C++ 6.13% -1.97%
5 6 up arrow C# 4.29% +0.30%
6 5 down arrow Visual Basic 4.18% -1.01%
7 7 JavaScript 2.68% -0.01%
8 9 up arrow PHP 2.49% -0.00%
9 8 down arrow SQL 2.09% -0.47%
10 21 up arrow R 1.85% +0.90%
11 18 up arrow Swift 1.79% +0.64%
12 19 up arrow Go 1.27% +0.15%
13 14 up arrow MATLAB 1.17% -0.20%
14 10 down arrow Assembly language 1.12% -0.69%
15 15 Ruby 1.02% -0.32%
16 20 up arrow PL/SQL 0.99% -0.03%
17 16 down arrow Classic Visual Basic 0.89% -0.43%
18 13 down arrow Perl 0.88% -0.51%
19 28 up arrow Scratch 0.83% +0.32%
20 11 down arrow Objective-C 0.80% -0.83%

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

List of Exercises with Solutions :

Note : The solution of the exercises described here are not the only ways to do stuff. Rather, it would be great, if this helps you anyway to choose your own methods.

[ Want to contribute to C# Sharp exercises? Send your code (attached with a .zip file) to us at w3resource[at]yahoo[dot]com. Please avoid copyrighted materials.]