Correct Answer: A do ... while loop guarantees to execute at least once, a while loop doesn't.
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 must be different between different overloads of a method?
What is the difference, if any, between x && y and x & y ?
What keyword do you use inside a switch statement to handle any cases not explicitly specified by case clauses?
A class declared in a namespace can be declared as public, for example namespace People { public Employee { /* ... */ } } Which other access modifiers could alternatively be applied to this class, instead of public?
What do the following two lines of code demonstrate? string Substring (int startIndex) { /* ... */ } string Substring (int startIndex, int length) { /* ... */ }
Which of the following keywords prevents a class from being overridden further?
An enum is defined in a program as follows: [Flags] public enum Permissions { None = 0, Read = 1, Write = 2, Delete = 4 } What will be the output of the following Main program (which has access to the enum defined above) in this C# console application (Assume required namespaces are included) : static void Main(string[] args) { var permissions = Permissions.Read | Permissions.Write; if ((permissions & Permissions.Write) == Permissions.Write) { Console.WriteLine("Write"); } if ((permissions & Permissions.Delete) == Permissions.Delete) { Console.WriteLine('Delete'); } if ((permissions & Permissions.Read) == Permissions.Read) { Console.WriteLine('Read'); } Console.ReadLine(); }
The .NET Framework consists of:
What type of code is written to avail the services provided by Common Language Runtime?
One of the ternary operators provided in C# is: