1. The statement “Stack<int> objectStack = new Stack<int>();” indicates that obj
ID: 3860412 • Letter: 1
Question
1. The statement “Stack<int> objectStack = new Stack<int>();” indicates that object Stack stores _______ .
2. Attempting to invoke a derived-class-only method through a base-class variable is an error.
3. Which of the following property specify the duration of a Timer in System.Timers.Timer
4. The .NET languages have which of the following in common?
5. Which of the following classes is not in the System.IO namespace?
6. Why does a syntax error occur when trying to declare a variable called 'lock'?
7. Which of the following is an appropriate declaration of an abstract method?
8. In a WPF project, there is a textbox UI element named txtAge is used for age input, which of the following can properly obtain an integer value of age?
9. Which of the following best describes what a delegate is?
10. What keyword is added to a delegate to force subscribers to use += or =?
ObjectExplanation / Answer
1.“Stack<int> objectStack = new Stack<int>();
Take an Example of
Stack<Banana> bananas = new Stack<Banana>();
bananas.Push(new Banana());
bananas.Push(new Banana());
So here it clearly says that it is an object.
2.Attempting to invoke a derived-class-only method through a base-class variable is an error. False
because we can all the base-class variable from the derived-class
3.Events specify the duration of a Timer in System.Timers.Timer
4.Base Class Library is common in .Net
5.FileLoad is not in the System.IO namespace.
6.'lock' is a reserved keyword
7.public abstract int GetScore();
abstract doesnot have any body.
8.int age = Convert.ToInt32(txtAge);
we will get the value into integer and if we want to convert into string
we will use convert.Tostring()
9.A lightweight thread or process that can call a single method.
10.event is a keyword is added to a delegate to force subscribers to use += or =.
THANK YOU....................
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.