Searching for "name"

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

Q:

You use Visual Studio .NET to develop a Windows-based application that interacts with a Microsoft SQL Server database. Your application contains a form named CustomerForm.

 You add the following design-time components to the form:

• SqlConnection object named XYZConnection.
• SqlDataAdapter object named XYZDataAdapter.
• DataSet object named XYZDataSet.
• Five TextBox controls to hold the values exposed by XYZDataSet.


At design time, you set the DataBindings properties of each TextBox control to the appropriate column in the DataTable object of XYZDataSet. When you test the application, you can successfully connect to the database. However, no data is displayed in any text boxes.

You need to modify your application code to ensure that data is displayed appropriately. Which behavior should occur while the CustomerForm.Load event handler is running?

A) Execute the BeginInit method of XYZDataSet. B) Execute the Open method of XYZConnection.
C) Execute the FillSchema method of XYZDataAdapter and pass in XYZDataSet. D) Execute the Fill method of XYZDataAdapter and pass in XYZDataSet.
 
Answer & Explanation Answer: D) Execute the Fill method of XYZDataAdapter and pass in XYZDataSet.

Explanation:

Dataset is a container; therefore, you need to fill it with data. You can populate a dataset by calling the Fill method of a data adapter.

Report Error

View Answer Report Error Discuss

Q:

You develop a Windows-based application that enables to enter product sales. You add a subroutine named XYZ.

 

You discover that XYZ sometimes raises an IOException during execution. To address this problem you create two additional subroutines named LogError and CleanUp. These subroutines are governed by the following rules:

• LogError must be called only when XYZ raises an exception.
• CleanUp must be called whenever XYZ is complete.

 

 You must ensure that your application adheres to these rules. Which code segment should you use?

A) try { XYZ(); LogError(); } catch (Exception e) { CleanUp(e); } B) try { XYZ(); } catch (Exception e) { LogError(e); CleanUp(); }
C) try { XYZ(); } catch (Exception e) { LogError(e); } finally { CleanUp(); } D) try { XYZ(); } catch (Exception e) { CleanUp(e); } finally { LogError(); }
 
Answer & Explanation Answer: C) try { XYZ(); } catch (Exception e) { LogError(e); } finally { CleanUp(); }

Explanation:

We must use a try…catch…finally construct. First we run the Comapany() code in the try block.Then we use the LogError() subroutine in the catch statement since all exceptions are handled here. Lastly we put the CleanUp() subroutine in the finally statement since this code will be executed regardless of whether an exception is thrown or not.

Report Error

View Answer Report Error Discuss

Q:

The Secondary wage type, Incoming wage types from previous period, is identified by a name starting with which of these strings?

A. /0...

B. /4...

C. /Z...

D. /3...

Answer

Answer : C , D

Report Error

View answer Workspace Report Error Discuss

Subject: SAP HR

Q:

What command will change the hostname of a router?

A) router#host name new name B) router(config-router)#hostname new name
C) router>host name new name D) router(config)#hostname new name
 
Answer & Explanation Answer: D) router(config)#hostname new name

Explanation:

Explanation: To specify or modify the host name for the network server, use the hostname command in global configuration mode.

Report Error

View Answer Report Error Discuss

Filed Under: CCENT

Q:

All hosts in the networks have been operational for several hours when the DHCP server goes down. What happens to the hosts that have obtained service from the DHCP server?

A. The hosts will not be able to communicate with any other hosts.
B. The hosts will continue to communicate normally for a period of time.
C. The hosts will be able to communicate with hosts outsides their own network
D. The hosts will only be able to communicate with other hosts by IP address not by host name

Answer

Answer : B


 


Explanation : Dynamic Host configuration Protocol – DHCP – assigns an IP address to a client for a limited period of time, this address is then saved in a database. When the DHCP Server goes down, that client can still use the allocated IP address for a limited period of time.

Report Error

View answer Workspace Report Error Discuss

Subject: CCNA

Q:

An administrator issues the command "ping 127.0.0.1" from the command line prompt on a PC host named PC1. If an ICMP reply is received, what does this confirm?

A. The PC host PC1 has connectivity with a local host
B. The PC host PC1 has connectivity with a Layer 3 device
C. The PC host PC1 has a default gateway correctly configured
D. The PC host PC1 has connectivity up to Layer 5 of the OSI model
E. The PC host PC1 has the TCP/IP protocol stack correctly installed

Answer

Answer : E

Report Error

View answer Workspace Report Error Discuss

Subject: CCNA

Q:

Logical puzzle

Four people are traveling to different places on different types of transport.
Their names are: Rachel, John, Mr. Jones and Cindy.
They either went on train, car, plane or ship.

* Mr. Jones hates flying
* Cindy has to rent her vehicle
* John gets seasick

Answer

Our Solution:    


  There are 3 possibilities


       Cindy: car
       Mr. Jones: train
       John: plane
       Rachel: ship


      Cindy: car
      Mr. Jones: ship
      John: plane
      Rachel: train


     Cindy: car
     Mr. Jones: ship
     John: train
     Rachel: plane

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles