Question: 1. The statement Stack objectStack = new Stack (); indicates that object Stack stores _______ . Object Stack integers strings 2. Attempting to invoke a

1. The statement Stack objectStack = new Stack(); indicates that object Stack stores _______ .

Object
Stack
integers
strings

2. Attempting to invoke a derived-class-only method through a base-class variable is an error.

True
False

3. Which of the following property specify the duration of a Timer in System.Timers.Timer

Events
Interval
Duration
Enabled

4. The .NET languages have which of the following in common?

Syntax
Keywords
Base Class Library

5. Which of the following classes is not in the System.IO namespace?

BinaryReader
FileInfo
FileLoad
StreamWriter

6. Why does a syntax error occur when trying to declare a variable called 'lock'?

'lock' is immutable
'lock' is mutable
'lock' is a reserved keyword
'lock' is a system attribute

7. Which of the following is an appropriate declaration of an abstract method?

public abstract int GetScore() { }
public abstract int GetScore();
public int GetScore() as abstract;
none of the above

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?

int age = txtAge;
int age = txtAge.Text;
int age = Convert.ToInt32(txtAge);
int age = int.Parse(txtAge.Text);

9. Which of the following best describes what a delegate is?

A strongly typed function pointer.
A lightweight thread or process that can call a single method.
A reference to an object in a different process.
An interprocess message channel

10. What keyword is added to a delegate to force subscribers to use += or =?

event
this
delegate
none of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!