Your first explainable program

15-minute session: read for 3 minutes, trace for 3, experiment for 7, and complete the check for 2. Spend longer whenever you need.

A program is a set of instructions. Read the example from its entry point to the output statement. Text in quotes is data; the output operation is an instruction. Predict the printed line before running. Change only the message, run again, then remove one required punctuation mark and read the first error. Restore the working source.

Main is the entry method inside Program. Console.WriteLine prints a line. A class instance can have several references to the same object; assigning a reference does not clone the object.

using System;
using System.Collections.Generic;
class Program {

    static void Main() {
        Console.WriteLine("Ready");
    }
}

Expected result: Ready

Practice and evidence

Keep three notes: your prediction, the actual result, and why they match or differ. The completion check grades understanding; the practice task builds skill.

Language reference