Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free GIAC GSSP-NET-CSHARP Practice Exam with Questions & Answers | Set: 13

Questions 121

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?

Options:
A.

SqlParameter Parm1;

Parm1 = Cmd1.Parameters.Add("@NoOfOrders", SqlDbType.Int);

Parm1.Direction = ParameterDirection.InputOutput;

B.

SqlParameter Parm1;

Parm1 = Cmd1.Parameters.Add("@NoOfOrders", SqlDbType.Int);

Parm1.Direction = ParameterDirection.Output;

C.

SqlParameter Parm1;

Parm1 = Cmd1.Parameters.Add("@NoOfOrders", SqlDbType.Int);

Parm1.Direction = ParameterDirection.ReturnValue;

D.

SqlParameter Parm1;

Parm1 = Cmd1.Parameters.Add("@NoOfOrders", SqlDbType.Int);

GIAC GSSP-NET-CSHARP Premium Access
Questions 122

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?

Options:
A.

AnonymousIdentificationModule

B.

FormsAuthenticationModule

C.

UrlAuthorizationModule

D.

FileAuthorizationModule

Questions 123

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.

Options:
A.

RequiredFieldValidator

B.

RangeValidator

C.

CompareValidator

D.

RegularExpressionValidator

E.

RequiredValidator

Questions 124

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?

Options:
A.

The variable will be available as long as a user interacts with it.

B.

The variable will be available forever.

C.

The variable will be available even after the session becomes inactive.

D.

The variable will be available as long as the session is active.

Questions 125

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?

Options:
A.

Regasm.exe

B.

Sn.exe

C.

Mscorcfg.msc

D.

Regsvcs.exe

Questions 126

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?

Options:
A.

Use a WaitCallBack delegate to synchronize the threads.

B.

Call the sleep() method of thread1.

C.

Call the SpinWait() method of thread1.

D.

Configure thread1 to run at a lower priority.

E.

Configure thread2 to run at a higher priority.

Questions 127

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?

Options:
A.

Use a RichTextBox control and create a regular expression to validate the format.

B.

Use a TextBox control and bind it to a string that has the required format.

C.

Use a MaskedTextBox control and create a mask to validate the format.

D.

Use a TextBox control and create a regular expression to validate the format.

Questions 128

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.

Options:
A.

public class MySoapFilter : SoapFilter

{

string soapmsg="This is the soap message I want to filter";

public MySoapFilter()

{ }

public override SoapFilterResult ProcessMessage(SoapEnvelope envelope)

{

this.Trace(soapmsg);

return SoapFilterResult.Continue;

}

}

B.

public class MySoapFilter : SoapFilter

{

string soapmsg="This is the soap message I want to filter";

public override SoapFilterResult ProcessMessage(SoapEnvelope envelope)

{

this.Trace(soapmsg);

return SoapFilterResult.Continue;

}

}

C.

public class MySoapFilter : SoapFilter

{

string soapmsg="This is the soap message I want to filter";

public override SoapFilterResult ProcessMessage(SoapEnvelope envelope)

{

this.Trace();

return SoapFilterResult.Continue;

}

}

D.

public class MySoapFilter : SoapFilter

{

string soapmsg="This is the soap message I want to filter";

public MySoapFilter()

{ }

public override SoapFilterResult ProcessMessage(SoapEnvelope envelope)

{

this.Trace(soapmsg);

return SoapFilterResult;

}

}

Questions 129

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?

Options:
A.

Configure the server class as a Singleton Activated Object (SAO) and check for duplicate client delegate methods before raising the event.

B.

Configure the server class as a Client Activated Object (CAO) and override the CreateObjRef method to check for duplicate client delegate methods before raising the event.

C.

Configure the server class as a SingleCall Activated Object (SAO) and check for duplicate client delegate methods before raising the event.

D.

Configure the server class as a Client Activated Object (CAO) and check for duplicate client delegate methods before raising the event.

Questions 130

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.

Options:
A.

thd.Start(101);

B.

ParameterizedThreadStart tStart; tStart = new ParameterizedThreadStart(ProcAmount);

Thread thd = new Thread(tStart);

C.

thd.Start();

D.

ThreadStart tStart = new ThreadStart(ProcAmount);

Thread thd = new Thread(tStart, 101);

GIAC Related Exams

How to pass GIAC G2700 - GIAC Certified ISO-2700 Specialist Practice Test Exam
How to pass GIAC GCFW - GIAC Certified Firewall Analyst Exam
How to pass GIAC GCPM - GIAC Certified Project Manager Certification Practice Test Exam
How to pass GIAC GISF - GIAC Information Security Fundamentals Exam
How to pass GIAC GISP - GIAC Information Security Professional Exam
How to pass GIAC GSSP-.NET - GIAC GIAC Secure Software Programmer - C#.NET Exam
How to pass GIAC GSSP-Java - GIAC Secure Software Programmer – Java Exam

GIAC Free Exams

GIAC Free Exams
Prepare for GIAC certification with free access to reliable study resources and practice tests at Examstrack.