Practice Questions

Question 1

You want to package a shared assembly for distribution. Which of the templates would be best for doing this?

  • A. Cab project

  • B. Merge Module project

  • C. Setup project

  • D. Web Setup project

A1:

Answer B is correct. A Merge Module project is used to create a redistributable package that includes shared components or assemblies. Answers A and D are incorrect because Cab and Web Setup projects are used to package ActiveX controls and Web applications for a Web server. Answer C is incorrect because Setup projects are used to create Windows Installer packages for application distribution.

Question 2

After you build a Setup project, which files will be present in the \bin\Release folder of the project? [Select all that apply.]

  • A. EXE

  • B. INI

  • C. MSI

  • D. TXT

A2:

Answers A, B, and C are correct. The Setup project will produce the installer package ( .msi ), initialization files ( .ini ), and any additional executable files ( .exe ) needed. Text files ( .txt ) are not produced directly by this process. Therefore, answer D is incorrect.

Question 3

When an application package is deployed as an MSI file to a user accessing the package through a network file share, what components must be loaded first? [Select all that apply.]

  • A. .NET Framework on the server

  • B. .NET Framework on the workstation

  • C. Windows Installer on the server

  • D. Windows Installer on the workstation

A3:

Answers B and D are correct. Both the .NET Framework and Windows Installer components must be installed on the user's workstation before the installer package ( .msi ). Because all installation processing is performed on the workstation, neither component is specifically required on the server. Therefore, answers A and C are incorrect.

Question 4

Which Setup project configuration option would be used to specify the creation of cabinet files no larger than 1.4MB to fit your application on multiple floppy disks?

  • A. Bootstrapper

  • B. Compression

  • C. Package Files

  • D. Output File Name

A4:

Answer C is correct. The Package Files option allows you to specify the type of file to be generated, including the maximum size for generated cabinet ( .cab ) files. The Bootstrapper option is used to specify whether the distributable application should carry a copy of the Windows Installer package with it for installation first if the destination system lacks the utility. Therefore, answer A is incorrect. Answer B is incorrect because the Compression option is used to specify whether the installer package should be compressed to make the file smaller or to speed up its installation. The Output File Name option is used to specify the name for the generated installer package. Therefore, answer D is incorrect.

Question 5

Which editor should be used in order to automatically create a shortcut icon for your application within the installation user's desktop?

  • A. Custom Actions

  • B. Launch Conditions

  • C. File Types

  • D. File System

  • E. User Interface

A5:

Answer D is correct. The File System Editor allows you to specify shortcuts and icons mapped to user-relative paths, such as the user's desktop. Answer A is incorrect because the Custom Actions Editor is used to configure additional installation actions to be taken that are not directly a part of the installation itself. The Launch Conditions Editor is used to specify conditions that must be met before installation can occur. Therefore, answer B is incorrect. Answer C is incorrect because the File Types Editor is used for file type association between the application and files of the type it should handle. The User Interface Editor is used to configure dialog boxes that will be presented to the user during the package installation. Therefore, answer E is incorrect.

Question 6

During which stages of installation can you associate custom actions? [Select all that apply.]

  • A. Start

  • B. Install

  • C. Process

  • D. Commit

  • E. Uninstall

A6:

Answers B, D, and E are correct. The Custom Actions Editor can be used to specify actions taken during the Install, Commit, Rollback, and Uninstall phases of installation. Answers A and C are incorrect because these are user interface stages rather than installation phases.

Question 7

A strong name must include which of the following elements? [Select all that apply.]

  • A. Authenticode signing

  • B. Culture information

  • C. Digital signature

  • D. Version

  • E. Text name

A7:

Answers B, C, D, and E are correct. An assembly's strong name must include a text name, version number, culture information, and a unique digital signature created from the hashed value of the application. Authenticode signing may also be added to allow third-party verification of an assembly's source, but it's not required for the strong name. Therefore, answer A is incorrect.

Question 8

For delay signing, which key(s) would be used to sign the assembly initially?

  • A. Public key

  • B. Private key

  • C. Both keys

  • D. Hashed key

A8:

Answer A is correct. In delay signing, the public key is used to sign the assembly during development. The private key would be used later to sign the assembly for deployment. Therefore, answers B and C are incorrect. Answer D is incorrect because the hashed value is used along with the signing key to create the final digital signature.

Question 9

Which methods may be used in order to register a shared assembly within the GAC? [Select all that apply.]

  • A. Global Assembly Cache tool

  • B. Internet Explorer

  • C. .NET Framework Configuration tool

  • D. Windows Explorer

  • E. Windows Installer

A9:

Answers A, C, D, and E are correct. An assembly can be registered in the Global Assembly Cache through the Global Assembly Cache Tool ( GacUtil.exe ), the .NET Framework Configuration Tool, Windows Explorer, and the Windows Installer. Answer B is incorrect because URL remoting of an application by using Internet Explorer will register an application within the user's download cache, rather than the machine's GAC.

Question 10

Which zone should you edit in order to allow the execution of an assembly identified by a URL within the same subnet as the client?

  • A. My_Computer_Zone

  • B. My_Network_Zone

  • C. LocalIntranet_Zone

  • D. Internet_Zone

A10:

Answer C is correct. LocalIntranet_Zone is used for URLs within the same network. Answer A is incorrect because My_Computer_Zone is only used for paths local to the user's system. My_Network_Zone doesn't exist. Therefore, answer B is incorrect. Internet_Zone is used for URLs outside of the local network. Therefore, answer D is incorrect.



Developing and Implementing WindowsR-based Applications with Visual BasicR. NET and Visual StudioR. NET Exam CramT 2 (Exam 70-306)
Developing and Implementing WindowsR-based Applications with Visual BasicR. NET and Visual StudioR. NET Exam CramT 2 (Exam 70-306)
ISBN: N/A
EAN: N/A
Year: 2002
Pages: 188

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net