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 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
Question:
Which of the following data types does not support precision?
A
decimal
B
int
C
float
D
double
Note:
Not available
Show answer
Show Note
Report
Question:
What is the smallest possible value for decimal in C#?
A
-2147483648
B
-1.0E-28M
C
0
D
-79228162514264337593543950335
Note:
Not available
Show answer
Show Note
Report
Question:
Which data type would you use for a value of 3.402823E+38?
A
float
B
decimal
C
double
D
int
Note:
Not available
Show answer
Show Note
Report
Question:
What is string in C#?
A
Primitive type
B
Reference type
C
Value type
D
Static type
Note:
Not available
Show answer
Show Note
Report
Question:
Which data type is not zero by default?
A
float
B
int
C
bool
D
decimal
Note:
Not available
Show answer
Show Note
Report
Question:
Which of these operators checks if a variable is of a specific type?
A
typeof
B
is
C
as
D
cast
Note:
Not available
Show answer
Show Note
Report
First
Prev
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