Microsoft Certification Questions

Q:

You use Visual Studio .NET to create a Windows-based application. The application includes a form named XYZProcedures (EXP). EXP allows users to enter very lengthy text into a database. When users click the Print button located on EXP, this text must be printed by the default printer.

 

You implement the printing functionality by using the native .NET System Class Libraries with all default settings.

 

Users report that only the first page of the text is being printed.

How should you correct this problem?

A) In the BeginPrint event, set the HasMorePages property of the PrintEventArgs object to True. B) In the EndPrint event, set the HasMorePages property of the PrintEventArgs object to True.
C) In the PrintPage event, set the HasMorePages property of the PrintPageEventArgs object to True. D) In the QueryPageSettings event, set the HasMorePages property of the QueryPageSettingEventArgs object to True.
 
Answer & Explanation Answer: C) In the PrintPage event, set the HasMorePages property of the PrintPageEventArgs object to True.

Explanation:

PrintDocument.PrintPage Event occurs when the output to print for the current page is needed. This event has the HasMorePages property which gets or sets a value indicating whether an additional page should be printed.

Report Error

View Answer Report Error Discuss

0 1889
Q:

You are creating an ASP.NET page for a travel service. The page contains a CheckBoxList control that contains travel destinations. Customer can select favorite destinations to receive weekly e-mail updates of travel packages.

 

The CheckBoxList control is bound to a database table of possible destinations. Each destination is ranked according to its popularity. You modify the page to sort the destination list by rank, from the most popular to the least popular. The list has three columns.

 

You want the most popular destination to be on the top row of the check box list at run time. Which property setting should you use for the CheckBoxList control?

A) Set the RepeatDirection property to Vertical. B) Set the RepeatDirection property to Horizontal.
C) Set the RepeatLayout property to Flow. D) Set the RepeatLayout property to Table.
 
Answer & Explanation Answer: B) Set the RepeatDirection property to Horizontal.

Explanation:

The DataList.RepeatDirection property is used to get or select whether the DataList control displays vertically or horizontally. If this property is set to RepeatDirection.Horizontal, the items in the list are displayed in rows loaded from left to right, then top to bottom, until all items are rendered.

 

Incorrect Answers:

A: If the DataList.RepeatDirection property is set to RepeatDirection.Vertical, the items in the list are displayed in columns loaded from top to bottom, then left to right, until all items are rendered.


C, D:DataList.RepeatLayout Property gets or sets whether the control is displayed in a table or flow layout. It does not affect the order in which the items are displayed.

Report Error

View Answer Report Error Discuss

0 1888
Q:

You are choosing a windows 2000 operating system to use on a new computer at your company. This new computer will be used exclusively as a network file server. Which operating system should you use choose?

A) Windows 2000 professional B) Windows 2000 Server
C) Windows 2000 Advanced Server D) Windows 2000 Datacenter Server
 
Answer & Explanation Answer: B) Windows 2000 Server

Explanation:

Windows 2000 server is optimized for use on network file, print , application and Web servers.

Report Error

View Answer Report Error Discuss

0 1886
Q:

A large CRM project took place last year included hundreds of meetings between the various key users. All of the conversations were save in a single Word 2010 document. You need to find all instances of the following words 'bleed' and 'bled'. Which of the following wildcard searches would be best?

A) ble{2}d B) ble{1,}d
C) ble{e2}d D) ble[e2]d
 
Answer & Explanation Answer: B) ble{1,}d

Explanation:
Report Error

View Answer Report Error Discuss

1 1876
Q:

You are setting up a computer for students to use to practice exercises for their certification exams. You want to configure the computer so that users can boot into both Windows 98 and Windows 2000 Professional. You want to ensure that students can access all drive resources from either operating system. What should you do?

A) Create a single FAT32 partition. B) Create a single NTFS volume.
C) Configure one NTFS volume, and one extended FAT32 partition. D) Configure a dynamic volume.
 
Answer & Explanation Answer: A) Create a single FAT32 partition.

Explanation:
Report Error

View Answer Report Error Discuss

0 1872
Q:

You use Visual Studio .NET to create an assembly, called XYZAssembly, that will be used by other applications, including a standard COM client application.


You must deploy your assembly on the COM application to a client computer. You must ensure that the COM application can instantiate components within the assembly as COM components.

What should you do?

A) Create a strong name of the assembly by using the Strong Name tool (Sn.exe). B) Generate a type library for the assembly by using the Type Library Importer (Tlbimp.exe). Register the file on the client computer.
C) Generate a registry file for the assembly by using the Assembly Registration tool (Regasm.exe) Register the file on the client computer. D) Deploy the assembly to the global assembly cache on the client computer. Add a reference to the assembly in the COM client application.
 
Answer & Explanation Answer: C) Generate a registry file for the assembly by using the Assembly Registration tool (Regasm.exe) Register the file on the client computer.

Explanation:

The Assembly Registration tool reads the metadata within an assembly and adds the necessary entries to the registry, which allows COM clients to create .NET Framework classes transparently. Once a class is registered, any COM client can use it as though the class were a COM class..

 

Incorrect Answers:

Option A:
The Strong Name tool helps sign assemblies with strong names.


Option B:
The Type Library Importer, tlbimp.exe, converts the type definitions found within a COM type library into equivalent definitions in a common language runtime assembly. It would not be useful in this scenario however.


Option D:
This would not allow the COM application to use the class.

Report Error

View Answer Report Error Discuss

0 1860
Q:

You are choosing a file system for your Windows 2000 Server computer. You need this computer to support file compression, and you don't need to dual boot this computer between Windows 2000 Server and any other operating system. Which file system should you choose?

A) FAT B) FAT32
C) HPFS D) NTFS
 
Answer & Explanation Answer: D) NTFS

Explanation:

NTFS is the only file system supported by Windows 2000 that supports file compression.

Report Error

View Answer Report Error Discuss

0 1860
Q:

You get a great deal on a refurbished laser printer. The printer is plug and play compliant and connects to your USB port. The printer is on the current Windows 2000 Hardware Compatibility List (HCL). You install the printer and run the manufacturers setup program. During the installation, you receive the error shown in the exhibit (See the exhibit below). What should you do?

A) Change the USB port setting to enable legacy Plug and Play detection. B) Configure the USB port to Disable Error Detection.
C) Connect the printer as a shared device on a non-Windows 2000 computer. D) Install the WDM-compliant device drivers using the Add New Hardware wizard.
 
Answer & Explanation Answer: D) Install the WDM-compliant device drivers using the Add New Hardware wizard.

Explanation:
Report Error

View Answer Report Error Discuss

0 1857