
C# MCQ Practice Questions
Authored by My Sense
Information Technology (IT)
University
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
85 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax to define a nullable integer in C#?
int? x;
nullable int x;
int x = null;
nullable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of a string variable?
""
null
0
undefined
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a constant value?
const
readonly
static
final
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid C# keyword?
volatile
yield
include
typeof
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of a bool type in C#?
1 bit
1 byte
4 bytes
2 bytes
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum value of a byte?
127
255
1024
65535
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following types can be used with the 'var' keyword?
Anonymous types
Value types
Reference types
All of the above
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?