Test your skills through the online practice test: Microsoft .NET Quiz Online Practice Test

Related differences

Ques 6. What is explicit vs. implicit conversion?

When converting from a smaller numeric type into a larger one the cast is implicit. An
example of when an explicit cast is needed is when a value may be truncated.

Is it helpful? Add Comment View Comments
 

Ques 7. Can assignment operators be overloaded directly?

No

Is it helpful? Add Comment View Comments
 

Ques 8. What do operators is and as do?

as acts is like a cast but returns a null on conversion failure. Is comares an object to a
type and returns a boolean.

Is it helpful? Add Comment View Comments
 

Ques 9. What is the difference between the new operator and modifier?

The new operator creates an instance of a class whereas the new modifier is used to
declare a method with the same name as a method in one of the parent classes.

Is it helpful? Add Comment View Comments
 

Ques 10. Explain sizeof and typeof.

typeof obtains the System.Type object for a type and sizeof obtains the size of a type.

Is it helpful? Add Comment View Comments
 

Most helpful rated by users: