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

Viewing page 15 out of 15 pages
Viewing questions 141-150 out of questions
Questions # 141:

Which of the following APIs is used to collect information about any running state and any errors that occur within an ASP.NET application?

Options:

A.

Profile API


B.

Health Monitoring API


C.

Error Handling API


D.

Personalization API


Expert Solution
Questions # 142:

John works as a Software Developer for InfoTech Inc. He develops an application named

SerializeObj. He creates a custom class and wants to serialize its object. He also wants the object to be stored into an XML file named File1.xml. He writes the following code: public class Employees

{

public string EmpID;

public string EmpName;

public decimal Salary;

}

Which of the following code statements will John add in the application?

Options:

A.

XmlSerializer ObjectSerializer = new XmlSerializer(typeof(Employees), ObjectTypes);


B.

XmlSerializer ObjectSerializer = new XmlSerializer(typeof(Employees));


C.

XmlSerializer ObjectSerializer = new XmlSerializer(Employees);


D.

XmlSerializer ObjectSerializer = new XmlSerializer();


Expert Solution
Questions # 143:

George works as a Software Developer for GenTech Inc. He creates an application named App1 using Visual Studio .NET. App1 uses the version 2.0.0.0 of an assembly named Assembly1. However, he wants App1 to use a new version i.e. 2.1.0.0 of Assembly1. Therefore, he needs to specify Assembly1's location so that App1 can use version 2.1.0.0 of Assembly1. What will George use to accomplish the task?

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

Options:

A.

An unmanaged code.


B.

A managed code.


C.

The element.


D.

The element.


Expert Solution
Questions # 144:

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create an ASP.NET Web application using .NET Framework 3.5.

The application rarely experiences errors that cannot be reproduced on a test environment. You are required to ensure that the application meets the following requirements:

l All unanticipated errors are logged.

l Logging is configured with a least amount of alteration to the application code.

What will you do?

Options:

A.

Override the base class for all forms in the application to add the Try/Catch blocks to all the major functionalities.


B.

Enable the element in the Web.config file and set the mode attribute to On .


C.

Enable the element in the Web.config file and set the mode attribute to

RemoteOnly.


D.

Add an event handler for the Application.Error event to the Global.asax file of the applicatio n.


Expert Solution
Questions # 145:

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You create an application for the company. You need to validate the phone number passed to a class as a parameter in the application. Which of the following is the most effective way to verify that the format of the data matches a phone number?

Options:

A.

Regular expressions


B.

Nested If statements


C.

Use the String.Length property


D.

A try/catch block


Expert Solution
Questions # 146:

John works as a Web Developer for TechCom Inc. He creates an ASP.NET application, named MyApp1, using Visual Studio .NET. Only registered users of the company will be able to use the application. The application contains a page, named NewAccount.aspx that allows new users to register themselves to the registered user list of the company. The NewAccount page contains several TextBox controls that accept users' personal details such as username, password, confirm password, first name, last name, home address, zip code, phone number, etc. One of the TextBox controls on the page is named txtZipCode in which a user enters a Zip code.

John wants to ensure that when a user submits the NewAccount page, txtZipCode must contain five numeric digits. He wants least development effort. Which of the following validation controls will he use to accomplish the task?

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

Options:

A.

CompareValidator


B.

RequiredFieldValidator


C.

RangeValidator


D.

RegularExpressionValidator


Expert Solution
Questions # 147:

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. The application uses serialization to allow users to take an instance of an object and convert it into a format that can be easily transmittable over the network or even stored in a database. You want to provide the base functionality for the common language runtime serialization formatters. Which of the following classes will you use to accomplish the task?

Options:

A.

SoapFormatter


B.

FormatterConverter


C.

Formatter


D.

BinaryFormatter


Expert Solution
Viewing page 15 out of 15 pages
Viewing questions 141-150 out of questions