Correct Answer: None of these
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 is the correct way to escape braces {} while using string.Format.
[Flags] enum Days{ None=0x0, WeekDays=0x1, WeekEnd=0x2 } Days workingDays = Days.WeekDays | Days.WeekEnd; How do you remove the Days.WeekEnd from the workingDays variable?
What will the following program print on the console: static void Main(string[] args) { var i = typeof(void); Console.WriteLine(i.Name); }
Which of the following suffixes is used for a numeric real literal to be treated as a decimal?
Which of the following will set the process return code to 1?
Four threads are working simultanmeously on an ArrayList object. How many enumerators will exit in this case?
Which of the following statements is false in relation to following method? static byte[] GetBytes(string str) { byte[] bytes = new byte[str.Length * sizeof(char)]; System.Buffer.BlockCopy(str.ToCharArray(), 0, bytes, 0, bytes.Length); return bytes; }
Which of the following is the correct output for the C# code snippet? String s1 = 'UpWork'; String s2; s2 = s1.Insert(4, 'Project'); Console.WriteLine(s2);
Which of the following is a valid C# statement?
What will happen if the value of nNum is 2 and the following code is compiled and executed? switch(nNum) { case 1: Console.WriteLine('nNum = 1'); break; case 2: Console.WriteLine('nNum = 2'); default: Console.WriteLine('nNum is not 1 nor 2'); break; }