Question 31 Statement Stack Objectstack New Stack Indicates Object Stack Stores Object St Q29139135

Question 31

The statement “Stack<int> objectStack = newStack<int>();” indicates that object
Stack stores _______ .

Object
Stack
integers
strings

Question 32

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

True
False

Question 33

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

Events
Interval
Duration
Enabled

Question 34

In the System.Media.SoundPlayer class what method is used toload a sound using a new thread?

Load
LoadAsync
Play
Stop

Question 35

When should a program explicitly use the this reference?

accessing a private variable
accessing a public variable
accessing a local variable
accessing a field that is shadowed by a local variable

Question 36

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

Syntax
Keywords
Base Class Library
No answer text provided.

Question 37

Which of the following classes is not in the System.IOnamespace?

BinaryReader
FileInfo
FileLoad
StreamWriter

Question 38

Why does a syntax error occur when trying to declare a variablecalled ‘lock’?

‘lock’ is immutable
‘lock’ is mutable
‘lock’ is a reserved keyword
‘lock’ is a system attribute

Question 39

This keyword is used to extend or modify the abstract or virtualimplementation of an inherited method, property, indexer, orevent.

extend
replace
override
sealed

Question 40

Which of the following is an appropriate declaration of anabstract method?

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

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *