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

Free GIAC GSSP-NET-CSHARP Practice Exam with Questions & Answers | Set: 9

Questions 81

Georgina works as a Software Developer for BlueChip Inc. She develops an application named App1 using Visual Studio .NET. The company wants her to deploy App1 to a customer's laptop. Georgina creates an assembly named Assembly1 to be stored in the Global Assembly Cache so that the Common Language Runtime (CLR) can locate and bind Assembly1.

As the application executes, the CLR locates the path of Assembly1 through the codebase setting. But, it finds no element in the app.config file, and fails to bind Assembly1. Now, the CLR tries to locate Assembly1 through probing. Which of the following will the CLR check to locate Assembly1?

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

Options:
A.

The culture attribute of the assembly

B.

Sub-directories in the application's root directory

C.

The application base or root directory

D.

The Gacutil.exe tool in the Global Assembly Cache

E.

Previously loaded assemblies

F.

The assembly's name

G.

The correct version of the assembly

GIAC GSSP-NET-CSHARP Premium Access
Questions 82

Which of the following is used, if a reference to an object is required to be made when it is passed from one application to another?

Options:
A.

Marshal By Reference object

B.

Singleton object

C.

SingleCall object

D.

Marshal By Value object

Questions 83

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 named MyApplication. MyApplication uses the System.IO namespace. You want to ensure that you are able to use a class that specifies read and write operations either in synchronous or asynchronous manner. Which of the following classes will you use to accomplish the task?

Options:
A.

StreamReader

B.

FileStream

C.

StreamWriter

D.

MemoryStream

Questions 84

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create the definition for a Car class by using the following code segment:

public class Car {

[XmlAttribute(AttributeName = "category")]

public string CarType;

public string model;

[XmlIgnore]

public int year;

[XmlElement(ElementName = "mileage")]

public int miles;

public ConditionType condition;

public Car() {

}

public enum ConditionType {

[XmlEnum("Poor")] BelowAverage,

[XmlEnum("Good")] Average,

[XmlEnum("Excellent")] AboveAverage

}}

You create an instance of the Car class. You fill the public fields of the Car class as shown in the table below:

You are required to recognize the XML block that is produced by the Car class after serialization. Which of the following XML blocks represents the output of serializing the Car class?

Options:
A.

<?xml version="1.0" encoding="utf-8"?>

xmlns:xsi="<a href="http://www.w3.org/2002/XMLSchema-instance">http://www.w3.org/2002/XMLSchema-instance</a> "

xmlns:xsd="<a href="http://www.w3.org/2002/XMLSchema">http://www.w3.org/2002/XMLSchema</a> "

category="sedan">

racer

15000

<conditionType>Excellent</conditionType>

B.

<?xml version="1.0" encoding="utf-8"?>

xmlns:xsi="<a href="http://www.w3.org/2002/XMLSchema-instance">http://www.w3.org/2002/XMLSchema-instance</a> "

xmlns:xsd="<a href="http://www.w3.org/2002/XMLSchema">http://www.w3.org/2002/XMLSchema</a> "

category="sedan">

racer

15000

<condition>Excellent</condition>

C.

<?xml version="1.0" encoding="utf-8"?>

xmlns:xsi="<a href="http://www.w3.org/2002/XMLSchema-instance">http://www.w3.org/2002/XMLSchema-instance</a> "

xmlns:xsd="<a href="http://www.w3.org/2002/XMLSchema">http://www.w3.org/2002/XMLSchema</a> ""

CarType="sedan">

racer

15000

</condition>AboveAverage</condition>

D.

<?xml version="1.0" encoding="utf-8"?>

xmlns:xsi="<a href="http://www.w3.org/2002/XMLSchema-instance">http://www.w3.org/2002/XMLSchema-instance</a> "

xmlns:xsd="<a href="http://www.w3.org/2002/XMLSchema">http://www.w3.org/2002/XMLSchema</a> ">

</category>sedan</category>

racer

15000

</condition>Excellent</condition>

Questions 85

Kathy works as a Software Developer for BlueWell Inc. She creates a serviced component named

Com1. She wants to ensure that all the employees of the company are able to use Com1. Therefore, she wants to install Com1 in the Global Assembly Cache (GAC). Before the installation, she wants to register the serviced component manually with COM+. Which of the following tools will Kathy use to register Com1?

Options:
A.

Al.exe

B.

Regsvcs.exe

C.

Regasm.exe

D.

Mscorcfg.msc

Questions 86

Emily works as a Programmer in an Eye Research Center. The center keeps several records such as case history records for old patients and newly admitted patients, and records for outdoor patients. The Head of the Research Center wants Emily to generate reports for each outdoor patient with minimum network traffic. Emily develops an application named OutdoorPatientReport by using Visual Studio .NET. She needs to utilize the data repository as maintained by the center.

She wants to ensure that the application is displayed to all the doctors. Which of the following actions will Emily take to accomplish this task?

Options:
A.

Use Microsoft SQL Server stored procedures for data calculations.

B.

Implement a batch processing system for data calculations.

C.

Create more than one database for data manipulations.

D.

Use SQL Server indexes to optimize data calculations.

Questions 87

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You create a message queue named SecureQ using .NET Framework. The message queue requires each incoming message to be encrypted. You want to ensure that a message can be sent to SecureQ without an exception being thrown. What will you do to accomplish this task?

Options:
A.

Use the CryptoStream class to encrypt the Body property on the message.

B.

Set the HashAlgorithm property to a value from the HashAlgorithm enumeration on the me ssage.

C.

Set the EncryptionAlgorithm property to a value from the EncryptionAlgorithm enumeration on the message.

D.

Set the UseEncryption property to true on the message.

Questions 88

You work as an Enterprise Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You are creating an Enterprise application using .NET Framework 3.5. The application must meet the following requirements:

l The application loads XML from streams.

l The application creates XML from scratch by using functional construction.

l The application queries XML using XPath-like axes.

l The application validates XML trees using XSD.

What will you do to meet these requirements with least development efforts?

Options:
A.

Use LINQ to XML.

B.

Use LINQ to SQL.

C.

Use the XML Schema Definition Tool.

D.

Use ADO.NET Data Services.

Questions 89

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

Questions 90

You work as a Software Developer for Mansoft Inc. The company uses Visual Studio.NET 2005 as its application development platform. You need to write a code segment that can change the file extension of a file named Test.txt. Which of the following code segments will you choose to change the file extension?

Each correct answer represents a complete solution. Choose two.

Options:
A.

using System;

using System.IO;

public class ChangeExample

{

public static void Main()

{

string FileName =@"C.\Test.txt";

Console.Write ("File NamE."+FileName);

Console.Write (" File Extension: {0}", Path.GetExtension(FileName));

Console.Write ("Change File Extension {0}", Path.ChangeExtension(FileName, "doc"));

}

}

B.

using System;

using System.IO;

public class ChangeExample

{

public static void Main()

{

string FileName =@"C.\Test.txt";

Console.Write ("File NamE."+FileName);

Console.Write (" File Extension: {0}", Path.GetExtension(FileName));

Console.Write ("Change File Extension {0}", Path.ChangeExtension(FileName,".exe"));

}

}

C.

using System;

using System.IO;

public class ChangeExample

{

public static void Main()

{

string FileName =@"C.\Test.txt";

Console.Write ("File NamE."+FileName);

Console.Write (" File Extension: {0}", Path.GetExtension(FileName));

Console.Write ("Change File Extension {0}", Path.ChangeExtension(FileName));

}

}

D.

using System;

using System.IO;

public class ChangeExample

{

public static void Main()

{

string FileName =@"C.\Test.txt";

Console.Write ("File NamE."+FileName);

Console.Write (" File Extension: {0}", Path.GetExtension(FileName));

Console.Write ("Change File Extension {0}", Path.ChangeExtension("rft"));

}

}

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.