Correct Answer: Runtime exception (InvalidCastException)
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# simple types like int, char and bool are aliases for predefined classes in the System namespace.
abstract class BaseClass { public abstract Color Color { get { return Color.Red; } } } sealed class Blues: BaseClass { public override Color Color { get { return Color.Blue; } } } BaseClass test = new Blues(); What is the result of test.Color ?
What will be the result of the following code: float f = 1.5; Console.WriteLine(f);
Which of the following is the correct way to specify a decimal
Which is the correct way to escape braces {} while using string.Format.
Which of the following statements are true about the following C#.Net code? String s1, s2; s1 = 'UpWork'; s2 = 'UpWork';
Which of the following is the correct way to calculate 'Age' from date of birth? Example : DateTime bday= DateTime((1990, 10, 3));
Which of the following are ways of ensuring that a user enters an integer value in a WinForms application?
How can you code to display 'This is XAML' in XAML?
Four threads are working simultanmeously on an ArrayList object. How many enumerators will exit in this case?