C# Programming - Control Instructions
Why should I learn to solve C# Programming questions and answers section on "Control Instructions"?
Learn and practise solving C# Programming questions and answers section on "Control Instructions" to enhance your skills so that you can clear interviews, competitive examinations, and various entrance tests (CAT, GATE, GRE, MAT, bank exams, railway exams, etc.) with full confidence.
Where can I get the C# Programming questions and answers section on "Control Instructions"?
IndiaBIX provides you with numerous C# Programming questions and answers based on "Control Instructions" along with fully solved examples and detailed explanations that will be easy to understand.
Where can I get the C# Programming section on "Control Instructions" MCQ-type interview questions and answers (objective type, multiple choice)?
Here you can find multiple-choice C# Programming questions and answers based on "Control Instructions" for your placement interviews and competitive exams. Objective-type and true-or-false-type questions are given too.
How do I download the C# Programming questions and answers section on "Control Instructions" in PDF format?
You can download the C# Programming quiz questions and answers section on "Control Instructions" as PDF files or eBooks.
How do I solve C# Programming quiz problems based on "Control Instructions"?
You can easily solve C# Programming quiz problems based on "Control Instructions" by practising the given exercises, including shortcuts and tricks.
- Control Instructions - General Questions
int i = 0, j = 0;
label:
i++;
j+=i;
if (i < 10)
{
Console.Write(i +" ");
goto label;
}
int i = 20 ;
for( ; ; )
{
Console.Write(i + " ");
if (i >= -10)
i -= 4;
else
break;
}
namespace IndiabixConsoleApplication
{
public enum color
{ red, green, blue };
class SampleProgram
{
static void Main (string[ ] args)
{
color c = color.blue;
switch (c)
{
case color.red:
Console.WriteLine(color.red);
break;
case color.green:
Console.WriteLine(color.green);
break;
case color.blue:
Console.WriteLine(color.blue);
break;
}
}
}
}
int i = 0;
do
{
Console.WriteLine(i);
i+ = 1;
} while (i <= 10);