Quiz
.NET midterm question
Fragen in diesem Quiz (25)
1Assume there is a private .NET class library and client executable. Which is the correct way to test the client to see if it will interoperate with the class library?
- AUse the .NET assembly linker tool to generate one combined assembly based on both the client and the class library, then execute this combined assembly
- BPut the client and the library in the same folder and execute the class library file
- CPut the client and the library in the same folder and execute the client file
- DCombined all the source code for the client and class library into one Visual Studio project then build and execute the project
2What is the default file name extension of a .NET class library?
- A.exe
- B.net
- C.lib
- D.cs
- E.dll
3When developing a .NET application in Visual Studio, which one of the following is a correct way to establish a client-service relationship between a client project and a class library project?
- AAdd a reference to the client assembly within the class library project
- BAdd a reference to the class library assembly within the client project
- CAdd using namespace statement for the class library's namespace within the client project
- DAdd a using namespace statement for the client's namespace within the class library project
4Which of the following C# project templates in Visual Studio should be used to construct the PaymentCard service from Lab 1?
- AClass Library
- BWPF Application
- CConsole Application
- DWindows Service
5A reasonable conclusion that can be drawn after completing the Payment Card lab is that:
- AA software component interface, like ICard, must remain immutable or unchanging to allow different implementations to be supported
- BA component software architecture should be the default or standard approach when developing any software system
- CA class library project in Visual Studio is a suitable tool for creating a client application such as the PaymentCard client
- DAn application's performance can be improved by separating it into multiple software components like the PaymentCard client and library
6The CLR can be advised to bind to a private class library in non-default location using the probing element in an Application Configuration File. Which of the following is a key limitation of this technique?
- AThe class library must be located outside the folder in which the client assembly is located.
- BBoth the client and class library assembly must be developed using the same .NET language (e.g. both written in C#)
- CThe class library must be located in a subfolder within the folder in which the client assembly is located
- DThe class library's version number must match the version number expected by the client
7Where does the CLR normally expect to find a private class library assembly that is required by a client assembly?
- AIn the Global Assembly Cache
- BIn the same folder as the client assembly
- CIn a subfolder called libs located within the client assembly's folder
- DIn the Windows\System32 folder
8If you have a class library project in Visual Studio, what effect will be created by assigning it an assembly version number of 10* (Yes, the last number is blank!)
- AThis will assign a version number that does not include a revision number or a build number
- BThis will cause a builder error
- CVisual Studio will automatically assign a build number to the assembly
- DVisual Studio will automatically assign both a revision number and a build number to the assembly
9If a client assembly called Lab3Client.exe uses a class library assembly called Lab3Library.dll, what is the correct name of the application configuration file if the application is deployed with one?
- ALab3Library.dll.config
- BApp.config
- CLab3Library.config
- DLab3Client.config
- ELab3Client.exe.config
10True of False: If a .NET client is designed to use a private (unsigned) class library having an assembly version of 1.0.0.0 but instead an otherwise identical class library is provided with a different version number, the application will still work
- ARichtig
- BFalsch
11Which is the correct Visual Studio command-line to install an assembly called library.dll into the Global Assembly Cache?
- Agacutil -i library
- Bgacutil -u library.dll
- Cgacutil -i library.dll
- Dgacutil -u library
- Egacutil library
12A .NET client is designed to use a signed class library having an assembly version of 1.0.0.0. However an otherwise identical class library with the assembly version number 1.0.1.0 is available instead.
This application will still work without configuring it via an application configuration file:
True or False?- ARichtig
- BFalsch
13A developer wants to deploy a signed class library assembly that is a newer version of the one the client already references. Which element of the client's application configuration file can be used to configure this?
- AcodeBase
- BassemblyIdentity
- CassemblyBinding
- DbindingRedirect
- Eprobing
14Which kind of .NET assembly can be shared in the Global Assembly Cache (GAC)?
- AAny assembly
- BAny signed Windows application assembly (.exe extension)
- CAny signed class library assembly (.dll extension)
- DAny class library assembly (.dll extension)
- EAny Windows application assembly (.exe extension)
15A developer wants to deploy a signed class library assembly's in a "non-default" location (i.e. not a location where the CLR would normally look for it). Which element of the client's application configuration file can be used to configure this?
- AassemblyIdentity
- BcodeBase
- CbindingRedirect
- Dprobing
- EassemblyBinding
16Which clients are impacted by a publisher's policy?
- AAny client installed in the Global Assembly Cache (GAC)
- BAny client of the corresponding class library that has an application configuration file that "points to" the publisher's policy
- CAll clients of the corresponding class library on the computer
- DAlways just one client that is in the same folder as the policy
17What kind of file is a publisher's policy deployed as?
- AA signed Windows executable assembly
- BA signed class library assembly
- CAn xml-based text file
- DA private, unsigned class library assembly
18Which Visual Studio utility program is used to generate a publisher's policy from an XML format config file?
- Aal (al.exe)
- Bildasm (ildasm.ee)
- Csn (sn.exe)
- Dgacutil (gacutil.exe)
19Given the following assembly information:
File Name = PhysicalLib.dll
Public Key Token = 9abc54cf85be28fe
Assembly Version = 2.0.1.5
What would be the correct name of a publisher's policy (file extension not included) for this assembly?- Apolicy.2.0.PhysicsLib
- Bpolicy.1.0.PhysicsLib
- Cpubpol.PhysicsLib.1.0
- Dpolicy.9abc54cf85be28fe.PhysicsLib
- ENo particular file name
20Which of the following is not an aspect of assembly binding that can be controlled by a publisher's policy?
- ABinding to an assembly with a different version number than the clients requests
- BBinding to an assembly with a different "friendly" name
- CBinding to the assembly in a non-default location
21What kind of thing is a Runtime Callable Wrapper (RCW)?
- AA .NET assembly
- BA strong name key file with either the .snk or the .pfx extension
- CA COM Type ibrary with the .tlb file extension
- DAn application configuration file with the .config file extension
22When a COM library such as WordPlay.dll is deployed on a computer, what administrative task must be performed before the library will work with any client (managed or unmanaged) on that computer?
- AThe library must be registered with the Windows System Registry
- BA COM Callable Wrapper (CCW) must be provided for the library
- CThe library must be installed in the Global Assembly Cache (GAC)
- DA Runtime Callable Wrapper (RCW) must be provided for the library
23What kind of file is a COM Callable Wrapper (CCW)?
- AAn application configuration file with the .config file extension
- BA .NET assembly with the .exe file extension
- CA .NET assembly with the .dll file extension
- DA COM type library with the .tlb file extension
24A Runtime Callable Wrapper (RCW) is used to:
- Aenable a managed (.NET) component to work with an unmanaged client
- Benable an managed component to be assigned a strong name
- Cenable a unmanaged (COM) component to work with an managed client
- Denable a managed (.NET) component to be shared in the Global Assembly Cache (GAC)
25A COM Callable Wrapper (CCW) is used to:
- Aenable a unmanaged (COM) component to work with an managed client
- Benable an unmanaged (COM) component to be assigned a strong name
- Cenable an unmanaged (COM) component to be shared in the Global Assembly Cache (GAC)
- Denable a managed (.NET) component to work with an unmanaged client
Informationen
- Beschreibung
- Component based programming .NET midterm quiz
- Autor
- BigDady313 .
- Sprache
- English
- Aufrufe
- 81
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz