Author Archives: 60secondtutorial

About 60secondtutorial

A Microsoft Certified Professional, a Microsoft Specialist: Programming in C# and passionate in developing solutions to businesses.

I passed the Microsoft Exam 70-483: Programming in C#

Passing the Microsoft Exam 70-483 is a validation of my skills in programming in C#. Although I’ve been programming in C# since C# 2.0, taking the exam was not easy for me. It is because technology is constantly evolving and so is C# which at the time of this posting, the current version of C# is 6.0 (released just two months ago.) However, the exam I toke covers up to C# 5.0.

The exam covers the following:

  1. Manage program flow (25%)
  2. Create and use types (24%)
  3. Debug applications and implement security (25%)
  4. Implement data access (26%)

Microsoft Specialist

Pointers

Advertisement

Hello World!

“Hello World” is the most common example to teach a programming language. It shows the basic structure and syntax to print the word “Hello World”. This is the first step towards a bigger, interesting and yet challenging world of software development.

using System;

namespace HelloWorld
{
    class Program
    {
        ///<summary>
        ///Main entry to the program.
        ///</summary>
        ///<param name="args">Arguments to be passed.</param>
        static void Main(string[] args)
        {
            //Write to output window
            Console.WriteLine("Hello World!");
        }
    }
}

Above code shows the most basic structure and syntax in programming C#.

Line 1: Declaration for importing namespaces
Line 3: Namespace of the current assembly
Line 4: Start of namespace
Line 5: Class declaration
Line 6: Start of class
Line 7-10: Describes the type or type member. It is used in automatic documentation and used by Visual Studio IntelliSense to display the description of the said type or type member during development.
Line 11: Method declaration
Line 12: Start of a method
Line 13: Comment – a one line comment. You should always document your source code well.
Line 14: Statement
Line 15: End of method
Line 16: End of class
Line 17: End of namespace

Pointers:

  • statements are terminated with semi-colon ;
  • opening curly bracket { must always have a corresponding closing curly bracket }

Now let’s keep learning and challenging ourselves – and it has just begun.