Welcome to your C# Basic Quiz

This Quiz contains 20 MCQs on data types and operators in C#.

C# is a strictly typed language
What is the size of char data type in C#?
The size of decimal data type is
Which of the following is not a valid .NET type?
The conditional expression in if statement returns a
A Value Type is allocated memory from
Which of the following is not a value type?
Which of the following is not a reference type?
A reference type is allocated memory from
A value type is derived from
A reference type is derived from
Which of the following is a valid expression type in switch statement in C#?
What value will be assigned to the variable x?int i, j;
i = j = 1;
int x = (i >> 2) & (j << 2);
What value will be assigned to the variable x?int i, j;
i = j = 1;
x = (i >> 2) | (j << 2);
What value will be assigned to the variable x?int i, j;
i = j = 1;
x = (i >> 2) ^ (j << 2);
What value will be assigned to the variable x?int i, j;
i = 45; j = 70;
x = i + j / 6 * 2 + i >> 2;
What value will be assigned to the variable x?int i, j;
i = 45; j = 70;
x = (i + 6 > j + 3 >> 2) ? 10 : 100;
What value will be assigned to the variable x?int i, j
i = 45; j = 70;
x = (i + 6 > j + 3 << 2) ? 10 : 100;
What value will be assigned to the variable x?int i, j;
 i = 45; j = 70;
x = (i + 6 > j + (3 >> 2)) ? 10 : 100;
What value will be assigned to the variable x?int i, j;
 i = 45; j = 70;
x = i + (j / 6) * 2 + (i >> 2);