 C#
8 months ago
lukacsk
Save
Edit
Host a game
Live GameLive
Homework
Solo Practice
Practice 10 QuestionsShow answers
• Question 1
30 seconds
Q.

What is the output of this code?

int x = 8;

// x = 3;

Console.WriteLine(x);

3

8

error

24

• Question 2
30 seconds
Q.

Fill the gaps.

___Declaring an integer

and printing it___

int x = 42;

Console.WriteLine(x);

//.........//

/*............*/

<----...................----->

?-------------?

• Question 3
30 seconds
Q.

What is the type of the temp variable?

var temp = 14.55;

Double

Boolean

Integer

String

• Question 4
30 seconds
Q.

What is the output of this code?

var n1;

n1 = true;

Console.WriteLine(n1);

1

true

error

0

• Question 5
30 seconds
Q.

Fill in the blank to make the variable num a constant.

_______int num=2;

con

constant

const

constans

• Question 6
30 seconds
Q.

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

• Question 7
30 seconds
Q.

What is the output of this code?

int x = 16;

int y = 5;

Console.WriteLine(x/y);

3.2

3

error

4

• Question 8
30 seconds
Q.

Which operator is used to determine the remainder?

*

%

+

-

• Question 9
30 seconds
Q.

Fill in the missing parentheses to have x equal 15.

int x =__2 + 3__* 3;

Console.WriteLine(x);

(....)

{.....}

<....>

|.....|

• Question 10
30 seconds
Q.

What is the alternative for x = x + 5?