PRN292 - Quiz 3

Ace your homework & exams now with Quizwiz!

ac

Assume that vehicles.dll file contains:: .assembly extern mscorlib { ... } .assembly extern mechanic { ... } .assembly vehicles { ... } .file Van.netmodule ... .class extern public Vehicles.Van { ... } .module vehicles.dll Select correct statements: Select one or more: a. vehicles.dll is primary module b. This is a single file assembly. c. In this assembly, there is a class derived from Van class. d. This assembly only references another.

c

Select correct statements about .NET assemblies: Select one: a. .assembly extern AnimalLibrary { version 1.1.0.0} means that AnimalLibrary is the super class. b. None of the others. c. Assembly al = Assembly.Load("AnimalLibrary") will request an assembly load. d. .assembly extern AnimalLibrary { version 1.1.0.0} means that AnimalLibrary was assigned a strong name.

c

Which class controls access to objects by granting a lock for an object to a single thread? Select one: a. The lock. b. The [Synchronization]. c. The Monitor. d. The Interlocked.

b

Which of the following sentences about .NET Assembly are true: Select one: a. All of the others. b. The .NET runtime resolves the location of private assemblies using probing technique. c. Version of .NET assemblies have form of <build>.<major>.<minor>.<revision> d. For shared assemblies, version number allows multiple versions of the same assembly to coexist in on a single machine.

b

Which of the following sentences about .NET Assembly are true: Select one: a. There is a one-to-one correspondence between the (logical) assembly and the underlying (physical) binary in multifile assemblies. b. In a multifile assembly every module can be built using multiple different .NET programming languages. c. gacutil command is used to view content of assembly files. d. All of the others.

d

Which of the following statement about delegates is false: Select one: a. Compilers should emit delegate classes with Invoke, BeginInvoke, and EndInvoke methods using the delegate signature specified by the user. b. IAsyncResult interface, which is the return type of BeginInvoke methods, represents the status of an asynchronous operation. c. None of the others. d. When you call a delegate synchronously, the BeginInvoke method calls the target method directly on the current thread.

b

Which of the following statement about multithreaded application is true: Select one: a. Threads can be moved between AppDomain boundaries. b. All of the others. c. One process can have one or more threads. d. It is impossible for a single thread to be doing work in more than one AppDomain at any point of time.

bc

Which of the following statements about .NET assemblies are true: Select one or more: a. When an application references an assembly in GAC, the assembly must be copied to the application directory b. Shared assemblies are installed into the GAC. c. Shared assemblies can be configured using a client *.config file d. It is unnecessary to assign an assembly a strong name before it installed to the GAC

a

Which of the following statements about Thread class is false: Select one: a. Thread.Sleep() method is usually called to terminate the thread. b. All of the others. c. Thread.IsBackground property gets or sets a value indicating whether or not a thread is a background thread. d. Thread.Start() method causes the operating system to change the state of the current instance to ThreadState.Running.

d

Which of the following statements about multithreaded application are true: Select one: a. By default, every thread is created via the Thread.Start() method has priority is lowest. b. All of the others. c. Foreground threads are automatically killed when the application domain unloads. d. By default, every thread is created via the Thread.Start() method is automatically a foreground thread.


Related study sets

MS: Ganglion Cysts and Bone Tumors

View Set

Earth and Environmental Chapter 7 exam review

View Set