Datatype
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 default value of a decimal in C#?
A
0.0
B
0.0M
C
0
D
Null
Note:
Not available
Show answer
Show Note
Report
Question:
Which type represents an unsigned 32-bit integer in C#?
A
byte
B
ushort
C
uint
D
ulong
Note:
Not available
Show answer
Show Note
Report
Question:
What does float.NaN represent in C#?
A
Not an Integer
B
Null value
C
Infinity
D
Not a Number
Note:
Not available
Show answer
Show Note
Report
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
First
Prev
3
4
5
6
Next
Last
/6
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2024. Powered by
Intellect Software Ltd