Podcast
Questions and Answers
Which of the following can be declared as static in C#?
Which of the following can be declared as static in C#?
- Inheritance
- Interfaces
- Polymorphism
- Variables (correct)
How many copies of a static member exist in a class, regardless of the number of objects created?
How many copies of a static member exist in a class, regardless of the number of objects created?
- One (correct)
- Depends on the number of objects created
- Three
- Two
What does a static class in C# contain?
What does a static class in C# contain?
- Static data members, static methods, and a static constructor (correct)
- Only static methods
- Instance data members and instance methods
- Only static data members
Are static classes in C# allowed to be instantiated?
Are static classes in C# allowed to be instantiated?
Which of the following is NOT allowed in a static class in C#?
Which of the following is NOT allowed in a static class in C#?
What does 'static' mean in C#?
What does 'static' mean in C#?
What is the meaning of 'static' when applied to a class in C#?
What is the meaning of 'static' when applied to a class in C#?
Which of the following is NOT applicable for the 'static' modifier in C#?
Which of the following is NOT applicable for the 'static' modifier in C#?
How many copies of a static member exist in a class in C#?
How many copies of a static member exist in a class in C#?
What does a static class in C# not allow?
What does a static class in C# not allow?