csharp_statements_tasks.md - brainchildservices/curriculum GitHub Wiki

SLIDE-1

CSHARP STATRMENT TASKS

SLIDE-2

  1. A statement with a blank body and is used when not needed to perform an operation where a statement is needed, is known as ?

SLIDE-3

  1. Which statement is used to terminating the current flow of the program and transfer controls to the next execution ?

SLIDE-4

  1. Try to access the variable outside of the code block in which it was defined.

                         bool flag = true;
                         if (flag)
                         {
                             int value = 10;
                             Console.WriteLine("Inside of code block: {value}");
                         }
    
                         current output: Inside of code block: 10
    
                         expected output: Outside of code block: 10