What is the output of this code?
int x = 8;
// x = 3;
Console.WriteLine(x);
C# Programming
Quiz
•
Computers, Instructional Technology
•
11th Grade
•
Hard
Brian Abundo
Used 5+ 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
8 questions
Code.org Unit 3 Review
Quiz
•
9th - 12th Grade
15 questions
AP CSP Unit 4
Quiz
•
10th - 12th Grade
15 questions
AV1/R1 3TEC_Banco de Dados - Chave Primária
Quiz
•
1st Grade - University
12 questions
Java Code
Quiz
•
10th - 12th Grade
7 questions
لغة C#
Quiz
•
10th - 12th Grade
12 questions
Arrays Intro
Quiz
•
9th - 12th Grade
10 questions
C# Консультация. Повторение
Quiz
•
9th - 12th Grade
9 questions
C sharp
Quiz
•
11th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade