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

Viewing page 4 out of 15 pages
Viewing questions 31-40 out of questions
Questions # 31:

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

John works as a Web Developer for ProMetaworks Inc. He creates an ASP.NET application, named MyApp1, by using Visual Studio .NET. MyApp1 contains a page, named Page1. Page1 contains a RadioButtonList control that contains five items. John wants to ensure that users select one of the items from the RadioButtonList control before submitting the page. He wants to accomplish the task with least development effort. Which of the following validation controls will he use to accomplish the task?

Options:

A.

CustomValidator


B.

RangeValidator


C.

ValidationSummary


D.

RequiredFieldValidator


Questions # 33:

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. You utilize the built-in ASP.NET Web server controls in all the Web forms of the application. You access and modify the properties of all Web server controls in the code behind code of the Web forms. You are required to include custom client-side and AJAX behavior to the ASP.NET Web server controls. You are also required to ensure nominal effect on the current application code. What will you do?

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

Options:

A.

Add the extender controls alongside the ASP.NET Web server controls in the Web forms.


B.

Create a custom extender control for each built-in ASP.NET Web server control.


C.

Replace each built-in ASP.NET Web server control with the custom Web server control in the Web forms.


D.

Create a custom Web server control for each built-in ASP.NET Web server control.


E.

Create a UserControl control for each built-in ASP.NET Web server control.


F.

Add an UpdatePanel control in the Web forms for each built-in ASP.NET Web server control


Questions # 34:

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


Questions # 35:

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 Forms

application using .NET Framework 3.5. You create multiple threads in the application and the

threads will execute the same method. You want to synchronize access to a block of code within the method; thus, no two threads execute the block at the same time. What will you do to accomplish this?

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

Options:

A.

Add a SynchronizationAttribute attribute to the method that the multiple threads will call.


B.

Call the Interlocked.Increment method before the block of code that needs to be synchroni zed.


C.

Call the Monitor.Enter method before the block of code that needs to be synchronized.


D.

Call the Interlocked.Decrement method after the block of code that needs to be synchroniz ed.


E.

Add a Semaphore object to the method that the multiple threads will call.


F.

Call the Monitor.Exit method after the block of code that needs to be synchronized.


Questions # 36:

You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create a Windows application using the .NET Framework. The application contains many controls. You add an ErrorProvider component named errorPro and a DateTimePicker control named datePick to the application. You are required to configure the application to display an error notification icon next to datePick when a user enters a date that is greater than today's date. What will you do to accomplish this task?

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

Options:

A.

Create an event handler named verifyDate for the Validating event of datePick.


B.

Create an event handler named verifyDate for the Validated event of datePick.


C.

In the verifyDate event handler, call errorPro.SetError(datePick, "Date is greater then today's date") if the value of datePick value is greater than today's date.


D.

In the verifyDate event handler, call errorPro.SetError(datePick, "") if the datePick.Value is greater than today's date.


Questions # 37:

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You have recently finished development of a Windows application using .NET Framework. Users report that the application is not running properly. When the users try to complete a particular action, the following error message comes out:

Unable to find assembly 'myservices, Version=1.0.0.0, Culture=neutral,

PublicKeyToken=29b5ad26c9de9b95'.

You notice that the error occurs as soon as the application tries to call functionality in a serviced component that was registered by using the following command:

regsvcs.exe myservices.dll

You must make sure that the application can call the functionality in the serviced component with no exceptions being thrown. What will you do to accomplish this task?

Options:

A.

Run the command line tool: regasm.exe myservices.dll.


B.

Copy the serviced component assembly into the C:\Program Files\ComPlus Applications fold er.


C.

Run the command line tool: gacutil.exe /i myservices.dll.


D.

Copy the serviced component assembly into the C:\WINDOWS\system32\Com folder.


Questions # 38:

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 uses a SQL Server 2008 database on the network.

You use ADO.NET Data Services that exposes data as resources that are addressable by URIs. You access and change data by using the semantics of representational state transfer (REST), specifically the standard HTTP verbs of GET, PUT, POST, and DELETE. You must ensure that when a service violates any other constraint, the service cannot strictly be referred to as RESTful. What will you do?

Options:

A.

Use the layered system constraint.


B.

Use the code on demand constraint.


C.

Use the client-server constraint.


D.

Use the stateless constraint.


E.

Use the cacheable constraint.


Questions # 39:

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You are developing the data access component that all applications in your company intranet will use to access Microsoft SQL Server. You must include code to correctly catch and iterate through any number of errors that could be encountered when connecting to SQL Server. Which code segment should you choose?

Options:

A.

string connectionString =

"server=(local); database=Northwind;"

+ "integrated security=true;";

using (SqlConnection cnn = new SqlConnection(connectionString)){

try {

cnn.Open();

} catch (Exception ex) {

// handle the exception...

} catch (SqlException ex) {

foreach (SqlError error in ex.Errors) {

// handle the exception...

}

} finally {

// clean up

}

}


B.

string connectionString =

"server=(local); database=Northwind;"

+ "integrated security=true;";

using (SqlConnection cnn = new SqlConnection(connectionString)){

try {

cnn.Open();

} catch (SqlException ex) {

foreach (SqlError error in ex.Errors) {

// handle the exception...

}

} catch (Exception ex) {

// handle the exception...

} finally {

// clean up

}

}


C.

string connectionString =

"server=(local); database=Northwind;"

+ "integrated security=true;";

using (SqlConnection cnn = new SqlConnection(connectionString))}

try {

cnn.Open();

} catch (SqlException ex) {

switch (ex.Number) {

case 1:

// handle the exception...

break;

default:

// handle the exception...

break;

}

} catch (Exception ex) {

// handle


D.

string connectionString =

"server=(local); database=Northwind;"

+ "integrated security=true;";

using (SqlConnection cnn = new SqlConnection(connectionString)){

try {

cnn.Open();

} catch (SqlException ex) {

switch (ex.Number) {

case 1:

// handle the exception...

break;

default:

// handle the exception...

break;

}

} catch (Exception ex) {

// handle


Questions # 40:

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. You create an application using the .NET Framework. You need to use the regular expressions to provide a concise and flexible means for identifying strings of text of interest, such as particular characters, words, or patterns of characters. Which operation will you use to construct the regular expressions?

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

Options:

A.

Quantification


B.

Grouping


C.

Alternation


D.

Phishing


Viewing page 4 out of 15 pages
Viewing questions 31-40 out of questions