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

Viewing page 10 out of 15 pages
Viewing questions 91-100 out of questions
Questions # 91:

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 # 92:

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 ReceiveSecurityFilter class in the Web service to handle the receiving and securing of SOAP messages. 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 MyReceiveSecurityFilter : ReceiveSecurityFilter

{

public MyReceiveSecurityFilter(string service, Boolean client)

{

base(service, client);

}

public override void ValidateMessageSecurity(SoapEnvelope envelope, Security security)

{

// Implementation validation here

}

}


B.

public class MyReceiveSecurityFilter : ReceiveSecurityFilter

{

public MyReceiveSecurityFilter(string service, Boolean client) : base(service, client)

{ }

public override void ValidateMessageSecurity(SoapEnvelope envelope, Security security)

{

// Implementation validation here

}

}


C.

public class MyReceiveSecurityFilter : ReceiveSecurityFilter

{

public MyReceiveSecurityFilter(string service, Boolean client)

{ }

public override void ValidateMessageSecurity(SoapEnvelope envelope, Security security)

{

// Implementation validation here

}

}


D.

public class MyReceiveSecurityFilter : ReceiveSecurityFilter

{

public MyReceiveSecurityFilter(string service, Boolean client) : base(service, client)

{ }

public void ValidateMessageSecurity(SoapEnvelope envelope, Security security)

{

// Implementation validation here

}

}


Questions # 93:

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 the .NET Framework.

You create a database to maintain the record of the students. You create a table named Student. You want to retrieve names and roll number of those students whose age is less than ten years. An instance of the SqlCommand class named StudentCommand is already created. Which of the following code segments should you use to execute the query?

Options:

A.

StudentCommand.CommandType = CommandType.StoredProcedure;

StudentCommand.CommandText = "Name and Roll number of students less than ten years";


B.

StudentCommand.CommandType = CommandType.StoredProcedure;

StudentCommand.CommandText = "SELECT Name, Roll number FROM Student WHERE Age <

10";


C.

StudentCommand.CommandType = CommandType.Text;

StudentCommand.CommandText = "SELECT Name, Roll number FROM Student WHERE Age <

10";


D.

StudentCommand.CommandText = CommandText.Text;

StudentCommand.CommandType = "SELECT Name, Roll number FROM Student WHERE Age <

10";


Questions # 94:

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2008 as its application development platform. You have recently finished development of an ASP.NET Web application using the .NET Framework 3.5. You host the application on a Web farm that consists of three Web servers. You should configure the ASP.NET application for session state to meet the following requirements:

l Session state data should not be lost if a server fails.

l Session state must be maintained across browser requests by the same user.

You are required to configure the Web.config file to meet these requirements. Which of the following configurations will you use?

Options:

A.


B.


C.


D.


Questions # 95:

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 # 96:

You work as a Web Application Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create a Web application using the .NET Framework.

The application uses a MS SQL server database. The application creates and manages online advertising campaigns. You need the Web application to track the effectiveness of the forthcoming campaigns by evaluating advertising results with operation parameters. This necessitates adding a Web form that executes the following tasks:

l It uses a target URL for all online advertising.

l It logs the referrer URLs.

l It offers live reporting of referral data.

You are required to find out the most effective storage mechanism to log the referral data. What will you do?

Options:

A.

Use an application log.


B.

Use a standalone application file.


C.

Use HTTP modules


D.

Use a database.


E.

Use a text file.


Questions # 97:

Emily works as a Programmer in an Eye Research Center. The center keeps several records such as case history records for old patients and newly admitted patients, and records for outdoor patients. The Head of the Research Center wants Emily to generate reports for each outdoor patient with minimum network traffic. Emily develops an application named OutdoorPatientReport by using Visual Studio .NET. She needs to utilize the data repository as maintained by the center.

She wants to ensure that the application is displayed to all the doctors. Which of the following actions will Emily take to accomplish this task?

Options:

A.

Use Microsoft SQL Server stored procedures for data calculations.


B.

Implement a batch processing system for data calculations.


C.

Create more than one database for data manipulations.


D.

Use SQL Server indexes to optimize data calculations.


Questions # 98:

Kathy works as a Software Developer for BlueWell Inc. She creates a serviced component named

Com1. She wants to ensure that all the employees of the company are able to use Com1. Therefore, she wants to install Com1 in the Global Assembly Cache (GAC). Before the installation, she wants to register the serviced component manually with COM+. Which of the following tools will Kathy use to register Com1?

Options:

A.

Al.exe


B.

Regsvcs.exe


C.

Regasm.exe


D.

Mscorcfg.msc


Questions # 99:

Sophia works as a Software Developer for BlueWell Inc. She creates a component, named MyComp, using Visual Studio .NET. MyComp includes a method named MyMethod1, which is used to process user requests. MyMethod1 calls a private method, named MyMethod2. Sophia wants to ensure that if an error occurs during the execution, the exceptions encountered by MyMethod2 are caught and passed on to MyMethod1 for exception handling. Which of the following combinations of the exception handler should she use to accomplish the task?

Options:

A.

try, catch, and throw


B.

catch, finally, and throw


C.

try, catch, and finally


D.

try and throw


Questions # 100:

You work as a Web Application Developer for SunInfo Inc. The company uses Visual Studio 2008 as its application development platform. You create a Windows Forms application using .NET Framework 3.5. You add a button control to a form named form1. You want to retrieve more information about the mouse event. You use the MouseClick event in your application. Which of the following parameters will you pass to the event handler of the MouseClick event?

Options:

A.

An object parameter representing the sender of the event and an instance of KeyEventArgs


B.

An object parameter representing the sender of the event and an EventArgs parameter


C.

An object parameter representing the sender of the event and an instance of KeyPressEven tArgs


D.

An object parameter representing the sender of the event and an instance of MouseEventA rgs


Viewing page 10 out of 15 pages
Viewing questions 91-100 out of questions