Q101
Open questionSelect an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
115
Questions
6/6
Page
Pick an option on a question to see the right answer and solution.
Q101
Open questionSelect an option to see the answer and solution.
Q102
Open questionSelect an option to see the answer and solution.
Q103
Open questionpublic static void Main(string[] args)
{
int i = 123;
object o = i;
i = 456;
System. Console. WriteLine("The value-type value = {0}", i);
System. Console. WriteLine("The object-type value = {0}", o);
Console. ReadLine();
}Select an option to see the answer and solution.
Q104
Open questionclass Program
{
static void Main(string[] args)
{
int i ;
for (i = 0; i < 5; i++)
{
Console.WriteLine(i);
}
Console.ReadLine();
}
}Select an option to see the answer and solution.
Q105
Open questionSelect an option to see the answer and solution.
Q106
Open questionSelect an option to see the answer and solution.
Q107
Open questionOptions are not available for this question.
Select an option to see the answer and solution.
Q108
Open questionclass Program
{
public static void Main(string[] args)
{
int i = 100;
for (a = 0; a < 5; a++)
{
int i = 200;
Console. WriteLine(a * i);
}
Console. ReadLine();
}
}Select an option to see the answer and solution.
Q109
Open questionstatic void Main(string[] args)
{
var days = "MTWTFSS";
var daysArray = days.ToCharArray().Cast<string>().ToArray();
for (var i = 0; i < daysArray.Length; i++)
{
switch (daysArray[i])
{
case "M":
daysArray[i] = "Monday";
break;
case "T":
daysArray[i] = "Tuesday";
break;
case "W":
daysArray[i] = "Wednesday";
break;
case "R":
daysArray[i] = "Thursday";
break;
case "F":
daysArray[i] = "Friday";
break;
case "S":
daysArray[i] = "Saturday";
break;
case "U":
daysArray[i] = "Sunday";
break;
}
}
daysArray[daysArray.Length - 1] = "and " + daysArray[daysArray.Length - 1];
Console.WriteLine(string.Join(", ", daysArray));
}Select an option to see the answer and solution.
Q110
Open questioni.
char l ='k';
float b = 19.0f;
int c;
c = (l / convert.ToInt32(b));
Console.Writeline(c);
ii.
char l ='k';
float b = 19.0f;
int c;
c = Convert.ToInt32(l / b);
console.writeline(c);Select an option to see the answer and solution.
Q111
Open questionstatic void Main(string[] args)
{
int a = 5;
int b = 10;
int c;
Console.WriteLine(c = ++ a + b ++);
Console.WriteLine(b);
Console.ReadLine();
}Select an option to see the answer and solution.
Q112
Open questionSelect an option to see the answer and solution.
Q113
Open questionSelect an option to see the answer and solution.
Q114
Open questionpublic static void Main(string[] args)
{
double ZERO = 0;
Console.WriteLine("RESULT OF DIVISION BY ZERO IS :{0}", (0 / ZERO));
Console.ReadLine();
}Select an option to see the answer and solution.
Q115
Open questionSelect an option to see the answer and solution.