C#.NET
Test
Model Test
Ebook
Test on C#.Net framwork 4 Sep 30
CSharp Model Test 1
CSharp Model Test Three
Index
C#.NET Home
Datatype
59
Basic
28
Methods
5
Arrays
3
Object-Oriented Programming
11
Operators
53
Control Structure
18
Schools
Ebook
Question:
Which data type should be used to store a value of true or false in C#?
A
int
B
boolean
C
bool
D
byte
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following types is NOT a reference type in C#?
A
object
B
int
C
string
D
dynamic
Note:
Not available
Show answer
Show Note
Report
Question:
What is the default value of a bool variable in C#?
A
true
B
false
C
0
D
null
Note:
Not available
Show answer
Show Note
Report
Question:
Which keyword is used to declare a variable that can store any data type in C#?
A
object
B
var
C
dynamic
D
any
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following is NOT a primitive data type in C#?
A
double
B
decimal
C
string
D
array
Note:
Not available
Show answer
Show Note
Report
Question:
What is the size of the double data type in C#?
A
4 bytes
B
8 bytes
C
16 bytes
D
32 bytes
Note:
Not available
Show answer
Show Note
Report
Question:
What is the maximum value of a byte data type in C#?
A
255
B
256
C
1024
D
2048
Note:
Not available
Show answer
Show Note
Report
Question:
Which data type would you use to store a single Unicode character in C#?
A
string
B
char
C
byte
D
int
Note:
Not available
Show answer
Show Note
Report
Question:
Which keyword is used to declare a variable whose value can only be assigned in the constructor?
A
const
B
static
C
readonly
D
final
Note:
Not available
Show answer
Show Note
Report
Question:
What is the purpose of the readonly keyword in C#?
A
To make a variable accessible only in read mode
B
To prevent modifying the variable after initialization
C
To make the variable accessible in all derived classes
D
To declare a variable as a constant
Note:
Not available
Show answer
Show Note
Report
First
Prev
3
4
5
6
7
Next
Last
/18
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2025. Powered by
Intellect Software Ltd