Certification Questions

Q:

You develop an inventory management application called XYZManagement that will call a Microsoft SQL Server stored procedure named sp_GetDailyXYZSales. The stored procedure will run a query that returns your daily sales total as an output parameter. This total will be displayed to users in a message box.


Your application uses a SqlCommand object to run sp_GetDailyXYZSales. You write the
following code to call sp_GetDailyXYZSales:
SqlConnection cnn = new SqlConnection(myConnString);
SqlCommand cmd = new SqlCommand(“sp_GetDaily XYZ Sales”, cnn);
cmd.CommandType = CommandType.StoredProcedure;
SqlParameter prm = cmd.Parameters.Add(“@ItemTotal”,SqlDbType.Int);
prm.Direction = ParameterDirection.Output;
cnn.Open();
cmd.ExecuteNonQuery();


Now you must write additional code to access the output parameter. Which code segment should you use?

A) MessageBox.Show(?Total is: ? + cmd.Parameters[?@Output?].Value.ToString()); B) MessageBox.Show(?Total is: ? + cmd.Parameters[?@Output?].ToString());
C) MessageBox.Show(?Total is: ? + cmd.Parameters[?@ItemTotal? D) MessageBox.Show(?Total is: ? + cmd.Parameters[?@ItemTotal?
 
Answer & Explanation Answer: C) MessageBox.Show(?Total is: ? + cmd.Parameters[?@ItemTotal?

Explanation:

The @ItemTotal parameter is declared as an output parameter with SQL Server data type INT.We use the Value property of the SQLParameter class to retrieve the value of this parameter. We must also convert the INT value to a string value with the ToString method. We then supply this string to the MessageBox.Show method. 

 

Incorrect Answers


Option A, B:
The @ItemTotal parameter is the output parameter. Using @Output this way is incorrect. Output is a keyword and no variable named @Output has been declared.


Option D:
We must use the Value method to retrieve the value of the parameter..

Report Error

View Answer Report Error Discuss

1 2431
Q:

You want to create and format a simple volume on a Windows 2000 computer. Which tool should you use?

A) Disk Administrator B) Disk Management
C) The Convert.exe command -line utility D) The Format.exe command-line utility
 
Answer & Explanation Answer: B) Disk Management

Explanation:

Windows 2000 includes a powerful tool to manage disks - it's called Disk Management. You can use Disk Management to create and manage several different volume types on a Windows 2000 computer.

Report Error

View Answer Report Error Discuss

1 2420
Q:

What is the command to copy the startup-config filre to DRAM?

Answer

copy start run

Report Error

View answer Workspace Report Error Discuss

Subject: CCNA

1 2419
Q:

Which two operators are available when using wildcards in a query filter? (Choose two.)

A. Matches Pattern

B.  LIKE

C. Different from Pattern

D. Not equals Pattern

Answer

Answer : A , C

Report Error

View answer Workspace Report Error Discuss

Subject: SAP BW

2 2417
Q:

What port number is used for DHCP?

A) 67 B) 68
C) 69 D) Both A and B
 
Answer & Explanation Answer: D) Both A and B

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: CCENT

2 2417
Q:

What type of address translation can use only one address to allow thousands of hosts to be translated globally?

Answer

Port Address Translation (PAT), also called NAT Overload

Report Error

View answer Workspace Report Error Discuss

Subject: CCNA

0 2416
Q:

You provide technical support for a company with several locations. In a remote sales office, there are 5 Windows 2000 Professional computers. All computers are connected in a workgroup, as shown in the exhibit. (See the exhibit below). The manager's computer has a 56K dial up connection to the Internet. The manager calls and explains that she had enabled ICS (Internet Connection Sharing) on her computer. Once ICS had been enabled, none of the other users were able to access a shared folder on the manager's computer. What should you instruct her to do ?

 

A) Configure the dial-up connection to disable shared access. B) Configure the dial-up connection to disable on-demand dialing.
C) Disable data encryption in the new dial-up connection. D) Use the ipconfig command to release and renew your network TCP/IP address.
 
Answer & Explanation Answer: A) Configure the dial-up connection to disable shared access.

Explanation:
Report Error

View Answer Report Error Discuss

0 2416
Q:

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Communication Foundation (WCF) Data Services service. You discover that when an application submits a PUT or DELETE request to the Data Services service, it receives an error. You need to ensure that the application can access the service. Which header and request type should you use in the application?

A) an X-HTTP-Method header as part of a POST request B) an X-HTTP-Method header as part of a GET request
C) an HTTP ContentType header as part of a POST request D) an HTTP ContentType header as part of a GET request
 
Answer & Explanation Answer: A) an X-HTTP-Method header as part of a POST request

Explanation:
Report Error

View Answer Report Error Discuss

0 2413