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

Viewing page 2 out of 15 pages
Viewing questions 11-20 out of questions
Questions # 11:

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

Patrick works as a Software Developer for GenTech Inc. He develops an application, named App1, using Visual C# .NET. He implements security using the security classes of the .NET Framework. He defines the following statements in the application:

PrincipalPermission Principal_Perm1 = new PrincipalPermission("Nick", "General

Manager");

PrincipalPermission Principal_Perm2 = new PrincipalPermission("Jack", "Accountant");

Patrick wants to check whether all demands that succeed for Principal_Perm1 also succeed for Principal_Perm2. Which of the following methods of the PrincipalPermission class will he use to accomplish this?

Options:

A.

Intersect


B.

IsSubSetOf


C.

IsUnrestricted


D.

Union


Questions # 13:

You work as a Software Developer for ABC Inc. You have created a console application that uses two threads, named thread1 and thread2. You need to modify the code to prevent the execution of thread1 until thread2 completes its execution. Which of the following steps will you take to accomplish this task?

Options:

A.

Use a WaitCallBack delegate to synchronize the threads.


B.

Call the sleep() method of thread1.


C.

Call the SpinWait() method of thread1.


D.

Configure thread1 to run at a lower priority.


E.

Configure thread2 to run at a higher priority.


Questions # 14:

You work as a Software Developer for ABC Inc. You develop a Windows application named

MyApp1. MyApp1 contains a Windows form named MyWinForm1. The form uses several controls such as Button, TextBox, and Label. You want mouse click events to be raised in the form. You want to use the mouse events that pass an instance of EventArgs in the signature of the event handler of a Button control. Which of the following events will you use in the application to accomplish the task?

Each correct answer represents a complete solution. Choose three.

Options:

A.

MouseMove


B.

MouseDown


C.

MouseHover


D.

MouseEnter


E.

MouseUp


F.

MouseLeave


Questions # 15:

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

}


Questions # 16:

You work as a Software Developer for ABC Inc. You create a Web service named MyWebService using Visual Studio .NET. You implement a public Web method. You make the method accessible through a Web service application by attaching the WebMethod attribute to the public method. The public method is stored in the class file of the Web service file. When you create a Web service project using the Web service project template, by default, one public method named HelloWorld is created. The HelloWorld public method does not become available through the Web service until you attach the WebMethod attribute. The method must be applied to each method declaration. Now, you want to configure a Web service method. You want to ensure that the Web method performs updates on more than one databases or if the sequence of updates is critical to the overall success of the Web method. Which of the following properties will you use to accomplish this task?

Options:

A.

TransactionOption


B.

Description


C.

BufferResponse


D.

EnableSession


Questions # 17:

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2008 as its application development platform. You are creating an ASP.NET Web application using the .NET Framework 3.5. The application stores sensitive profile data in a MS SQL Server 2008 database. You are required to make sure that the profile data never stored in clear text. What will you do?

Options:

A.

Create a strongly typed custom ProfileProvider class. In the ProfileProvider class, encrypt the provided information before storing it in the database.


B.

Use the ASP.NET IIS Registration Tool to encrypt the connection string to connect to the SQL Server database.


C.

Create a custom profile provider. In the custom provider, encrypt the provided information before storing it in the database.


D.

Enable the SSL encryption for the SQL Server connections.


Questions # 18:

Ross works as a Software Developer for GenTech Inc. He develops a Windows-based application using Visual Studio .NET. He uses the Write method of the Debug and Trace classes to record information about the execution of the application in Windows 2000 event log. Ross performs integration testing on the application. He wants to ensure that only one entry is made to the event log, each time a call is made to the Write method of either class. Which of the following code will he use to accomplish this?

Each correct answer represents a complete solution. Choose two.

Options:

A.

EventLogTraceListener RossTraceListener = new EventLogTraceListener("RossEventLogSource");

Trace.Listeners.Add(RossTraceListener);


B.

EventLogTraceListener RossDebugListener = new EventLogTraceListener("RossEventLogSource");

Debug.Listeners.Add(RossDebugListener);


C.

EventLogTraceListener RossTraceListener = new EventLogTraceListener("RossEventLogSource");

Debug.Listeners.Add(RossTraceListener);

Trace.Listeners.Add(RossTraceListener);


D.

EventLogTraceListener RossDebugListener = new EventLogTraceListener("RossEventLogSource");

EventLogTraceListener RossTraceListener = new EventLogTraceListener("RossEventLogSource");

Debug.Listeners.Add(RossDebugListener);

Trace.Listeners.Add(RossTraceListener);


Questions # 19:

Mario works as a Software Developer for BlueWell Inc. He develops an application, named App1, by using Visual Studio .NET. He deploys the application on a client computer. He wants to use the existing assembly named Assembly1. However, Assembly1 needs to be configured in the global assembly cache so that App1 is able to use it. He wants to ensure that the application data transferred to and from the server to the client computer is well secured. Which of the following tools will Mario use to accomplish the task?

Options:

A.

Regasm.exe


B.

Sn.exe


C.

Mscorcfg.msc


D.

Regsvcs.exe


Questions # 20:

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 have received a file in ASCII encoded from one of the company's branch. Therefore, you are required to decode the file encoded in ACSII. Which of the following decoding types will you use to get the correct results?

Each correct answer represents a complete solution. Choose two.

Options:

A.

UTF-32


B.

UTF-16


C.

UTF-7


D.

UTF-8


Viewing page 2 out of 15 pages
Viewing questions 11-20 out of questions