Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free GIAC GSSP-.NET 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 are developing an application using .NET Framework 2.0. You are required to use a datatype that will store only the numbers. The numbers should be in positive form and should not be larger than 65,535. Which of the following datatypes will you use to accomplish the task?

Each correct answer represents a complete solution. Choose two.

Options:
A.

int

B.

short

C.

System.UInt16

D.

ushort

E.

System.Int16

GIAC GSSP-.NET Premium Access
Questions 132

John works as a Web Developer for ABC Inc. He develops an ASP.NET application, named MyApp1, using Visual Studio .NET. MyApp1 uses a Microsoft SQL Server 2000 database, named Database1. Database1 contains a table, named Orders, that stores the order details. In Database1, he creates a stored procedure, named Proc1, as follows:

CREATE PROCEDURE [Proc1] AS

Return (Select Count(*) from Orders)

The Proc1 stored procedure returns a count of the number of rows in the Orders table. MyApp1 includes a page, named Page1.aspx. In the Page1_Load event handler, John writes the following code to call the stored procedure:

string Str1;

SqlConnection Con;

SqlCommand Cmd1;

Str1 = "Server=TestPro1;Database=Database1;uid=sa;pwd=;";

Con = new SqlConnection(Str1);

Cmd1 = new SqlCommand("Proc1", Con);

Cmd1.CommandType = CommandType.StoredProcedure;

John wants to create an instance of the SqlParameter class that represents the return value from the Proc1 stored procedure. Which of the following code will he use to accomplish the task?

Options:
A.

SqlParameter Parm1;

Parm1 = Cmd1.Parameters.Add("@NoOfOrders", SqlDbType.Int);

Parm1.Direction = ParameterDirection.InputOutput;

B.

SqlParameter Parm1;

Parm1 = Cmd1.Parameters.Add("@NoOfOrders", SqlDbType.Int);

Parm1.Direction = ParameterDirection.Output;

C.

SqlParameter Parm1;

Parm1 = Cmd1.Parameters.Add("@NoOfOrders", SqlDbType.Int);

Parm1.Direction = ParameterDirection.ReturnValue;

D.

SqlParameter Parm1;

Parm1 = Cmd1.Parameters.Add("@NoOfOrders", SqlDbType.Int);

Questions 133

You work as a Software Developer for Mansoft Inc. The company uses Visual Studio.NET as its application development platform. You create an ASP.NET Web application using the .NET Framework. You want to authenticate the application and then deploy it on a server running

Microsoft Windows Server 2003 Standard Edition hosting Microsoft Internet Information Services 6.0. Which of the following authentication methods will you use to accomplish the task?

Each correct answer represents a complete solution. Choose two.

Options:
A.

Integrated Windows

B.

Extensible Authentication Protocol

C.

Windows NT

D.

Anonymous

E.

Basic

Questions 134

Allen works as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. He creates an application using the .NET Framework.. He writes the following code segment in the application:

01 class gClass

02 {

03 public gClass(int k)

04 {

05 //Write code here

06 }

07 }

08 public class gSub : gClass

09 {

10 public static void Main(String[] argv)

11 {

12 gSub gs=new gSub(20);

13 }

14 gSub(int j):base(j)

15 {

16 //Write Code here

17 }

18 gSub(string st, int j):this(j)

19 {

20 gClass ss=new gClass();

21 }

22 }

When you execute the above code segment, you get an error at line 20. Which of the following code segments will he place at line 20 to execute the code successfully?

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

Options:
A.

gClass ss=new gClass(j);

B.

base();

C.

gClass ss=new gClass(200);

D.

gSub gg=new gSub();

Questions 135

Allen works as a Software Developer for ManSoft Inc. He develops an application using Visual Studio .NET 2005. Only the employees of the company use the application. Allen wants to ensure that when a request on a page is made by a user the application asks for his authentication. Which of the following actions will Allen take to accomplish the task?

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

Options:
A.

Specify User.Identity to authenticate the user.

B.

Set the impersonate attribute of the element to true.

C.

Specify the username and password attributes.

D.

Set the impersonate attribute of the element to false.

Questions 136

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 137

You work as a Software Developer for Blue Well Inc. The company uses Visual Studio .NET 2005 as its application development platform. You create an application using Visual C# .NET and perform the following operations:

l Create a static array.

l Sort the array.

l Display the sorted array.

Which of the following code snippets will you use to accomplish the task?

Options:
A.

int array1[] = {12, 16, 18, 22};

Array.Sort(array1);

Console.WriteLine(array1[0], array1[1], array1[2], array1[3]);

B.

int[] array1 = {12, 16, 18, 22};

Array.Sort(array1);

Console.WriteLine("{0}, {1}, {2}, {3}");

C.

int[] array1 = {12, 16, 18, 22};

Array.Sort(array1);

Console.WriteLine("{0}, {1}, {2}, {3}", array1[0], array1[1], array1[2], array1[3]);

D.

int[] array1 = {12, 16, 18, 22};

Array.Sort(array1);

Console.WriteLine("{0}, {1}, {2}, {3}", array1[a], array1[b], array1[c], array1[d]);

Questions 138

Mark works as a Software Developer for BlueWell Inc. He develops four Windows-based applications using Visual Studio .NET. All the applications use an assembly, named Assembly1. Mark deploys the applications on the company's intranet. Later, he modifies Assembly1 and wants to ensure that all the applications use the latest version of Assembly1. Which of the following files will Mark use to accomplish this?

Options:
A.

Publisher policy configuration file

B.

Security configuration file

C.

Machine configuration file

D.

Application configuration file

Questions 139

You work as a Software Developer for ABC Inc. You create a Web page named MyWebPage that displays detailed information of a registered user. The page contains a TextBox Web server control that requires the RangeValidator validation control to validate whether the user has entered the correct date of birth. A validation error message is displayed if the user has entered the value, which is greater than the date of registration. However, you want to ensure that the validation control on the Web page does not occupy any space, but share the same location for the display of error messages on the Web page. You also want to ensure that the layout of the Web page is changed when the error message is displayed. Which of the following actions will you take to accomplish the task?

Options:
A.

Design the Dynamic layout of the Web page.

B.

Implement the ValidationSummary control instead of the RangeValidator control.

C.

Design the Static layout of the Web page.

D.

Design the None layout of the Web page.

Questions 140

Allen works as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. He develops an application that manipulates files containing confidential information. He wants to make a copy of the existing file, named

ConfidentInfo1 to a new file, named ConfidentInfo2 in the local drive by using an instance method. However, Allen wants to ensure that the existing file does not overwrite the new file.

Which of the following classes' instance method will Allen consider in the application to accomplish the task?

Options:
A.

StringWriter class

B.

FileInfo class

C.

BinaryWriter class

D.

DirectoryInfo class

GIAC Related Exams

GIAC Free Exams

GIAC Free Exams
Prepare for GIAC certification with free access to reliable study resources and practice tests at Examstrack.