John works as a Web Developer for ABC Inc. He develops an ASP.NET application, named MyApp1, using Visual Studio .NET. MyApp1 uses a Microsoft SQL Server 2000 database, named Database1. Database1 contains a table, named Orders, that stores the order details. In Database1, he creates a stored procedure, named Proc1, as follows:
CREATE PROCEDURE [Proc1] AS
Return (Select Count(*) from Orders)
The Proc1 stored procedure returns a count of the number of rows in the Orders table. MyApp1 includes a page, named Page1.aspx. In the Page1_Load event handler, John writes the following code to call the stored procedure:
string Str1;
SqlConnection Con;
SqlCommand Cmd1;
Str1 = "Server=TestPro1;Database=Database1;uid=sa;pwd=;";
Con = new SqlConnection(Str1);
Cmd1 = new SqlCommand("Proc1", Con);
Cmd1.CommandType = CommandType.StoredProcedure;
John wants to create an instance of the SqlParameter class that represents the return value from the Proc1 stored procedure. Which of the following code will he use to accomplish the task?
David works as a Software Developer for GenTech Inc. He develops a Web application named
WebApp, which displays the monthly inventory reports of the company. The company's management wants only employees in the Sales Department to have access to WebApp. They will have to be authenticated with a valid username and password. David wants to implement an authorization strategy in the application, which will require the Windows authentication mode of Web security. Which of the following modules will David use to accomplish the task?
Mark works as a Web Developer for TechCom Inc. He creates an ASP.NET application named
Application1 by using Visual Studio .NET. Only registered users of the company will be able to use the application. The application contains a page named UserAcc.aspx that allows new users to register themselves to the registered users' list of the company. The UserAcc page contains several text box controls that accept users' personal details such as user name, password, home address, zip code, phone number, etc. One of the text box controls on the page is named ZipProperty in which a user enters a zip code.
Mark wants to ensure that when a user submits the UserAcc page, ZipProperty must contain five numeric digits. Which of the following validation controls will he use to accomplish the task?
Each correct answer represents a complete solution. Choose two.
Maria works as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. She creates a Web service and uses a Session object in it. She declares a variable in the Session object. What will be the scope of the variable?
Mario works as a Software Developer for BlueWell Inc. He develops an application, named App1, by using Visual Studio .NET. He deploys the application on a client computer. He wants to use the existing assembly named Assembly1. However, Assembly1 needs to be configured in the global assembly cache so that App1 is able to use it. He wants to ensure that the application data transferred to and from the server to the client computer is well secured. Which of the following tools will Mario use to accomplish the task?
You work as a Software Developer for ABC Inc. You have created a console application that uses two threads, named thread1 and thread2. You need to modify the code to prevent the execution of thread1 until thread2 completes its execution. Which of the following steps will you take to accomplish this task?
You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a Windows application using .NET Framework 3.5. The application captures account information. The account number has the following specifications:
l It holds literal and input characters of the alphanumeric type.
l It has a predefined format.
You must ensure that the account number is in the correct format. You must also ensure that only input characters are accepted from users. What will you do?
You work as a Software Developer for ManSoft Inc. You use Microsoft Visual Studio to create a Web service named MyWebService. You create a SOAP message that is not secure in the Web service. You want to use the SoapFilter class in the Web service to filter the SOAP message. Which of the following code segments will you use to accomplish the task?
Each correct answer represents a part of the solution. Choose all that apply.
You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You create a remoting application that provides stock information to customers using .NET Framework. The server component raises an event on the client computer when certain conditions are met. You must ensure that the server raises exactly one event for each client application that is registered for the event. What will you do to accomplish this task?
You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a Windows Forms application using .NET Framework 3.5. You need to execute a method named ProcAmount in the background of the application. The method requires that an integer value 101 is passed to it. You are required to pass an integer value 101 to start a background thread. Which of the following code segments should you use?
Each correct answer represents a part of the solution. Choose two.
PDF + Testing Engine
|
---|
$66 |
Testing Engine
|
---|
$50 |
PDF (Q&A)
|
---|
$42 |
GIAC Free Exams |
---|
![]() |