
C# Data Types and Identifiers Quiz 2
Authored by Rachel J. Vergara
Information Technology (IT)
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec ⢠1 pt
Which of the following is a valid identifier in C#?
1number
firstName
class
new
2.
MULTIPLE CHOICE QUESTION
20 sec ⢠1 pt
What keyword is used to declare a constant in C#?
var
static
const
final
3.
MULTIPLE CHOICE QUESTION
20 sec ⢠1 pt
Which of the following is a C# keyword?
score
data
length
public
4.
MULTIPLE CHOICE QUESTION
20 sec ⢠1 pt
Which of these cannot be used as an identifier unless prefixed with @?
PI
class
Temp_1
dataType
5.
MULTIPLE CHOICE QUESTION
20 sec ⢠1 pt
What happens if you try to assign a new value to a constant?
The value changes
A compilation error occurs
The value is updated at runtime
Nothing happens
6.
MULTIPLE CHOICE QUESTION
20 sec ⢠1 pt
Which data type stores a single Unicode character?
string
bool
int
char
7.
MULTIPLE CHOICE QUESTION
20 sec ⢠1 pt
What is the correct syntax to declare a variable of type int with a value of 25?
int age = 25;
int = 25 age;
25 = int age;
int age(25);
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
39 questions
Soal Penilaian Informatika
Quiz
ā¢
12th Grade
40 questions
Understanding Loops and Functions
Quiz
ā¢
12th Grade
35 questions
Quiz PBO Kelas 12-2
Quiz
ā¢
12th Grade
45 questions
IT Board MCQ
Quiz
ā¢
12th Grade
40 questions
Soal SAS PWPB Semester Ganjil Kelas XII RPL
Quiz
ā¢
12th Grade
40 questions
Berpikir komputasi dan pemograman
Quiz
ā¢
11th Grade - University
38 questions
7-20
Quiz
ā¢
7th Grade - University
39 questions
TrįŗÆc nghiį»m Microsoft Access
Quiz
ā¢
11th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
ā¢
3rd Grade
20 questions
Equivalent Fractions
Quiz
ā¢
3rd Grade
25 questions
Multiplication Facts
Quiz
ā¢
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
ā¢
9th Grade
22 questions
fractions
Quiz
ā¢
3rd Grade
11 questions
FOREST Effective communication
Lesson
ā¢
KG
20 questions
Main Idea and Details
Quiz
ā¢
5th Grade
20 questions
Context Clues
Quiz
ā¢
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
ā¢
10th - 12th Grade
22 questions
El Imperfecto
Quiz
ā¢
9th - 12th Grade
20 questions
SSS/SAS
Quiz
ā¢
9th - 12th Grade
20 questions
verbos reflexivos en espaƱol
Quiz
ā¢
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
ā¢
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
ā¢
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
ā¢
9th - 12th Grade
28 questions
Ser vs estar
Quiz
ā¢
9th - 12th Grade