What will be the output of the following C# code? static void Main(string[] args) { ...
View Question
What will be the output of the following C# code?
static void Main(string[] args)
{
const int a = 5;
const int b = 6;
for (int i = 1; i <= 5; i++)
{
a = a * i;
b = b * i;
}
Console.WriteLine(a);
Console.WriteLine(b);
Console.ReadLine();
}
What will be the output of the following C# code? static void Main(string[] args) { ...
View Question
What will be the output of the following C# code?
static void Main(string[] args)
{
int a = 5;
int b = 10;
int c;
Console.WriteLine(c = a– – ++b);
Console.WriteLine(b);
Console.ReadLine();
}
What will be the output of the following C# code? static void Main(string[] args) { ...
View Question
What will be the output of the following C# code?
static void Main(string[] args)
{
String name = “Dr.Gupta”;
Console.WriteLine(“Good Morning” + name);
}
What will be the output of the following C# code? static void Main(string[] args) { ...
View Question
What will be the output of the following C# code conversion?
static void Main(string[] args)
{
char a = ‘A’;
string b = “a”;
Console.WriteLine(Convert.ToInt32(a));
Console.WriteLine(Convert.ToInt32(Convert.Tochar(b)));
Console.ReadLine();
}
What will be the output of the following C# code conversion? static void Main(string[] args) {
View Question
What will be the output of the following C# code?
int a,b;
a = (b = 10) + 5;
What will be the output of the following C# code? int a,b; a = ...
View Question
The following C# codes are?
1. Myclass class;
Myclass class2 = null;
2. int i;
int j = 0;
The following C# codes are? 1. Myclass class; Myclass class2 = null; ...
View QuestionDifference between keywords ‘VAR’ and ‘DYNAMIC’?
a) ‘Var’ is introduced in C# (3.0) and ‘Dynamic’ is introduced in C# (4.0) b) ‘Var’ is a ...
View QuestionStorage location used by computer memory to store data for usage by an application is?
a) Pointers b) Constants c) Variable d) None of the mentioned Answer: c Explanation: ‘Variables’ are essential locations in ...
View Question
What will be the output of the following C# code?
static void Main(string[] args)
{
int a = 5;
int b = 10;
int c;
Console.WriteLine(c = ++ a + b ++);
Console.WriteLine(b);
Console.ReadLine();
}
What will be the output of the following C# code? static void Main(string[] args) { ...
View Question