Correct Answer: Constant value '65536' cannot be converted to a 'ushort'
Explanation:
Note: This Question is unanswered, help us to find answer for this one
C# Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More C# MCQ Questions
In C#, difference between 'new' and 'override' is:
Which answer is not a valid C# 4.0 variable definition?
Polymorphism. LET: public class BaseClass { public string DoWork() { return 'A'; } } public class DerivedClass : BaseClass { public new string DoWork() { return 'B'; } } IF: DerivedClass B = new DerivedClass(); BaseClass A = (BaseClass)B; A.DoWork(); What's the resulted output?
What will happen if the requested type conversion is not possible when using an 'as' operator ?
Which statement is True?
Which statement(s) is/are incorrect in relation to the two functions below? 1. public static byte[] ReadFully(Stream input) { byte[] buffer = new byte[16*1024]; using (MemoryStream ms = new MemoryStream()) { int read; while ((read = input.Read(buffer, 0, buffer.Length)) > 0) { ms.Write(buffer, 0, read); } return ms.ToArray(); } } 2. public static byte[] ReadFully(Stream input) { using (MemoryStream ms = new MemoryStream()) { input.CopyTo(ms); return ms.ToArray(); } }
Which of the following will return the absolute URL (ie. http://www.something.com/index.aspx) of the requested page (ASP.NET)?
When should the 'as' keyword be used in C# ?
What is the fundamental difference between double and decimal variable types?
Which of the following statements are correct?