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: 14

Questions 131

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You have created a class named Customer to be used in a billing application. The Customer class is shown below.

class Customer

{

public string FirstName { get; set; }

public string LastName { get; set; }

}

Each instance of the Customer class contains information about a customer of your company. You have written a segment of code that populates an ArrayList with a collection of Customer objects as shown below.

ArrayList customers = new ArrayList();

Customer myCustomer = new Customer();

myCustomer.FirstName = "Helen";

myCustomer.LastName = "of Troy";

customers.Add(myCustomer);

myCustomer = new Customer();

myCustomer.FirstName = "Elvis";

myCustomer.LastName = "Presley";

customers.Add(myCustomer);

You need to write code that iterates through the customers ArrayList and displays the name of each customer at the command prompt.

Which code segment should you choose?

Options:
A.

foreach (Customer customer in customers) {

Console.WriteLine("{0} {1}",

(Customer)customer.FirstName,

(Customer)customer.LastName);

}

B.

foreach (Customer customer in customers) {

Console.WriteLine("{0} {1}",

customer.FirstName,

customer.LastName);

}

C.

for (int counter = 0; counter <= customers.Count; counter++) {

Console.WriteLine(customers[counter].ToString());

}

D.

for (int counter = 0; counter <= customers.Count; counter++) {

Console.WriteLine(customers[counter]);

}

GIAC GSSP-NET-CSHARP Premium Access
Questions 132

You work as a Software Developer for ABC Inc. The company's server room is in a highly secured environment. The company wants to ensure that the server room uses thumb impressions for authentication. Which of the following authentication methods will you suggest?

Options:
A.

SSL certificates

B.

Biometrics

C.

User policy

D.

Smart card

E.

Certificate

Questions 133

You work as an ADO.NET Application Developer for ABC Inc. The company uses Microsoft Visual Studio .NET 2008 as its application development platform. You create an ADO.NET application by using .NET Framework 3.5. You are using the System.Linq.Expressions namespace. You need to specify an expression that applies a delegate or lambda expression to a list of argument expressions. Which of the following classes will you use to accomplish the task?

Options:
A.

ListInitExpression

B.

InvocationExpression

C.

MemberAssignment

D.

NewArrayExpression

Questions 134

You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You have recently finished development of a Windows Forms application using .NET Framework 3.5. You have written complex foreach loops to retrieve data from collections. However, you want to modify the application, so that it uses LINQ queries in place of foreach loops. What will be the advantages of using LINQ queries instead of foreach loops?

Each correct answer represents a part of the solution. Choose all that apply.

Options:
A.

They provide powerful filtering, ordering, and grouping capabilities with least application co de.

B.

They can be ported to other data sources with slight or no alteration.

C.

They provide lambda expression in the form of an expression tree.

D.

They are more concise and readable, particularly when filtering multiple conditions.

Questions 135

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You are creating an application using .NET Framework 2.0. You are using regular expression in the application to validate email, phone number, etc. You are required to match a Unicode character using hexadecimal numbers. Which of the following character escapes will you use to accomplish the task?

Options:
A.

\cC

B.

\x20

C.

\040

D.

\u0020

Questions 136

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 named Assem1 using .NET Framework. Assem1 contains a public method. The global cache contains a second assembly named Assem2. You need to ensure that the public method is only called from Assem2. Which of the following permission classes will you use to accomplish the task?

Options:
A.

PublisherIdentityPermission

B.

DataProtectionPermission

C.

StrongNameIdentityPermission

D.

GacIdentityPermission

Questions 137

You work as a Database Administrator for ABC Inc. The company has a SQL Server 2000 computer. One of the databases on the server contains a table named Employees, for storing information about employees in the company. There are two employees, Joe and Rick, to whom you want to give additional responsibilities. You want Joe to be allowed to modify only the E-mail column of the table, and Rick should be allowed to modify only the Salary column of the table. Neither Joe nor Rick should be allowed to have permission on the Employees table.

You want to ensure that the above rule is followed strictly. What will you do to accomplish this?

Options:
A.

Create a user-defined function to modify data.

B.

Create a RULE on both the columns.

C.

Create a stored procedure to modify data

D.

Create a CHECK constraint on both the columns.

Questions 138

You work as a Software Developer for Blue Well Inc. You create a mobile Web application for

mobile users. You want to ensure that a cookieless session is implemented on it. Which of the

following statements are the main reasons of implementing a cookieless session on a mobile Web application?

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

Options:
A.

Maintains session state of each user

B.

Stores data in Web server memory

C.

Tests mobile Web applications

D.

Ensures better compatibility with mobile devices

Questions 139

You work as a Web Application Developer for SunInfo Inc. The company uses Visual Studio 2008 as its application development platform. You create an ASP.NET AJAX application using .NET Framework 3.5. You have enabled debugging in your application to get error information. Now, you want to deploy the release version of the application. How will you set the application to release mode?

Each correct answer represents a part of the solution. Choose all that apply.

Options:
A.

Set the debug attribute of the @Page directive to false.

B.

Set the ScriptMode property of the ScriptManager control to Debug in pages that contain a ScriptManager control.

C.

In the Web.config file, set the compilation element's debug attribute to false.

D.

Set the ScriptMode property of the ScriptManager control to Release in pages that contain a ScriptManager control.

Questions 140

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 .NET Framework 2.0. You configure the application at the following levels:

l Root Web

l Web application root directory

l Web site

l Web application subdirectory

In which of the following files will these levels be stored?

Options:
A.

Proxy auto-config

B.

ApplicationName.config

C.

Manhine.config

D.

Web.config

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.