Pass4itsure > GIAC > GIAC Information Security > GSSP-NET > GSSP-NET Online Practice Questions and Answers

GSSP-NET Online Practice Questions and Answers

Questions 4

You work as a Software Developer for ABC Inc. The company has several branches worldwide. The company uses Visual Studio .NET 2005 as its application development platform. You are creating an application using .NET Framework 2.0. The application will be used by all the branches of the company. You are using the CompareInfo class for culture-sensitive string comparisons. You write the following code in the application:

String s1 = "C rtify";

String s2 = "c rtify";

String s3 = "c rtify";

You need to compare the s1 string with the s2 string and ensure that the string comparison must ignore case. Which of the following code segments will you use to accomplish the task?

A. CompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo; Console.WriteLine(cmp.Compare(s1, s2, CompareOptions.IgnoreCase));

B. CompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo; Console.WriteLine(cmp.Compare(s1, s2, CompareOptions.None));

C. CompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo; Console.WriteLine(cmp.Compare(s1, s2, CompareOptions.Ordinal));

D. CompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo; Console.WriteLine(cmp.Compare(s1, s2, CompareOptions.OrdinalIgnoreCase));

Buy Now
Questions 5

John works as a Web developer for HiTech Inc. He develops an application named MyApp by using Visual C# .NET. John uses a SQL Server database. He writes the following code:

OleDbCommand cmd = new OleDbCommand();

cmd.CommandText = "UPDATE Employees SET Rank = 'Senior' WHERE Basic > 10000";

cmd.ExecuteNonQuery();

Now he wants to improve the performance of the program code. Which of the following actions will he perform to accomplish the task?

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

A. Use database indexing.

B. Use an OleDbDataReader object to execute the program code.

C. Use a Cache object to execute the program code.

D. Use a SqlCommand object instead of an OleDbCommand object.

E. Use a stored procedure instead of the CommandText property.

F. Use the Prepare method on the OleDbCommand object before executing the program code.

Buy Now
Questions 6

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 the development of an ASP.NET Web application using .NET Framework 3.5. The application must be deployed by using the http://www.ABC.com/ URL. The application has several Web forms.

You need to implement Really Simple Syndication (RSS) feeds functionality. The RSS feeds will be used by the http://www.ABC.com/Updates.rss URL. You must ensure that the application displays the RSS-formatted information when accessing the given URL. What will you do to accomplish this?

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

A. Create and register a custom HttpHandler class that releases the RSS feeds.

B. Create a Web form named Updates that releases the RSS feeds.

C. Create an ASMX Web service component named Updates.

D. Add the HttpHandler class to the .rss extension.

E. Create and register a custom HttpModule class.

Buy Now
Questions 7

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. You create an application using the .NET Framework. You need to use the regular expressions to provide a concise and flexible means for identifying strings of text of interest, such as particular characters, words, or patterns of characters. Which operation will you use to construct the regular expressions?

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

A. Quantification

B. Grouping

C. Alternation

D. Phishing

Buy Now
Questions 8

You work as a Software Developer for ABC Inc. The company has several branches worldwide. The company uses Visual Studio.NET 2005 as its application development platform. You are creating an application using .NET Framework 2.0. You want to authenticate users before using the application. Therefore, you decide to use the authentication method that uses encryption to authenticate users. What will you do to accomplish the task?

A. Use the FileAuthorizationModule class

B. Use the Windows authentication provider

C. Use Forms authentication provider

D. Use Passport authentication provider

Buy Now
Questions 9

You work as a Software Developer for ABC Inc. The company has several branches worldwide. The company uses Visual Studio.NET 2005 as its application development platform. You are creating an application using .NET Framework 2.0. The application will be used by all the branches of the company. You sometimes require a variable number of arguments to be passed to a method. For example, you may require a sum method, which calculates the total of the numbers passed to it no matter how many numbers are passed. What will you do to accomplish the task?

A. Use the out keyword.

B. Use the base keyword.

C. Use the volatile keyword.

D. Use the params keyword.

E. Use the ref keyword.

Buy Now
Questions 10

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. You are creating an application that will perform statistics calculations using .NET Framework. You want to ensure that the application is capable of performing multiple calculations concurrently. What will you do to accomplish the task?

A. Set the Process.GetCurrentProcess().BasePriority property to High.

B. Set the ProcessorAffinity property of the ProcessThread class object.

C. For every calculation, call the QueueUserWorkItem method of the ThreadPool class.

D. Set the IdealProcessor property of the ProcessThread class object.

Buy Now
Questions 11

Julia works as a Software Developer for Mansoft Inc. She develops an application using Visual Studio .NET. The application uses a method named MyMethod, which is located in an unmanaged DLL. Julia wants MyMethod to require the application to allocate unmanaged memory, fill the data, and pass the memory address to the application. She also wants to ensure that on returning from MyMethod, the application de-allocates the unmanaged memory. What will Julia do to accomplish the task?

A. Use the methods of the MemoryStream class.

B. Derive a new class from the Stream class, and override the allocation methods.

C. Use the Marshal class.

D. Use a byte array.

Buy Now
Questions 12

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?

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

Buy Now
Questions 13

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.

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();

Buy Now
Exam Code: GSSP-NET
Exam Name: GIAC GIAC Secure Software Programmer - C#.NET
Last Update: Apr 30, 2024
Questions: 491
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$45.99

VCE

$49.99

PDF + VCE

$59.99