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 type in C# is an alias for System.String?
A
String
B
str
C
string
D
character
Note:
Not available
Show answer
Show Note
Report
Question:
What is the size of a char in C#?
A
1 byte
B
2 bytes
C
4 bytes
D
8 bytes
Note:
Not available
Show answer
Show Note
Report
Question:
What value is returned by Convert.ToBoolean(0) in C#?
A
true
B
false
C
null
D
exception
Note:
Not available
Show answer
Show Note
Report
Question:
Which data type represents a 16-bit signed integer in C#?
A
byte
B
short
C
int
D
long
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following is NOT a value type?
A
int
B
struct
C
enum
D
string
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following is a valid way to declare an array in C#?
A
int[] arr = new int[5];
B
int arr = {5};
C
int arr = new int[5];
D
int[] arr = [5];
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following is a reference type?
A
struct
B
enum
C
class
D
int
Note:
Not available
Show answer
Show Note
Report
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
First
Prev
5
6
7
8
9
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