Correct Answer: 2
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
Which of the following is NOT reference type?
What is the purpose of [Flags] attribute?
In C#, 'explicit' keyword is used to:
What will be the result of running the following code : void Main() { Perform(Inp); } public string Inp(string s1, string s2) { return s1 + s2; } public void Perform(Func inp) { Console.WriteLine(inp('Hello', ',World')); }
What does the attribute [Conditional('DEBUG')] on a method indicate?
What is the following code correct output for the C# code snippet shown below? String s1 = 'UpWork Skills Test'; String s2; s2 = s1.Substring(12, 3); Console.WriteLine(s2);
What would be the output of following code snippet? { try { int a, b; b = 0; a = 10 / b; Console.WriteLine('A'); } catch(ArithmeticException e) { Console.WriteLine('B'); } Console.ReadLine(); }
What will be the output of given code snippet? class Program { static void Main(string[] args) { int[] nums = { 1, -2, 3, 0, -4, 5}; var posNums = from n in nums where n >= 0 select n; foreach (int i in posNums) Console.Write(i + ' '); Console.WriteLine(); Console.ReadLine(); } }
Select the result of the given code snippet: class Program { static void Main(string[] args) { int[] nums = { 16, 9, 25}; var posNums = from n in nums where n > 0 select Math.Sqrt(n); Console.Write('The positive values in nums: '); foreach (int i in posNums) Console.Write(i + ' '); Console.WriteLine(); Console.ReadLine(); } }
What is the best way to copy the contents of one stream to another in .NET 4?