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

Viewing page 1 out of 14 pages
Viewing questions 1-10 out of questions
Questions # 1:

Allen works as a Software Developer for Mansoft Inc. He creates a Console application. He writes the following line of code in the application:

String str="ABC's World";

According to the given line of code, which of the following are legal statements?

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

Options:

A.

String st1="Hello" + str;


B.

int j=str.Length;


C.

str[2]="y";


D.

str=str+10;


E.

str=5;


Questions # 2:

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You create a remoting application that provides stock information to customers using .NET Framework. The server component raises an event on the client computer when certain conditions are met. You must ensure that the server raises exactly one event for each client application that is registered for the event. What will you do to accomplish this task?

Options:

A.

Configure the server class as a Singleton Activated Object (SAO) and check for duplicate client delegate methods before raising the event.


B.

Configure the server class as a Client Activated Object (CAO) and override the CreateObjRef method to check for duplicate client delegate methods before raising the event.


C.

Configure the server class as a SingleCall Activated Object (SAO) and check for duplicate client delegate methods before raising the event.


D.

Configure the server class as a Client Activated Object (CAO) and check for duplicate client delegate methods before raising the event.


Questions # 3:

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?

Options:

A.

FileStream


B.

NetworkStream


C.

BufferedStream


D.

MemoryStream


Questions # 4:

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

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 application using .NET Framework 3.5. The application will process one million records in a production environment. Therefore, you need to test the application by using 7,500 records in a limited test environment to identify potential problems that might arise when the application is moved to the production environment. What will you do?

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

Options:

A.

Test the resource files.


B.

Test the thread pool pattern usage.


C.

Test the collection type usage.


D.

Test the number of MSI files used for deployment.


Questions # 6:

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


Questions # 7:

You work as a Software Developer for ManSoft Inc. You create an assembly. You place the assembly in a specific folder. Which of the following classes can you use to determine whether the assembly was located in a specific folder?

Each correct answer represents a complete solution. Choose two.

Options:

A.

UrlMembershipCondition


B.

ApplicationDirectoryMembershipCondition


C.

GacMembershipCondition


D.

SiteMembershipCondition


Questions # 8:

Peter works as a Software Developer for PentaSoft Inc. He develops an application, named App1, using Visual C# .NET. The application is intended to deal with several file input and output operations. He uses the following try structure in the application code to handle errors that occur during the execution of App1.

try

{

//Statements that might cause a runtime error.

}

catch (System.IO.FileNotFoundException ex)

{

//Statements

}

catch (System.IO.PathTooLongException ex)

{

//Statements

}

catch (System.IO.IOException ex)

{

//Statements

}

catch (Exception ex)

{

//Statements

}

What will happen if an exception of type System.IO.DirectoryNotFoundException occurs in the try block?

Options:

A.

The catch block that handles an exception of type IOException will be executed.


B.

The catch block that handles an exception of type Exception will be executed.


C.

The catch block that handles an exception of type FileNotFoundException will be executed.


D.

The catch block that handles an exception of type PathTooLongException will be executed.


Questions # 9:

You work as a Software Developer for InfoTech Inc. You develop a Windows application named MyWinApp that displays a registration form for users. You want to ensure that whenever a user enters a wrong data in the required TextBox controls, the data will not be accepted by the application. Which of the following actions will you take so that users should enter only valid data?

Options:

A.

Use a message box that will display an error message with an error icon.


B.

Use the ErrorProvider component in the application.


C.

Use the HelpProvider component in the application.


D.

Use a message box that will display an error message..


Questions # 10:

Sam works as a Software Developer for BlueWell Inc. He develops two applications: MyApp1 and MyApp2 using Visual Studio .NET 2005. He wants to ensure that both these applications use the same assembly named Assembly1. Therefore, he signs Assembly1 with a strong name for each application. What is significant about the strong name that consists of the assembly's identity?

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

Options:

A.

A strong name assures the uniqueness of a name.


B.

A strong name protects the root version of an assembly.


C.

A strong name provides a strong integrity check.


D.

A strong name creates different versions of an assembly.


Viewing page 1 out of 14 pages
Viewing questions 1-10 out of questions