What is the output of this code?
int x = 8;
// x = 3;
Console.WriteLine(x);
C#
Quiz
•
Computers
•
11th Grade
•
Medium
Károly Lukács
Used 2K+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
int x = 8;
// x = 3;
Console.WriteLine(x);
3
8
error
24
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill the gaps.
___Declaring an integer
and printing it___
int x = 42;
Console.WriteLine(x);
//.........//
/*............*/
<----...................----->
?-------------?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the type of the temp variable?
var temp = 14.55;
Double
Boolean
Integer
String
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
var n1;
n1 = true;
Console.WriteLine(n1);
1
true
error
0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the blank to make the variable num a constant.
_______int num=2;
con
constant
const
constans
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
int x = 16;
int y = 5;
Console.WriteLine(x/y);
3.2
3
error
4
6 questions
C# Data Types
Quiz
•
11th Grade
15 questions
Python - Chpt 1 - Review
Quiz
•
9th - 12th Grade
15 questions
Большое Повторение C#
Quiz
•
5th Grade - University
10 questions
Session 1
Quiz
•
9th - 12th Grade
10 questions
AppsLab_Q2
Quiz
•
10th Grade - Professi...
9 questions
C sharp
Quiz
•
11th Grade
10 questions
Quiz na początek I semestru Wstep do programowania
Quiz
•
7th Grade - University
15 questions
C++ SHS B1-B2
Quiz
•
11th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University