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 ManSoft Inc. The company uses Visual Studio.NET 2005 as its application development platform. You have recently created an application that includes the code shown below.

string str1 = "ABC";

string str2 = "u";

str2 += "Certify";

Console.WriteLine(str1 == str2);

Console.WriteLine((Object) str1 == (Object) str2);

Console.WriteLine(str1.Equals(str2));

What will be the output of the above code?

A. False False

False

B. False True False

C. True True True

D. True False True

Buy Now
Questions 5

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 SendSecurityFilter class in the Web service to handle the transmission 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.

A. public class MySendSecurityFilter : SendSecurityFilter { public MySendSecurityFilter(string service, Boolean client) { } public override void SecureMessage(SoapEnvelope envelope, Security security) { // Implement validation here } }

B. public class MySendSecurityFilter : SendSecurityFilter { public MySendSecurityFilter(string service, Boolean client) { base(service,client); } public override void SecureMessage(SoapEnvelope envelope, Security security) { // Implement validation here } }

C. public class MySendSecurityFilter : SendSecurityFilter { public MySendSecurityFilter(string service, Boolean client) : base(service,client) { } public override void SecureMessage(SoapEnvelope envelope, Security security) { // Implement validation here } }

D. public class MySendSecurityFilter : SendSecurityFilter { public MySendSecurityFilter(string service, Boolean client) : base(service,client) { } public void SecureMessage(SoapEnvelope envelope, Security security) { // Implement validation here } }

Buy Now
Questions 6

Sandra works as a Software Developer for ABC Inc. She develops an application named MyApp that contains a data-bound control named MyDataControl. She wants to use an Oracle database in order to bind data to MyDataControl. Which of the following GUI-based data sources will Sandra use to accomplish the task?

A. AccessDataSource

B. SqlDataSource

C. ObjectDataSource

D. XmlDataSource

E. SitemapDataSource

Buy Now
Questions 7

You work as a Software Developer for ABC Inc. You develop a Windows-based application named MyApp. The application contains a form named MyForm1 that displays a submit form for registered users. You want to implement a user interface for the application. Which of the following requirements will you consider for the user interface?

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

A. The application saves the user-entered data and checks the integrity of the data.

B. The application components are allowed to handle logging of user-entered data.

C. The user-entered data are validated through the validation checks applied in the Windows Forms controls.

D. Users are allowed to enter data in the required fields on the form.

Buy Now
Questions 8

You work as an Enterprise Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a logging utility class using .NET Framework 3.5. The utility class writes logs to event log services. You are required to ensure that the client applications that use the utility class can create an instance of the utility class only if they have access rights to write to the event log services.

What will you do?

A. Use role based security in the class constructor.

B. Use declarative security check on the assembly.

C. Use role based security on the class.

D. Use code access security on the class.

Buy Now
Questions 9

Sandra works as a Software Developer for ABC Inc. She develops a Windows form named MyForm1. She wants to add a Button control named button1 to a Panel control named panel1 at runtime. Therefore, she writes the following code:

1.

private void MyForm1_Load(object sender, EventArgs e)

2.

{

3.

Button button1 = new Button();

4.

button1.Location = new Point(50,50);

5.

button1.Size = new Size(100, 30);

6.

button1.Text = "My First button";

7.

Panel panel1 = new Panel();

8.

panel1.Location = new Point(10, 100);

9.

// Write code here

10.

// Write code here

11.

}

Which of the following code statements will Sandra write in line numbers 9 and 10? (Line numbers are for reference only.)

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

A. She will write the following code statement in line number 9: Form1.Controls.Add(button1);

B. She will write the following code statement in line number 9: this.Controls.Add(button1);

C. She will write the following code statement in line number 9: this.Controls.Add(panel1);

D. She will write the following code statement in line number 10: button1.Controls.Add(panel1);

E. She will write the following code statement in line number 10: panel1.Controls.Add(button1);

Buy Now
Questions 10

You work as a Software Developer for ABC Inc. The Company uses .NET Framework as its application development platform. You are writing a method that might throw an exception at several points during its execution. You need to run several lines of code after the method runs, whether or not an exception occurs. Which of the following blocks will you use to accomplish this task?

A. Catch

B. Finally

C. Try

D. Throw

Buy Now
Questions 11

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 for a Bank using the .NET Framework. You create a method that gets the images of cancelled checks and displays them. You presently have access to a method that reads the images from a SQL server database as a sequence of bytes. You need to transfer the image from the SQL server database to a form with the least amount of temporary buffers and files. Which of the following classes will you use to accomplish this task?

A. FileStream

B. NetworkStream

C. BufferedStream

D. MemoryStream

Buy Now
Questions 12

Allen works as a Software Developer for Mansoft Inc. He develops a Web application using Visual Studio .NET. He adds a Web reference to an XML Web service named MyWebService in the application. MyWebService includes a method named MyMethod, which takes user identification number as a parameter and returns a DataSet object containing user information. The System.ArgumentException is thrown if the user identification number does not lie between 1 and 500. Allen writes a try and catch block to capture the exception thrown by the Web service. Which of the following exceptions will the try and catch block catch if a user calls MyMethod passing 501 as a parameter?

A. System.Web.Services.Protocols.SoapException

B. System.Web.Services.Protocols.SoapHeaderException

C. System.ApplicationException

D. System.ArgumentNullException

Buy Now
Questions 13

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?

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";

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

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99