Pass the GIAC GIAC Certification GSSP-.NET Questions and answers with CertsForce

Viewing page 3 out of 14 pages
Viewing questions 21-30 out of questions
Questions # 21:

You work as an Enterprise Application Developer for SunInfo Inc. The company uses Visual Studio 2008 as its application development platform. You create a Web application using .NET Framework 3.5. You use cross-page posting to redirect users to another page. You want to access the public property values from the source page in the target page. Which of the following actions can you perform to accomplish the task?

Each correct answer represents a complete solution. Choose all that apply.

Options:

A.

Include an @PreviousPageType directive in the target page. Set the VirtualPath attribute to the path of the source page and set the TypeName attribute to the type name of the previous page.


B.

Include an @Master directive in the target page.


C.

Include an @PreviousPageType directive in the target page and set the VirtualPath attribute to the path of the source page.


D.

Include an @Register directive in the target page that references the source page.


Questions # 22:

You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create a Windows application using .NET Framework 2.0. The application allows computer engineers to design circuit boards for different types of hardware. You create a custom control that represents the design surface. You are required to highlight the vacant areas on the design surface where a component can be dropped. Which of the following events will you use to accomplish this task?

Options:

A.

DragOver


B.

QueryContinueDrag


C.

DragEnter


D.

DragLeave


Questions # 23:

Jackson works as a Programmer for a life insurance company. He creates an application named App1 using Visual Studio .NET. App1 uses a SQL Server database named Database1. Jackson creates a SqlDataAdapter object named Data1 in App1. Jackson wants to ensure that the performance of App1 improves. Which of the following objects will he use in conjunction with the Data1 object when connecting to Database1?

Each correct answer represents a part of the solution. Choose two.

Options:

A.

SqlConnection


B.

OleDbConnection


C.

SqlDataReader


D.

SqlCommand


Questions # 24:

You work as a Software Developer for ManSoft Inc. The company has several branches worldwide. The company uses Visual Studio.NET 2005 as its application development platform. You create an application that will be used by all the branches of the company. You want to use declarative attributes that configure security for a serviced component of the application. Which of the following attributes will you use in order to support component, interface, or method level role checks?

Options:

A.

SecureMethod


B.

ComponentAccessControl


C.

SecurityRole


D.

ApplicationAccessControl


Questions # 25:

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You are creating an assembly. The assembly contains a public method. The Global Assembly Cache contains a second assembly. You require that the public method is only called from the second assembly. Which of the following permission classes will you use to accomplish this task?

Options:

A.

DataProtectionPermission


B.

DBDataPermission


C.

StrongNameIdentityPermission


D.

GacIdentityPermission


E.

PublisherIdentityPermission


Questions # 26:

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2008 as its application development platform. You are creating an ASP.NET Web application using the .NET Framework 3.5. The application stores sensitive profile data in a MS SQL Server 2008 database. You are required to make sure that the profile data never stored in clear text. What will you do?

Options:

A.

Create a strongly typed custom ProfileProvider class. In the ProfileProvider class, encrypt the provided information before storing it in the database.


B.

Use the ASP.NET IIS Registration Tool to encrypt the connection string to connect to the SQL Server database.


C.

Create a custom profile provider. In the custom provider, encrypt the provided information before storing it in the database.


D.

Enable the SSL encryption for the SQL Server connections.


Questions # 27:

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. The application needs a thread that accepts an integer parameter. You write the following code segment in the application:

Thread myThread = new Thread(new ParameterizedThreadStart(doWork));

myThread.Start(125);

You are required to declare the signature of the doWork method. Which of the following method signatures will you use?

Options:

A.

public void doWork(int nCount)


B.

public void doWork(Object oCount)


C.

public void doWork()


D.

public void doWork(Delegate oCount)


Questions # 28:

Peter works as a Software Developer for PaulTech Inc. He develops an application for office management, using Visual C# .NET. He creates an OleDbConnection object, named Pcon. He wants to create an OleDbCommand object to retrieve employee details. Which of the following statements will Peter use to set the CommandText and Connection properties to accomplish the required task?

Each correct answer represents a part of the solution. Choose three.

Options:

A.

OleDbCommand PCommand = new OleDbCommand("sp_GetDetails", PCon);


B.

PCommand.CommandType = "SELECT * FROM Employees";


C.

PCommand.Connection = Pcon;


D.

PCommand.CommandText = "SELECT * FROM Employees";


E.

PCommand.SetConnection (PCon);


F.

OleDbCommand PCommand = new OleDbCommand();


Questions # 29:

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. You have recently finished development of an application using .NET Framework. The application used two threads named threadOne and threadTwo. You are required to modify the code of the application to prevent the execution of threadOne until threadTwo completes execution. What will you do to accomplish this task?

Options:

A.

Use a WaitCallback delegate to synchronize the threads.


B.

Configure threadTwo to run at a higher priority.


C.

Configure threadOne to run at a lower priority.


D.

Call the Sleep method of threadOne.


E.

Call the SpinLock method of threadOne


Questions # 30:

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create an ASP.NET Web application using .NET Framework 3.5. You create a Web form in the application that permits users to provide personal information. You add a DropDownList control to the Web form to retrieve the residential status of users. The default item that the DropDownList control displays is the "Select Country" option. You have to ensure that users select a country other than the default option. Which of the following validation controls should you use to accomplish this task?

Options:

A.

RangeValidator


B.

RequiredFieldValidator


C.

CustomValidator


D.

RegularExpressionValidator


Viewing page 3 out of 14 pages
Viewing questions 21-30 out of questions