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:
What is the difference between int and uint?
A
int can hold decimal values
B
uint cannot be negative
C
uint is a 16-bit integer
D
They are the same
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following represents a collection of bytes in C#?
A
List<byte>
B
Array
C
BitArray
D
byte[]
Note:
Not available
Show answer
Show Note
Report
Question:
What keyword allows a variable's data type to be determined at runtime?
A
var
B
dynamic
C
object
D
any
Note:
Not available
Show answer
Show Note
Report
Question:
Which of these is immutable in C#?
A
String
B
Array
C
List
D
List
Note:
Not available
Show answer
Show Note
Report
Question:
Which data type can store the value of null without additional configuration?
A
int
B
string
C
bool
D
char
Note:
Not available
Show answer
Show Note
Report
Question:
What is the size of a long type in C#?
A
4 bytes
B
8 bytes
C
16 bytes
D
2 bytes
Note:
Not available
Show answer
Show Note
Report
Question:
Which type is most commonly used for currency calculations in C#?
A
float
B
decimal
C
double
D
int
Note:
Not available
Show answer
Show Note
Report
Question:
What is the purpose of the object type in C#?
A
To represent all primitive types
B
To be the base class of all types
C
To create complex types only
D
None
Note:
Not available
Show answer
Show Note
Report
Question:
What will be the result of 5/2 if both operands are integers?
A
2.5
B
2
C
2.0
D
Compilation error
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following is a boxing operation in C#?
A
int i = 123; object o = i;
B
int i = (int)o;
C
float f = 12.5f;
D
string s = "text";
Note:
Not available
Show answer
Show Note
Report
First
Prev
6
7
8
9
10
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