10 questions
What is the output of this code?
int x = 8;
// x = 3;
Console.WriteLine(x);
3
8
error
24
Fill the gaps.
___Declaring an integer
and printing it___
int x = 42;
Console.WriteLine(x);
//.........//
/*............*/
<----...................----->
?-------------?
What is the type of the temp variable?
var temp = 14.55;
Double
Boolean
Integer
String
What is the output of this code?
var n1;
n1 = true;
Console.WriteLine(n1);
1
true
error
0
Fill in the blank to make the variable num a constant.
_______int num=2;
con
constant
const
constans
Fill in the blanks to display the result of the multiplication of x and y.
int x = 42;
int y = 7;
int z = x __ y;
Console.WriteLine( __ );
*.....z
mul........z
*......y
-.......x
What is the output of this code?
int x = 16;
int y = 5;
Console.WriteLine(x/y);
3.2
3
error
4
Which operator is used to determine the remainder?
*
%
+
-
Fill in the missing parentheses to have x equal 15.
int x =__2 + 3__* 3;
Console.WriteLine(x);
(....)
{.....}
<....>
|.....|
What is the alternative for x = x + 5?
x += 5;
x -= 4;
x = y + 5;
x=+5