Question: 1. In the System.Media.SoundPlayer class what method is used to load a sound using a new thread? Load LoadAsync Play Stop 2. What is used

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

Load
LoadAsync
Play
Stop

2. What is used to implement event in C#?

Specialized DLLs
Exceptions
Delegates

3. You can update a GUI from any thread of execution.

True
False

4. In C# all non-static methods are by default virtual functions.

True
False

5. The class SmithKarenCreature inherits from the class Creature . An instance of SmithKarenCreature is created and referenced in the variable kCreature using the following code: SmithKarenCreature kCreature = new SmithKarenCreature();

A variable called creature of type Creature is declared and kCreature is cast as type Creature and assigned to creature using the following line of code:

Creature creature = (Creature)kCreature;

Which of the following is an alternative syntax to the above line of code?

Creature creature = Creature as kCreature;
Creature creature = kCreature as Creature;
Creature (SmithKarenCreature) creature = kCreature;
Creature creature = (SmithKarenCreature as Creature) kCreature;

6. Which of the following is true regarding a sealed class?

It is ready to be serialized.
It is packaged in a DLL.
It cannot be inherited.
It may not reference any classes in the .NET library.

7. Find correct statement about the code?

class sample

{

int i = 10;

int j = 20;

public void display()

{

Console.WriteLine("base method ");

}

}

class sample1 : sample

{

public int s = 30;

}

class Program

{

static void Main(string[] args)

{

sample1 obj = new sample1();

Console.WriteLine("{0}, {1}, {2}", obj.i, obj.j, obj.s);

obj.display();

Console.ReadLine();

}

}

10, 20, 30

Base method

10, 20, 0

Compile time error

Base method

8. An interface member that is explicitly implemented can be accessed only through an instance of the interface, not from a class instance

True
False

9. Abstract class can include :

Properties
Abstract methods
Non-abstract methods
All the above

10. An abstract method can only be declared in a class that is declared as abstract.

True
False

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!