Microsoft .NET اسئلة واجوبة المقابلات
سؤال 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.
سؤال 7. Can assignment operators be overloaded directly?
No
سؤال 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.
سؤال 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.
سؤال 10. Explain sizeof and typeof.
typeof obtains the System.Type object for a type and sizeof obtains the size of a type.
الاكثر فائدة حسب تقييم المستخدمين:
- Name 10 C# keywords.
- What is public accessibility?
- .NET Stands for?
- What is private accessibility?
- What is protected accessibility?