
C# Data Types and Identifiers Quiz 2
Quiz
•
Information Technology (IT)
•
12th Grade
•
Medium
Rachel J. Vergara
Used 2+ times
FREE Resource
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);
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
16 questions
Subject pronouns in Spanish
Quiz
•
9th - 12th Grade
14 questions
Model and Solve Linear Equations
Quiz
•
9th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
