Correct Answer: All of the answers are correct
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
What does the following code output? ------------------------------------------------ using System; using System.Collections.Generic; public class Program { public static void Main() { var dictionary = new Dictionary(); bool isAlive = true; dictionary.TryGetValue('Jaberwocky', out isAlive); Console.WriteLine(isAlive); } }
What is wrong with this code: public enum @enum : ushort { Item1 = 4096, Item2 = 8192, Item3 = 16384, Item4 = 32768, Item5 = 65536, }
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?
Which of the following statements is incorrect regarding the Dictionary and Hashtable data types in the .NET Framework?
Which of the following can be used to expose a method as a field to the outside world?
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# ?