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, Oct 2020 compared to a year ago:

Rank Change Language Share Trend
1 Python 31.02 % +2.2 %
2 Java 16.38 % -2.8 %
3 Javascript 8.41 % +0.4 %
4 C# 6.52 % -0.6%
5 PHP 5.83 % -0.4 %
6 C/C++ 5.56 % -0.4 %
7 R 4.26 % +0.4 %
8 Objective-C 3.48 % +0.8 %
9 Swift 2.37 % -0.1 %
10 TypeScript 1.9 % +0.1 %
11 Matlab 1.67 % -0.1 %
12   Kotlin 1.66 % +0.1 %
13 up arrow Go 1.43 % +0.2 %
14 down arrow Ruby 1.17 % -0.3 %
15 down arrow VBA 1.12 % -0.2 %
16 up arrow Rust 1.01 % +0.4 %
17 down arrow Scala 0.95 % -0.1 %
18 down arrow Visual Basic 0.78 % -0.2 %
19 up arrow Dart 0.61 % +0.2 %
20 up arrow Ada 0.59 % +0.2 %
21 up arrow Lua 0.52 % +0.2 %
22 down arrow Perl 0.48 % -0.1 %
23 down arrow Groovy 0.45 % -0.1 %
24 up arrow Julia 0.43 % +0.2 %
25 down arrow Abap 0.41 % -0.1 %
26 down arrow Cobol 0.36 % +0.0 %
27 up arrow Haskell 0.33 % +0.0 %
28 Delphi 0.31 % +0.1 %

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

TIOBE Index for October 2020

Oct 2020 Oct 2019 Change Programming Language Ratings Change
1 2 up arrow C 16.95% +0.77%
2 1 down arrow Java 12.56% -4.32%
3 3 Python 11.28% +2.19%
4 4 C++ 6.94% +0.71%
5 5 C# 4.16% +0.30%
6 6 Visual Basic 3.97% +0.23%
7 7 JavaScript 2.14% +0.06%
8 9 up arrow PHP 2.09% +0.18%
9 15 up arrow R 1.99% +0.73%
10 8 down arrow SQL 1.57% -0.37%
11 19 up arrow Perl 1.43% +0.40%
12 11 up arrow Groovy 1.23% -0.16%
13 13 up arrow Ruby 1.16% -0.16%
14 17 down arrow Go 1.16% +0.06%
15 20 up arrow MATLAB 1.12% +0.19%
16 12 down arrow Swift 1.09% -0.28%
17 14 down arrow Assembly language 1.08% -0.23%
18 10 down arrow Objective-C 0.86% -0.64%
19 16 down arrow Classic Visual Basic 0.77% -0.46%
20 22 up arrow PL/SQL 0.77% -0.06%

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.]