Spring Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

GSSP-NET-CSHARP GIAC GIAC Secure Software Programmer - C#.NET Questions and Answers

Questions 4

Mark works as a Software Developer for McRobert Inc. He develops an ASP.NET application using Visual Studio .NET. The application loads department name and employee data only once in each user ' s session. Mark creates two DataTable objects, named Employees and Departments. The

Departments object remains static, but the Employees object is modified whenever new employees join the company.

Mark wants to minimize the time it takes for the application to reload an ASP.NET page after each change. Which of the following statements will he use to accomplish this?

Options:

A.

Session( " Departments " ) = Departments

Cache( " Employees " ) = Employees

B.

Cache( " Departments " ) = Departments

Cache( " Employees " ) = Employees

C.

Session( " Departments " ) = Departments

Session( " Employees " ) = Employees

D.

Cache( " Departments " ) = Departments

Session( " Employees " ) = Employees

Buy Now
Questions 5

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

Buy Now
Questions 6

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 are creating an application for the branch in China. You are also implementing encoding in the application for Chinese language. Which of the following encoding types will you use to support Chinese language?

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

Options:

A.

UTF-16

B.

UTF-8

C.

UTF-32

D.

ASCII

Buy Now
Questions 7

You work as a Software Developer for ABC Inc. You create a Console application to create multiple satellite assemblies. Which of the following statements about satellite assemblies are true?

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

Options:

A.

They do not contain any executable code.

B.

An application can have only one satellite assembly.

C.

The Assembly Linker tool is used to compile .resources files into satellite assemblies.

D.

They are used to deploy language-specific resources for an application.

Buy Now
Questions 8

John works as a Web Developer for ProLabs Inc. He develops an ASP.NET application, named

MyWebApp1, using Visual Studio .NET. One of the pages in the application is named as Page1.aspx, which does not need to maintain session state. To improve the performance of the application, John wants to disable session state for Page1. Which of the following actions will he take to accomplish the task?

Options:

A.

Set the EnableViewState attribute in the @ Page directive to false.

B.

Set the DisableSessionState attribute in the @ Page directive to true.

C.

In the sessionState configuration section of the application ' s Web.config file, set the mode attribute to off.

D.

Set the EnableSessionState attribute in the @ Page directive to false.

Buy Now
Questions 9

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 the .NET Framework 3.5. The application contains two HTML pages named Error.htm and

PageNotFound.htm. You want to make sure that the following requirements are met:

l When any user requests a page that does not exist, the PageNotFound.htm page is

displayed.

l When any other error occurs, the Error.htm page is displayed. Which of the following code segments will you add to the Web.config file to accomplish this task?

Options:

A.

< customErrors mode= " On " defaultRedirect= " Error.htm " >

< error statusCode= " 404 " redirect= " PageNotFound.htm " / >

< /customErrors >

B.

< customErrors mode= " Off " >

< error statusCode= " 400 " redirect= " Error.htm " / >

< error statusCode= " 404 " redirect= " PageNotFound.htm " / >

< /customErrors >

C.

< customErrors mode= " On " >

< error statusCode= " 400 " redirect= " Error.htm " / >

< error statusCode= " 404 " redirect= " PageNotFound.htm " / >

< /customErrors >

D.

< customErrors mode= " Off " defaultRedirect= " Error.htm " >

< error statusCode= " 404 " redirect= " PageNotFound.htm " / >

< /customErrors >

Buy Now
Questions 10

You work as an Enterprise Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a logging utility class using .NET Framework 3.5. The utility class writes logs to event log services. You are required to ensure that the client applications that use the utility class can create an instance of the utility class only if they have access rights to write to the event log services.

What will you do?

Options:

A.

Use role based security in the class constructor.

B.

Use declarative security check on the assembly.

C.

Use role based security on the class.

D.

Use code access security on the class.

Buy Now
Questions 11

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 add a Web Form that contains a button named bCancel. The button allows users to exit the form. When users click the button, validation should not occur. However, during testing you find that clicking the button does not allow users to exit the form. You need to ensure that users can always exit the page. What will you do?

Options:

A.

Set the CausesValidation property of the bCancel button to false.

B.

Set the AccessibleName property of the validation controls on the Web Form to " false " .

C.

Set the ControlToValidate property of the validation controls on the Web Form to the ID of the control.

D.

Set the Enabled property of the validation controls on the Web Form to false.

Buy Now
Questions 12

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create a method to hash data with the Secure Hash Algorithm (SHA) using .NET Framework. The hash data is passed to the method as a byte array named msg. You are required to calculate the hash of the msg array by using the SHA1. It is also mandatory to place the result into a byte array named Myhash. Which of the following code segments should you use to accomplish the task?

Options:

A.

SHA1 Mysha1 = new SHA1CryptoServiceProvider();

Mysha1.GetHashCode();

byte[] Myhash = Mysha1.Hash;

B.

SHA1 Mysha1 = new SHA1CryptoServiceProvider();

byte[] Myhash = null;

Mysha1.TransformBlock(msg, 0, msg.Length, Myhash, 0);

C.

SHA1 Mysha1 = new SHA1CryptoServiceProvider();

byte[] Myhash = BitConverter.GetBytes(Mysha1.GetHashCode());

D.

SHA1 Mysha1 = new SHA1CryptoServiceProvider();

byte[] Myhash = Mysha1.ComputeHash(msg);

Buy Now
Questions 13

You work as a Software Developer for ABC Inc. You create an application, and you want to define a component for your application. In some deployments, the component will be deployed on the same computer as the application. In other deployments the component will be deployed on a separate computer. You create a Web service. You want a new object of the Web service to be created whenever a customer makes a call to the Web service. Drag and drop the appropriate statement to accomplish the task.

GSSP-NET-CSHARP Question 13

Options:

A.
Buy Now
Questions 14

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 add a Web Form that contains a button named bCancel. The button allows users to exit the form. When users click the button, validation should not occur. However, during testing you find that clicking the button does not allow users to exit the form. You need to ensure that users can always exit the page. What will you do?

Options:

A.

Set the CausesValidation property of the bCancel button to false.

B.

Set the AccessibleName property of the validation controls on the Web Form to " false " .

C.

Set the ControlToValidate property of the validation controls on the Web Form to the ID of the control.

D.

Set the Enabled property of the validation controls on the Web Form to false.

Buy Now
Questions 15

Peter works as a Software Developer for GenTech Inc. He develops an application named App1 using Visual Studio .NET. App1 uses an assembly named Assembly1. Peter installs App1 and Assembly1 to the C:\Program Files\App1 and C:\Program Files\Assembly1 folders respectively. While executing App1, Peter finds that App1 fails to execute with TypeLoadException. What will he do to resolve this issue.

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

Options:

A.

Uninstall Assembly from the C:\Program Files\Assembly1 folder.

B.

Reinstall Assembly1 to the C:\Windows\Microsoft .NET Framework\Assembly1 folder.

C.

Reinstall Assembly1 to the C:\Program Files\App1 folder.

D.

Change the system path to C:\Program Files\Assembly1.

Buy Now
Questions 16

Allen works as a Software Developer for ManSoft Inc. He develops an application using Visual Studio .NET 2005. Only the employees of the company use the application. Allen wants to ensure that when a request on a page is made by a user the application asks for his authentication. Which of the following actions will Allen take to accomplish the task?

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

Options:

A.

Specify User.Identity to authenticate the user.

B.

Set the impersonate attribute of the < identity > element to true.

C.

Specify the username and password attributes.

D.

Set the impersonate attribute of the < identity > element to false.

Buy Now
Questions 17

You work as a Software Developer for WebTech Inc. You create a Web service named Utils. You want a new object of Utils to be created whenever a customer makes a call to the service. Which of the following will accomplish this task?

Options:

A.

Create Utils as a SingleCall object.

B.

Create Utils as a Singleton object.

C.

Create Utils as a Marshal By Value object.

D.

Create Utils as a Marshal By Reference object.

Buy Now
Questions 18

You work as an Application Developer for ABC Inc. You are assigned with developing a Web site that will handle information related to monthly sales of the company. You wish to secure the Web site so that only employees of the Accounts department can view the Web pages. You need to create roles for the employees of this department. The user account information will be stored in a SQL Server database named Database. You decide to do all this by using the Web Site Administration Tool. Which of the following types of security will you use to accomplish the task?

Options:

A.

Basic authentication

B.

Integrated Microsoft Windows authentication

C.

Forms-based authentication

D.

Digest authentication

Buy Now
Questions 19

Which of the following is not a method of controlling traffic through a firewall?

Options:

A.

Application filtering

B.

Encryption-level filtering

C.

Stateful inspection

D.

Packet filtering

Buy Now
Questions 20

Which of the following is a reference type in Visual C#?

Options:

A.

primitive types

B.

strings

C.

enums

D.

structures

Buy Now
Questions 21

Allen works as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. He creates an application using .NET Framework. He wants to encrypt all his e-mails that he sends to anyone. Which of the following will he use to accomplish the task?

Options:

A.

PPP

B.

FTP

C.

PPTP

D.

PGP

Buy Now
Questions 22

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 the development of a class named TestCase and you have used only reference types in the class. The class will be used in an application that will use pointers. Therefore, you are required to convert the reference types to pointers in the class. Which of the following keywords will you use to accomplish the task?

Options:

A.

base

B.

virtual

C.

override

D.

unsafe

Buy Now
Questions 23

Allen works as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. He creates an application using .NET Framework. He wants to encrypt all his e-mails that he sends to anyone. Which of the following will he use to accomplish the task?

Options:

A.

PPP

B.

PPTP

C.

FTP

D.

PGP

Buy Now
Questions 24

Which of the following is the best encryption algorithm to encrypt and decrypt messages?

Options:

A.

AES

B.

TripleDES

C.

DES

D.

RSA

Buy Now
Questions 25

Tony works as a Software Developer for TechNet Inc. He creates a satellite assembly named

SatAssembly1. He wants to install SatAssembly1 in the global assembly cache. Therefore, he compiles the assembly by using the Al.exe tool and signs SatAssembly1. Which of the following possible tools will Tony use to sign SatAssembly1?

Each correct answer represents a complete solution. Choose two.

Options:

A.

Installer tool

B.

File Signing tool

C.

.NET Services Installation tool

D.

Strong Name tool

Buy Now
Questions 26

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 recently finished the development of an application using .NET Framework 2.0. The application can be used only for cryptography. Therefore, you have implemented the application on a computer. What will you call the computer that implemented cryptography?

Options:

A.

Cryptographic toolkit

B.

Cryptosystem

C.

Cryptographer

D.

Cryptanalyst

Buy Now
Questions 27

Which of the following utilities is used to encrypt credentials and session state connection strings?

Options:

A.

Aximp.exe

B.

Aspnet_regiis.exe

C.

Aspnet_compiler.exe

D.

Aspnet_setreg.exe

Buy Now
Questions 28

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 will be used by school children to read a sequential chain of characters. What will you do to accomplish this task?

Options:

A.

Use the File class.

B.

Use the TextWriter class.

C.

Use the TextReader class.

D.

Use the BinaryReader class.

Buy Now
Questions 29

Bill works as a Software Developer for SunInfo Inc. He develops an application named SunApplication using C# .NET. The employees of the company use SunApplication for viewing and editing inventory data. SunApplication receives data from a file named MyFile.xml, which currently does not provide any information. Bill decides to write code to get information from the MyFile.xml file. Which of the following code segments will he use to resolve the issue?

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

Options:

A.

FileInfo FI = new FileInfo(@ " c:\temp\MyFile.xml " );

Console.WriteLine( " Filename " + FI.FullName );

Console.WriteLine( " Created at " + FI.CreationTime );

Console.WriteLine( " Accessed at " + FI.LastAccessTime );

B.

FileInfo FI = new FileInfo ( " @c:\program files\temp\MyFile.xml " );

Console.WriteLine ( " Filename " + FI.FullName );

Console.WriteLine( " Created at " + FI.CreationTime );

Console.WriteLine( " Accessed at " + FI.LastAccessTime );

C.

FileInfo FI = new FileInfo( " MyFile.xml " );

Console.WriteLine( " Filename " + FI.FullName );

Console.WriteLine( " Created at " + FI.CreationTime );

Console.WriteLine( " Accessed at " + FI.LastAccessTime );

D.

string str=@ " c:\windows\MyFile.xml " ;

FileInfo FI = new FileInfo (str);

FI.Open (FileMode.Open, FileAccess.Read);

Console.WriteLine( " Filename " + FI.FullName );

Console.WriteLine( " Created at " + FI.CreationTime );

Console.WriteLine( " Accessed at " + FI.LastAccessTime );

Buy Now
Questions 30

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 need to represent a strongly typed lambda expression as a data structure in the form of an expression tree. Which of the following classes will you use to accomplish the task?

Options:

A.

MethodCallExpression

B.

Expression(TDelegate)

C.

Expression

D.

LambdaExpression

Buy Now
Questions 31

You work as a Software Developer for ABC Inc. You create an ASP.NET Web application named MyWebApplication. You want to provide secure access to company ' s customers. You want to enable users to access the site from any browser by providing their user name and password. Which of the following authentication methods will you use to accomplish this task?

Options:

A.

Windows NT

B.

Secure Socket Layer

C.

Basic

D.

Single Sign-On

E.

Certificate Server

Buy Now
Questions 32

Which of the following providers is a block cipher that encrypts and decrypts data in blocks of 8 bytes?

Options:

A.

RNGCryptoServiceProvider

B.

SHA1CryptoServiceProvider

C.

RC2CryptoServiceProvider

D.

RSACryptoServiceProvider

Buy Now
Questions 33

Which of the following classes limits the number of threads that can access a resource or pool of resources concurrently?

Options:

A.

Semaphore

B.

Mutex

C.

Thread

D.

Monitor

Buy Now
Questions 34

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

Buy Now
Questions 35

Maria works as a Software Developer for BlueWell Inc. She develops an application, named App1, using Visual C# .NET. The application displays employee details from a SQL Server database. Maria wants to use a string array , named MyArray, in the application code to store employee names. Which of the following statements will she use to declare MyArray?

Options:

A.

Option Base 1 string[] MyArray = new string[9] ;

B.

string[] MyArray = new string[9] ;

C.

Option Base 0 string[] MyArray = new string[9] ;

D.

string[] MyArray = new string[0 to 9] ;

E.

string MyArray[9] = new string;

Buy Now
Questions 36

Which of the following is the best way to authenticate users on the intranet?

Options:

A.

Forms authentication

B.

NT authentication

C.

Mutual authentication

D.

Basic authentication

Buy Now
Questions 37

You work as a Software Developer for Mansoft Inc. You create an application and use it to create users as members of the local Users group. Which of the following code snippets imperatively demands that the current user is a member of the local Users group?

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

Options:

A.

System.AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);

PrincipalPermission MyPermission = new PrincipalPermission(null, @ " BUILTIN\Users " , true);

MyPermission.Demand();

B.

System.AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);

PrincipalPermission MyPermission = new PrincipalPermission(null, @ " Users " , true); MyPermission.Demand();

C.

PrincipalPermission MyPermission = new PrincipalPermission(null, @ " BUILTIN\Users " , true); MyPermission.Demand();

D.

PrincipalPermission MyPermission = new PrincipalPermission(null, @ " Users " , true); MyPermission.Demand();

Buy Now
Questions 38

You work as a Web Application Developer for SunInfo Inc. The company uses Visual Studio 2008 as its application development platform. You create a Windows Forms application using .NET Framework 3.5. You add a button control to a form named form1. You want to retrieve more information about the mouse event. You use the MouseClick event in your application. Which of the following parameters will you pass to the event handler of the MouseClick event?

Options:

A.

An object parameter representing the sender of the event and an instance of KeyEventArgs

B.

An object parameter representing the sender of the event and an EventArgs parameter

C.

An object parameter representing the sender of the event and an instance of KeyPressEven tArgs

D.

An object parameter representing the sender of the event and an instance of MouseEventA rgs

Buy Now
Questions 39

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 .NET Framework. The application is using an assembly. You want to ensure that the application provides the best performance. Security is not a consideration. Which of the following permission sets will you use to accomplish the task?

Options:

A.

Everything

B.

FullTrust

C.

Nothing

D.

Execution

E.

LocalIntranet

F.

Internet

Buy Now
Questions 40

You work as a Software Developer for InfoTech Inc. You develop an application named MyApp that works as a scientific calculator. A user inputs data and retrieves the calculated results based on the input values. The application uses a SQL database that contains two tables. One table contains data related to standard calculation specifications and the other table stores input values entered by the user. You want to ensure that the user is able to retrieve appropriate data fast. Which of the following actions will you take to accomplish the task?

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

Options:

A.

Use more than one component to process input data.

B.

Write code that performs multiple tasks simultaneously.

C.

Run multiple processes on a single thread.

D.

Use a single component to process input data.

E.

Run multiple processes on separate threads.

Buy Now
Questions 41

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You have recently finished development of an ASP.NET Web application using .NET Framework 3.5. You deploy the application on a test server and enable the debugging. The application is hosted in IIS 6.0 and uses the default authentication. Integrated

Windows authentication is enabled and anonymous access is disabled. You have not got the administrative rights on the test server. The following configuration is present in the Web.config filE.

< authentication mode= " Windows " / >

< identity impersonate= " false " / >

< customErrors mode= " On " defaultRedirect= " GenericError.aspx " / >

< authorization >

< deny users= " ? " / >

< /authorization >

You are required to configure the Web.config file to debug the application from your development computer. Which of the following configurations will you use in the Web.config file?

Options:

A.

< authentication mode= " Forms " / >

B.

< identity impersonate= " true " / >

C.

< authorization >

< allow users= " ? " / >

< /authorization >

D.

< authorization >

< allow users= " * " / >

< /authorization >

Buy Now
Questions 42

You work as a Software Developer for ABC Inc. You are defining a component for an application. In some deployments, the component will be deployed on the same computer as the application. In other deployments the component will be deployed on a separate computer. The component has implicit dependencies and needs to access and use server-side resources that cannot cross system boundaries.

You must ensure that your component design supports both deployment scenarios. What will you do to accomplish the task?

Options:

A.

Create a SingleCall object.

B.

Create a marshal-by-value object.

C.

Create a marshal-by-reference object.

D.

Create a Singleton object.

Buy Now
Questions 43

You work as a Software Developer for ABC Inc. The Company uses .NET Framework as its application development platform. You are creating an application that will use multiple collections. Therefore, you decide to use only those collections that are available under both the System.Collections and System.Collections.Generic namespaces. Which of the following collections will you use to accomplish the task?

Each correct answer represents a complete solution. Choose three.

Options:

A.

SortedDictionary

B.

List

C.

Stack

D.

SortedList

E.

Comparer

Buy Now
Questions 44

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 create a Web form in the application that permits users to provide personal information. You add a DropDownList control to the Web form to retrieve the residential status of users. The default item that the DropDownList control displays is the " Select Country " option. You have to ensure that users select a country other than the default option. Which of the following validation controls should you use to accomplish this task?

Options:

A.

RangeValidator

B.

RequiredFieldValidator

C.

CustomValidator

D.

RegularExpressionValidator

Buy Now
Questions 45

You work as a Software Developer for ManSoft Inc. The company has several branches worldwide. The company uses Visual Studio.NET 2005 as its application development platform. You are creating a global application that will be used by all the branches of the company. You want to perform the encoding of Unicode characters with error detection capability. Which of the following classes will you use to accomplish the task?

Each correct answer represents a complete solution. Choose three.

Options:

A.

UTF8Encoding

B.

UnicodeEncoding

C.

UTF7Encoding

D.

UTF32Encoding

E.

ASCIIEncoding

Buy Now
Questions 46

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.

Buy Now
Questions 47

You work as a software developer for ManSoft Inc. The company uses Visual Studio .NET 2005 as its application development platform. You use C#. NET to create an assembly that will be consumed by other Visual Studio .NET applications. No Permissions should be granted to this assembly unless the assembly makes a minimum permission request. You need to write a code for the assembly that makes a minimum permission request. Which of the following code segments will you use to accomplish this task?

Options:

A.

[Assembly: PermissionSet(SecurityAction.RequestOptional, Unrestricted = false)]

B.

[Assembly: PermissionSet(SecurityAction.PermitOnly, Unrestricted = true)]

C.

[Assembly: PermissionSet(SecurityAction.PermitOnly, Unrestricted = false)]

D.

[Assembly: PermissionSet(SecurityAction.RequestOptional, Unrestricted = true)]

Buy Now
Questions 48

Rick works as a Software Developer for GenTech Inc. He develops an application named App1 by using C# .NET. App1 uses a Microsoft SQL Server database named Database1. Database1 contains a table named Table1. Table1 stores data entered through App1. Rick wants App1 to notify every fifteen minutes about the new data entered. He wants to develop another application named App2, which reads Table1 every fifteen minutes and sends new data to the concerned department of the company.

App2 will run on a computer that is used by several users who continuously log on and log off from the network to perform miscellaneous tasks. Which of the following .NET application types will Rick use to accomplish the task?

Options:

A.

Windows service

B.

Windows Form

C.

.NET remote object

D.

XML Web service

Buy Now
Questions 49

You work as a Software Developer for Mansoft Inc. You create an application and use it to create users as members of the local Users group. Which of the following code snippets imperatively demands that the current user is a member of the local Users group?

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

Options:

A.

System.AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);

PrincipalPermission MyPermission = new PrincipalPermission(null, @ " BUILTIN\Users " , true);

MyPermission.Demand();

B.

PrincipalPermission MyPermission = new PrincipalPermission(null, @ " BUILTIN\Users " , true); MyPermission.Demand();

C.

System.AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);

PrincipalPermission MyPermission = new PrincipalPermission(null, @ " Users " , true);

MyPermission.Demand();

D.

PrincipalPermission MyPermission = new PrincipalPermission(null, @ " Users " , true);

MyPermission.Demand();

Buy Now
Questions 50

Henry works as a Software Developer for InfoTech Inc. He develops a Web application for registered employees of the company. The application requires accessing several XML data stored in a database named Database1. However, Henry wants to ensure that the XML data is validated before being accessed. Which of the following classes will Henry use to validate the XML data?

Options:

A.

XmlValidatingReader

B.

XmlTextReader

C.

XmlNodeReader

D.

XmlReader

Buy Now
Questions 51

You work as a Software Developer for ManSoft Inc. You create an application using Visual Studio .NET

2005. You write the following code snippet in the application:

int amt = 50;

String s = " John gave me " + amt + " dollars " ;

Console.WriteLine(s);

What will be the output of the above code?

Options:

A.

" John gave me amt dollars "

B.

" John gave me 50 dollars "

C.

Integer variable cannot concatenate with the string

D.

Invalid type cast exception

Buy Now
Questions 52

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 the .NET Framework 3.5. The application contains two HTML pages named Error.htm and

PageNotFound.htm. You want to make sure that the following requirements are met:

l When any user requests a page that does not exist, the PageNotFound.htm page is displayed.

l When any other error occurs, the Error.htm page is displayed.

Which of the following code segments will you add to the Web.config file to accomplish this task?

Options:

A.

< customErrors mode= " On " defaultRedirect= " Error.htm " >

< error statusCode= " 404 " redirect= " PageNotFound.htm " / >

< /customErrors >

B.

< customErrors mode= " Off " >

< error statusCode= " 400 " redirect= " Error.htm " / >

< error statusCode= " 404 " redirect= " PageNotFound.htm " / >

< /customErrors >

C.

< customErrors mode= " On " >

< error statusCode= " 400 " redirect= " Error.htm " / >

< error statusCode= " 404 " redirect= " PageNotFound.htm " / >

< /customErrors >

D.

< customErrors mode= " Off " defaultRedirect= " Error.htm " >

< error statusCode= " 404 " redirect= " PageNotFound.htm " / >

< /customErrors >

Buy Now
Questions 53

Allen works as a Software Developer for Mansoft Inc. He creates an ASP.NET Web application named MyApplication. He wants to use the Health Monitor to monitor MyApplication to record details about events rather than just the values of specific data counters. Which of the following health monitoring child elements will he use to accomplish the task?

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

Options:

A.

Rules

B.

Profiles

C.

bufferModes

D.

customErrors

E.

eventMappings

F.

Providers

Buy Now
Questions 54

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You are developing an application using the .NET Framework 2.0.

You are required to use a datatype that will store only numbers ranging from -32,768 to 32,767.

Which of the following datatypes will you use to accomplish the task?

Each correct answer represents a complete solution. Choose two.

Options:

A.

int

B.

string

C.

short

D.

System.Int16

Buy Now
Questions 55

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. The application contains a data-bound control. The user interface (UI) for modifying data from a LinqDataSource control is typically provided through the data-bound control. You are required to perform automatic data modifications. Which of the following conditions are required to enable automatic data modifications?

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

Options:

A.

The class that is assigned to the ContextTypeName property must derive from DataContext .

B.

The GroupBy property cannot be assigned a value.

C.

The property that is assigned to the TableName property must derive from Table(TEntity).

D.

The Where property cannot be assigned a value.

E.

The Select property cannot be assigned a value.

Buy Now
Questions 56

Samantha works as a Software Developer for InfoWorld Inc. She develops a Web page named SalesReport.aspx for the employees of the company. However, she wants to ensure that all the requests for a particular employee are not stored on the server ' s memory. She also wants to ensure that no data is lost even after each user session has expired. Which of the following actions will Samantha take to accomplish the task?

Options:

A.

Use a cookieless session state for storing information.

B.

Use the profile properties feature for storing information.

C.

Use the application state for storing information.

D.

Use the session state with cookie for storing information.

Buy Now
Questions 57

Mark works as a Web Developer for ABC Inc. He develops an ASP.NET application, named MyApp1, using Visual Studio .NET. MyApp1 allows users to view and purchase company products.

It includes several pages. The start-up page of the application is Page1.aspx. He configures the application ' s Web.config file to use form-based authentication.

Mark wants users to log on to Page1.aspx by providing their user names and passwords. To accomplish this, he creates an ASP.NET page named UsersLogIn.aspx that allows each user to specify a user name and password. He then writes the following syntax in the Web.config filE.

< authentication mode= " Forms " >

< forms name= " MyName "

loginUrl= " /UsersLogIn.aspx "

protection= " All "

timeout= " 60 "

slidingExpiration= " true " >

< /forms >

< /authentication >

What will be the result?

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

Options:

A.

The session will expire after 60 seconds.

B.

The session will expire after 60 minutes.

C.

The session will expire after 60 hours.

D.

The session lifetime will be reset periodically.

E.

The session will never expire.

F.

Once the session lifetime is set, it will not change.

Buy Now
Questions 58

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 recently finished the development of an application using .NET Framework 2.0. The application can be used only for cryptography. Therefore, you have implemented the application on a computer. What will you call the computer that implemented cryptography?

Options:

A.

Cryptosystem

B.

Cryptanalyst

C.

Cryptographic toolkit

D.

Cryptographer

Buy Now
Questions 59

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 < codebase > 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

Buy Now
Questions 60

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

You want to ensure that the data input by a user falls within a predetermined range. Which of the following validation controls will you use to accomplish the task?

Options:

A.

RangeValidator

B.

CompareValidator

C.

RequiredFieldValidator

D.

RegularExpressionValidator

Buy Now
Questions 61

Allen works as a Software Developer for Mansoft Inc. He develops a Web application using Visual Studio .NET. He adds a Web reference to an XML Web service named MyWebService in the application. MyWebService includes a method named MyMethod, which takes user identification number as a parameter and returns a DataSet object containing user information. The System.ArgumentException is thrown if the user identification number does not lie between 1 and 500. Allen writes a try and catch block to capture the exception thrown by the Web service. Which of the following exceptions will the try and catch block catch if a user calls MyMethod passing 501 as a parameter?

Options:

A.

System.Web.Services.Protocols.SoapException

B.

System.Web.Services.Protocols.SoapHeaderException

C.

System.ApplicationException

D.

System.ArgumentNullException

Buy Now
Questions 62

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You are creating a .NET remoting application using .NET Framework 2.0.

The object of the application will be shared by multiple applications. You want to use simple, modular, extensible, and XML-based protocol to exchange messages between remoting applications. What will you do to accomplish the task?

Options:

A.

Use the BinaryFormatter class.

B.

Use client activated objects.

C.

Use the SoapFormatter class.

D.

Use the SOAP protocol.

Buy Now
Questions 63

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

Buy Now
Questions 64

Maria works as a Software Developer for BlueWell Inc. She develops an application, named App1, using Visual C# .NET. App1 contains a Form control, named Form1, for collecting users ' contact information. Form1 contains a TextBox control, named TextBox1. App1 requires users to enter data in TextBox1. Maria writes a method, named Method1, to validate the entered data. She adds an ErrorProvider control, named Control1, to Form1. Maria wants to ensure that App1 notifies the users if they enter invalid data in TextBox1. Which of the following code will she use to accomplish this?

Options:

A.

public void TextBox1_Validating(object sender, System.CancelEventArgs e)

{

if(Method1() == false)

{

Control1.UpdateBinding();

}

}

B.

public void TextBox1_Validating(object sender, System.ComponentModel.CancelEventArgs e)

{

if(Method1() == false)

{

Control1.SetError(TextBox1, " Invalid Email Entry. " );

}

}

C.

public void TextBox1_Validated(object sender, System.ComponentModel.CancelEventArgs e)

{

if(Method1() == false)

{

Control1.UpdateBinding();

}

}

D.

public void TextBox1_Validated(object sender, System.ComponentModel.CancelEventArgs e)

{

if(Method1() == false)

{

Control1.SetError(TextBox1, " Invalid Email Entry. " );

}

}

Buy Now
Questions 65

Maria works as a Software Developer for MarcLync Inc. She creates an XML Web service, named MyWebService, using Visual Studio .NET. Maria wants to debug MyWebService. Therefore, she attaches a debugger to the Web service process. However, Maria notices that whenever MyWebService is executed, it throws an exception System.Net.WebException after a certain time period. The exception displays the message " The current operation has timed-out. " Maria wants to modify the code in MyWebService. Which of the following actions will Maria take in order to resolve this issue?

Options:

A.

Set the timeout value for the MyWebService call to zero.

B.

Set the timeout value for the MyWebService call to false.

C.

Add an exception handling block.

D.

Set the timeout value for the MyWebService call to -1.

Buy Now
Questions 66

Allen works as a Software Developer for ABC Inc. He develops an application using Visual Studio .NET

2005. The application will be used for the registration of employees by filling a form provided in the application. The form contains the following fields:

l First Name

l Last Name

l Date of Birth

l E-mail

He provides a TextBox control for each field. He wants an employee to be able to receive a user-defined error message when he makes a wrong entry. Which of the following properties is mandatory if a

CustomValidator control is used to validate an entry?

Options:

A.

EnableViewState

B.

EnableTheming

C.

ErrorMessage

D.

IsValid

Buy Now
Questions 67

You work as a Software Developer for ABC Inc. You use Visual Studio .NET to develop a Windows application named MyWindowApp. You implement the security classes of the .NET Framework. When users interact with the application, the role-based validation should perform frequently. You must ensure that only validated Windows NT or Windows 2000 domain users are permitted to access the application. You add the appropriate Imports statements for the System.Security.Principal namespace and the System.Threading namespace. Which of the following code segments will you use to accomplish this task?

Options:

A.

Dim identity As WindowsIdentity = _WindowsIdentity.GetAnonymous()

Dim myprincipal As New WindowsPrincipal(identity)

B.

AppDomain.CurrentDomain.SetThreadPrincipal(_

PrincipalPolicy.WindowsPrincipal)

Dim myprincipal As WindowsPrincipal = _CType(Thread.CurrentPrincipal, WindowsPrincipal)

C.

Dim identity As WindowsIdentity = WindowsIdentity.GetCurrent()

Dim myprincipal As New WindowsPrincipal(identity)

D.

AppDomian.CurrentDomain.SetPrincipalPolicy(_

PrincipalPolicy.WindowsPrincipal)

Dim myprincipal As WindowsPrincipal = _CType(Thread.CurrentPrincipal, WindowsPrincipal)

Buy Now
Questions 68

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 " ? >

< Car

xmlns:xsi= " http://www.w3.org/2002/XMLSchema-instance "

xmlns:xsd= " http://www.w3.org/2002/XMLSchema "

category= " sedan " >

< model > racer < /model >

< mileage > 15000 < /mileage >

< conditionType > Excellent < /conditionType >

< /

B.

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

< Car

xmlns:xsi= " http://www.w3.org/2002/XMLSchema-instance "

xmlns:xsd= " http://www.w3.org/2002/XMLSchema "

category= " sedan " >

< model > racer < /model >

< mileage > 15000 < /mileage >

< condition > Excellent < /condition >

< /Car >

C.

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

< Car

xmlns:xsi= " http://www.w3.org/2002/XMLSchema-instance "

xmlns:xsd= " http://www.w3.org/2002/XMLSchema " "

CarType= " sedan " >

< model > racer < /model >

< miles > 15000 < /miles >

< condition > AboveAverage < /condition >

< /Car >

D.

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

< Car

xmlns:xsi= " http://www.w3.org/2002/XMLSchema-instance "

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

< category > sedan < /category >

< model > racer < /model >

< mileage > 15000 < /mileage >

< condition > Excellent < /condition >

<
Buy Now
Questions 69

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. You have recently finished development of an application using .NET Framework. The application used two threads named threadOne and threadTwo. You are required to modify the code of the application to prevent the execution of threadOne until threadTwo completes execution. What will you do to accomplish this task?

Options:

A.

Use a WaitCallback delegate to synchronize the threads.

B.

Configure threadTwo to run at a higher priority.

C.

Configure threadOne to run at a lower priority.

D.

Call the Sleep method of threadOne.

E.

Call the SpinLock method of threadOne

Buy Now
Questions 70

David works as a Software Developer for McRobert Inc. He develops a Windows-based application, named App1, using Visual C# .NET. The application contains a Form control, named Form1. He wants to write code to initialize class-level variables, named Var1, Var2, and Var3, as soon as Form1 is instantiated. Which of the following code will he use to accomplish this?

Options:

A.

private void Form1_Initialize(System.Object sender, System.EventArgs e)

{

int Var1 = 20;

int Var2 = 40;

int Var3 = 60;

}

B.

private void Form1_New(System.Object sender, System.EventArgs e)

{

int Var1 = 20;

int Var2 = 40;

int Var3 = 60;

}

C.

private void Form1_Load(System.Object sender, System.EventArgs e)

{

int Var1 = 20;

int Var2 = 40;

int Var3 = 60;

}

D.

private void Form1_Create(System.Object sender, System.EventArgs e)

{

int Var1 = 20;

int Var2 = 40;

int Var3 = 60;

}

Buy Now
Questions 71

John works as a Web Developer for ABC Inc. He develops an ASP.NET application, named MyApp1, using Visual Studio .NET. The application will be used in the Sales department to generate monthly reports. The company uses Microsoft Windows authentication. All users are in the TESTPRO1 domain. John wants to ensure that all users except Mark, Roger, and David are allowed to access the application. Which of the following code will he use in the application ' s Web.config file to accomplish the task?

Options:

A.

< authorization >

< allow users= " * " / >

< deny users= " TESTPRO1\Mark, TESTPRO1\Roger, TESTPRO1\David " / >

< /authorization >

B.

< authorization >

< allow users= " TESTPRO1\Mark, TESTPRO1\Roger, TESTPRO1\David " / >

< deny users= " * " / >

< /authorization >

C.

< authorization >

< deny users= " TESTPRO1\Mark " , " TESTPRO1\Roger " , " TESTPRO1\David " / >

< allow users= " * " / >

< /authorization >

D.

< authorization >

< deny users= " TESTPRO1\Mark, TESTPRO1\Roger, TESTPRO1\David " / >

< allow users= " * " / >

< /authorization >

Buy Now
Questions 72

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) {

switch (ex.Number) {

case 1:

// handle the exception...

break;

default:

// handle the exception...

break;

}

} catch (Exception ex) {

//

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) {

//

D.

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

}

Buy Now
Questions 73

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 .NET Framework 3.5. The application will be accessed by Internet users. You need to enable users to authenticate from the client-side script. You add the following code fragment in the Web.config file of the application:

< system.web.extensions >

< scripting >

< webServices >

< authenticationService enabled= " true " / >

< /webServices >

< /scripting >

< /system.web.extensions >

You must configure the application to ensure that user credentials are validated against Active Directory by using the client-side script. What will you do to accomplish this?

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

Options:

A.

Add the following code fragment to the Web.config file of the application:

< authentication mode= " Windows " / >

B.

Configure the application to use the ActiveDirectoryMembershipProvider class.

C.

Add the following code fragment to the Web.config file of the application:

< authentication mode= " Forms " / >

D.

Configure the application to use the SqlMembershipProvider class.

E.

Add the following code fragment to the Web.config file of the application:

< authentication mode= " Passport " / >

Buy Now
Questions 74

Which of the following code snippets is an example of tight encapsulation?

Options:

A.

protected int x;

protected void fun(){x=5;}

B.

int x;

public void fun(){x=5;}

C.

public int x;

public void fun() {x=5;}

D.

private int x;

public void fun(){x=5;}

E.

private int x;

private void fun(){x=5;}

Buy Now
Questions 75

You work as Enterprise Application Developer in SunInfo Inc. The company uses Microsoft .NET Framework 3.5. You design an application. You are required to execute queries against a collection and file directories. Which of the following data access technologies will you use to accomplish the task?

Options:

A.

LINQ to Objects

B.

LINQ to Data Services

C.

LINQ to XML

D.

LINQ to DataSets

Buy Now
Questions 76

Smith works as a Software Developer for ABC Inc. He creates an application using Visual Studio .NET 2005. The application displays " Welcome to ABC " on the top-left corner of a form. He writes the following code:

StringBuilder strbuild1 = new StringBuilder(20);

strbuild1.Append( " ' Welcome " );

strbuild1.Append( " " );

strbuild1.Append( " to " );

strbuild1.Append( " " );

strbuild1.Append( " ABC ' " );

string str1 = strbuild1.ToString();

Console.WriteLine(str1);

Console.ReadLine();

What is the main purpose of using StringBuilder object in the application?

Options:

A.

To create dynamic or mutable strings.

B.

To concatenate two or more different set of strings or a set of Unicode characters.

C.

To convert a value of the StringBuilder object to the String object.

D.

To append a specified string to the end of the StringBuilder object.

Buy Now
Questions 77

You work as an ADO.NET Application Developer for ABC Inc. The company uses Microsoft Visual Studio .NET 2008 as its application development platform. You create an ADO.NET application by using .NET Framework 3.5. You are using the System.Linq.Expressions namespace to represent the code expression as objects in the form of expression trees. You want to initialize the members of a newly created object. What will you do to accomplish the task?

Options:

A.

Use the MemberBinding class

B.

Use the UnaryExpression class

C.

Use the MemberBindingType enumeration

D.

Use the MemberListBinding class

Buy Now
Questions 78

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:

GSSP-NET-CSHARP Question 78

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 " ? >

< Car

xmlns:xsi= " http://www.w3.org/2002/XMLSchema-instance "

xmlns:xsd= " http://www.w3.org/2002/XMLSchema "

category= " sedan " >

< model > racer < /model >

< mileage > 15000 < /mileage >

< condition > Excellent < /condition >

< /Car >

B.

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

< Car

xmlns:xsi= " http://www.w3.org/2002/XMLSchema-instance "

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

< category > sedan < /category >

< model > racer < /model >

< mileage > 15000 < /mileage >

< condition > Excellent < /condition >

<
C.

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

< Car

xmlns:xsi= " http://www.w3.org/2002/XMLSchema-instance "

xmlns:xsd= " http://www.w3.org/2002/XMLSchema " "

CarType= " sedan " >

< model > racer < /model >

< miles > 15000 < /miles >

< condition > AboveAverage < /condition >

< /Car >

D.

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

< Car

xmlns:xsi= " http://www.w3.org/2002/XMLSchema-instance "

xmlns:xsd= " http://www.w3.org/2002/XMLSchema "

category= " sedan " >

< model > racer < /model >

< mileage > 15000 < /mileage >

< conditionType > Excellent < /conditionType >

< /

Buy Now
Questions 79

Julia works as a Software Developer for Mansoft Inc. She develops an application using Visual Studio .NET. The application uses a method named MyMethod, which is located in an unmanaged DLL. Julia wants MyMethod to require the application to allocate unmanaged memory, fill the data, and pass the memory address to the application. She also wants to ensure that on returning from MyMethod, the application de-allocates the unmanaged memory. What will Julia do to accomplish the task?

Options:

A.

Use the methods of the MemoryStream class.

B.

Use the Marshal class.

C.

Derive a new class from the Stream class, and override the allocation methods.

D.

Use a byte array.

Buy Now
Questions 80

You work as a Software Developer for Mansoft Inc. You create an application and use it to create code access security policies. Which of the following tools will you use to examine and modify code access security policies from a batch file?

Options:

A.

GacUtil.exe

B.

StoreAdm.exe

C.

Caspol.exe

D.

Tlbimp.exe

E.

Sn.exe

Buy Now
Questions 81

You are working on an ASP.NET application that will handle shopping cart for online users. You wish to generate images of all your company ' s products dynamically on one of the application ' s Web pages. You need to modify your configuration settings file for this purpose. Which of the following sections of the configuration file will you use to accomplish the task?

Options:

A.

< httpHandlers >

B.

< httpModules >

C.

< httpRuntime >

D.

< httpCookies >

Buy Now
Questions 82

You work as a Software Developer for ManSoft Inc. The company uses Visual Studio.NET 2005 as its application development platform. You have recently created an application that includes the code shown below.

string str1 = " ABC " ;

string str2 = " u " ;

str2 += " Certify " ;

Console.WriteLine(str1 == str2);

Console.WriteLine((Object) str1 == (Object) str2);

Console.WriteLine(str1.Equals(str2));

What will be the output of the above code?

Options:

A.

True

True

True

B.

True

False

True

C.

False

False

False

D.

False

True

False

Buy Now
Questions 83

Roger works as a Software Developer for BlackWell Inc. He develops an application, named MyApplication1, using Visual Studio .NET. The application contains a form, named MyForm1, which will be used to set a password for a user. A password allotted to a user will be case-sensitive. MyForm1 contains several controls including two TextBox controls, named txtPassword and txtConfirm, respectively. The txtMyPassword control is used to accept a string from a user. The string entered in txtPasword will be used as the password for the user. In txtConfirm, the user has to retype the string that he enters in txtPassword. This will ensure that there are no typing errors. MyForm1 also contains a Button control, named cmdSetPassword, which when clicked will set the password for the user.

Before setting the password for a user, Roger wants to ensure that the two text boxes contain the same string. In order to accomplish this, he decides to use the StrComp function. The password for a user can only be set if the StrComp function returns 0. He has not used an Option Compare statement in the code. Which of the following statements can Roger use to compare the two strings?

Each correct answer represents a complete solution. Choose two.

Options:

A.

StrComp(txtPassword.Text, txtConfirm.Text, CompareMethod.Binary)

B.

StrComp(txtPassword.Text, txtConfirm.Text, CompareMethod.Text)

C.

StrComp(txtPassword.Text, txtConfirm.Text, CompareMethod.CaseSensitive)

D.

StrComp(txtPassword.Text, txtConfirm.Text)

Buy Now
Questions 84

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 are creating an application using .NET Framework 2.0. The application will be used by all the branches of the company. You are using the CompareInfo class for culture-sensitive string comparisons. You write the following code in the application:

String s1 = " C rtify " ;

String s2 = " c rtify " ;

String s3 = " c rtify " ;

You need to compare the s1 string with the s2 string and ensure that the string comparison must ignore case. Which of the following code segments will you use to accomplish the task?

Options:

A.

CompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo;

Console.WriteLine(cmp.Compare(s1, s2, CompareOptions.Ordinal));

B.

CompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo;

Console.WriteLine(cmp.Compare(s1, s2, CompareOptions.None));

C.

CompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo;

Console.WriteLine(cmp.Compare(s1, s2, CompareOptions.IgnoreCase));

D.

CompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo;

Console.WriteLine(cmp.Compare(s1, s2, CompareOptions.OrdinalIgnoreCase));

Buy Now
Questions 85

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) {

//

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) {

//

Buy Now
Questions 86

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 will perform security related operations. You want to manage the role-based security in the application. What will you do to accomplish the task?

Options:

A.

Use the StackTrace property.

B.

Use the Process class.

C.

Use the WindowsIdentity class.

D.

Use the WindowsPrincipal class.

Buy Now
Questions 87

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.

Buy Now
Questions 88

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 the .NET Framework 3.5. 91. The application uses ASP.NET AJAX, and you need to deploy it in a Web farm environment. You are required to configure SessionState for the application. Which of the following code segments will you use to accomplish this task?

Options:

A.

< sessionState mode= " InProc " cookieless= " UseDeviceProfile " / >

B.

< sessionState mode= " InProc " cookieless= " UseCookies " / >

C.

< sessionState mode= " SQLServer " cookieless= " UseUri " sqlConnectionString= " Integrated

Security=SSPI;data source=MySqlServer; " / >

D.

< sessionState mode= " SQLServer " cookieless= " false " sqlConnectionString= " Integrated

Security=SSPI;data source=MySqlServer; " / >

Buy Now
Questions 89

You work as an Enterprise Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a logging utility class using .NET Framework 3.5. The utility class writes logs to event log services. You are required to ensure that the client applications that use the utility class can create an instance of the utility class only if they have access rights to write to the event log services.

What will you do?

Options:

A.

Use role based security in the class constructor.

B.

Use declarative security check on the assembly.

C.

Use role based security on the class.

D.

Use code access security on the class.

Buy Now
Questions 90

Dilton works as a Software Developer for GREC Research Center (Central). This research center has its subsidiaries in several different cities. Dilton wants to retrieve a Soil Test Report for the Geological Survey Department. He wants the test report to be available to all the members of the department over the Internet. He creates an XML Web service named SampleReport. SampleReport contains a Web method named SoilTestDetails that requires additional security.

Dilton decides to use generic role-based security to secure the SoilTestDetails method from unauthorized users. Dilton writes code to ensure that once a user is authenticated, a user identity named Generic is created. The Generic user identity has a group membership named GeoSurvey to allow the authenticated users access to the SoilTestDetails Web method. Which of the following code segments should Dilton use to accomplish the task?

Options:

A.

GenericIdentity GenIdentity = new GenericIdentity( " Generic " , " Custom " );

string[] GeoRoles = { " GeoSurvey " };

GenericPrincipal GeoPrincipal = new GenericPrincipal(GenIdentity, GeoRoles);

Thread.CurrentPrincipal = GeoPrincipal;

B.

IIdentity GeoIdentity = new GenericIdentity( " Generic " , " Custom " );

WindowsIdentity WinGeoIdentity = (WindowsIdentity) GeoIdentity;

string[] GeoRoles = { " GeoSurvey " };

GenericPrincipal GenGeoPrincipal = new GenericPrincipal(WinGeoIdentity, GeoRoles );

WindowsIdentity.Impersonate(WinGeoIdentity.Token);

C.

IIdentity GeoIdentity = new GenericIdentity( " Generic " , " GeoSurvey " );

IPrincipal GeoPrincipal = new WindowsPrincipal((WindowsIdentity) GeoIdentity);

Thread.CurrentPrincipal = GeoPrincipal;

D.

System.Security.Principal.IIdentity MyGenericIdentity = new GenericIdentity( " Generic " ,

" Custom " );

string[] GeoRoles = { " GeoSurvey " };

GenericPrincipal GenGeoPrincipal = new GenericPrincipal(MyGenericIdentity, GeoRoles);

MyGenericIdentity = WindowsIdentity.GetCurrent();

Buy Now
Questions 91

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You are developing an application using .NET Framework 2.0. You are required to use a datatype that will store only the numbers. The numbers should be in positive form and should not be larger than 65,535. Which of the following datatypes will you use to accomplish the task?

Each correct answer represents a complete solution. Choose two.

Options:

A.

System.UInt16

B.

ushort

C.

System.Int16

D.

int

E.

short

Buy Now
Questions 92

Jerry works as a Web Developer for Soft Solutions Inc. He creates an assembly named

MyAssembly so that it can be shared among several existing client applications. He verifies that MyAssembly can be installed into the global assembly cache of the client computer. However, he does not want to use a Windows setup for installing the assembly. Which of the following actions should Jerry take to install the assembly into the global assembly cache?

Each correct answer represents a complete solution. Choose two.

Options:

A.

Use the Global Assembly Cache (Gacutil.exe) tool.

B.

Use Windows Explorer.

C.

Use the .NET Framework Configuration tool.

D.

Use Microsoft Windows Installer 2.0.

Buy Now
Questions 93

You work as a Software Developer for ManSoft Inc. The company uses Visual Studio .NET 2005 as its application development platform. You create an application named MyApplication using Visual C# .NET. You use the Mutex class for synchronization among threads. You create three threads to enter the protected area one by one. This means that if one thread is already in the protected area, no other thread is allowed to enter in the protected area. When you execute the application, it gives the following output:

GSSP-NET-CSHARP Question 93

As you can see in the above code window, all the three threads enter the protected area at the same time. Drag and drop the appropriate statements that will allow the threads to enter the protected area one by one.

GSSP-NET-CSHARP Question 93

Options:

A.
Buy Now
Questions 94

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 SingleCall Activated Object (SAO) and check for duplicate client delegate methods before raising the event.

B.

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

C.

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.

D.

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

Buy Now
Questions 95

You work as an Application Developer for ABC. The company uses Visual Studio .NET Framework 3.5 as its application development platform. You are working on enhancements to an existing WPF application. One problem you have been encountering is that users of the current version routinely enter invalid data, and since the controls use data binding, that data either gets put in the database incorrectly, or in some cases generates a database error. You want to incorporate validation with your data bound controls. Which of the following choices is the best way to accomplish this goal?

Options:

A.

Use the default error template and implement it when binding the individual controls to the data source.

B.

Assign validator controls to each control you wish to validate, and incorporate those in the binding of that control to the data source.

C.

Use a custom error template and implement it when binding the individual controls to the data source.

D.

Assign validator controls to each control you wish to validate, and set the validation properties to indicate what constitutes valid data.

Buy Now
Questions 96

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You create a Windows service application that will be used by Visual Studio .NET applications. You want to ensure that an access to the Windows service is restricted. Therefore, you decide to use the ServiceInstaller class. You want to specify the security context of the Windows service application. Whic

Options:

A.

Password property

B.

UserName property

C.

Context property

D.

Account property

Buy Now
Questions 97

Nick works as a Programmer for ES International Ltd. The company is a manufacturer and a dealer of new cars. This year, the annual sales report of the company showed that the sale of its Escort car model dropped significantly. To lower the inventory of the Escort car model, the company management finally decided to give a 25 to 30 percent discount on the Escort model. Nick receives an XML document that contains a list of the company ' s car models. Nick wants to load the incoming XML document into a memory stream. He also needs to use another XML document. Which of the following methods will he use to accomplish this task?

Each correct answer represents a complete solution. Choose two.

Options:

A.

LoadXml()

B.

WriteTo()

C.

Load()

D.

ImportNode()

Buy Now
Questions 98

You work as a Software Developer for ABC Inc. You create a Console application to create multiple satellite assemblies. Which of the following statements about satellite assemblies are true?

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

Options:

A.

They do not contain any executable code.

B.

They are used to deploy language-specific resources for an application.

C.

The Assembly Linker tool is used to compile .resources files into satellite assemblies.

D.

An application can have only one satellite assembly.

Buy Now
Questions 99

You work as a Web Application Developer for SunInfo Inc. The company uses Visual Studio 2008 as its application development platform. You create a Web application using .NET Framework 3.5. Your application has a form that accepts a user name and email address. You want to validate the input text for the email address by matching against a pattern defined in the regular expression.

Which of the following validation controls will you use to accomplish the task?

Options:

A.

RegularExpressionValidator

B.

RangeValidator

C.

CompareValidator

D.

RequiredFieldValidator

Buy Now
Questions 100

You work as a Software Developer for ABC Inc. You create a Console application. You write the following code in the application:

RC2CryptoServiceProvider TestRC2 = new RC2CryptoServiceProvider();

Console.WriteLine(TestRC2.Mode);

What output will the above code display?

Options:

A.

Cipher Block Chaining (CBC)

B.

Output Feedback (OFB)

C.

Cipher Text Stealing (CTS)

D.

Electronic Codebook (ECB)

E.

Cipher Feedback (CFB)

Buy Now
Questions 101

John works as a Web Developer for ProMetaworks Inc. He creates an ASP.NET application, named MyApp1, using Visual Studio .NET. MyApp1 contains a page, named Page1. Page1 contains several TextBox controls that accept users ' input. John uses several validation controls on the page to validate input controls. He wants to display all the validation error messages on the page in a message box. However, he does not want the validation summary to be displayed inline on the Web page. What will he do to accomplish the task?

Options:

A.

Add a ValidationSummary control to the page. Set its ShowMessageBox and ShowSummary properties to true.

B.

Add a ValidationSummary control to the page. Set its DisplayMode property to MessageBox .

C.

Add a ValidationSummary control to the page. Set its ShowMessageBox property to true and ShowSummary property to false.

D.

Add a CustomValidator control to the page. Write a custom client-side script function. Set the ClientValidationFunction property of the control to the name of the function.

Buy Now
Questions 102

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. You need to read the entire contents of a file named Msg.txt into a single string variable using .NET Framework. Which of the following code segments will you use to accomplish the task?

Options:

A.

string NewResult = string.Empty;

StreamReader Strreader = new StreamReader( " Msg.txt " );

While (!Strreader.EndOfStream) {

NewResult += Strreader.ToString();

B.

string NewResult = null;

StreamReader Strreader = new StreamReader( " Msg.txt " );

NewResult = Strreader.ReadLine();

C.

string NewResult = null;

StreamReader Strreader = new StreamReader( " Msg.txt " );

NewResult = Strreader.ReadToEnd();

D.

string NewResult = null;

StreamReader Strreader = new StreamReader( " Msg.txt " );

NewResult = Strreader.Read().ToString();

Buy Now
Questions 103

You work as a Web Application Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You are creating an ASP.NET Web application using the .NET Framework. The application will allow users to post and reply to messages after logging. You create the authentication mechanisms for the application. You use SQL Server 2005 and the Active Directory service interchangeably for authentication. You are required to provide a method for users of the application to register. You also want to ensure that the application utilizes multiple authentication methods when users register. What will you do?

Options:

A.

Create a form that contains a CreateUserWizard control and configure custom membership providers.

B.

Create a form that contains a CreateUserWizard control and configure Membership provider s.

C.

Create a Web custom component and Configure Membership Providers.

D.

Create a Web custom component that offers a new user registration form and stores the outcome in XML that matches a defined schema.

Buy Now
Questions 104

Allen works as a Software Developer for ManSoft Inc. The company uses Visual Studio.NET as its application development platform. He creates an application. He wants to allow remote users to connect and access the application through a dial-up connection via the Internet. All data will be sent across a public network. For security reasons, the management wants to send data through the Internet in an encrypted form. The company plans to use a Layer 2 Tunneling Protocol (L2TP) connection. Which of the following communication protocols will Allen use to accomplish the task?

Options:

A.

IP Security (IPSec)

B.

Secure Electronic Transaction (SET)

C.

Pretty Good Privacy (PGP)

D.

Triple Data Encryption Standard (3DES)

Buy Now
Questions 105

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 the .NET Framework 3.5. The application is used to map HTTP requests to HTTP handlers based on a file name extension. You need to ensure that each HTTP handler processes individual HTTP URLs or groups of URL extensions in the application. Which of the following built-in HTTP handlers will you use to accomplish this task?

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

Options:

A.

Web service handler (*.asmx)

B.

Generic handler (*.ashx)

C.

Generic Web handler (*.ashx)

D.

ASP.NET page handler (*.aspx)

E.

Trace handler (trace.axd)

Buy Now
Questions 106

You work as a Software Developer for ABC Inc. You create an ASP.NET Web application named MyWebApplication. You want to provide secure access to company ' s customers. You want to enable users to access the site from any browser by providing their user name and password. Which of the following authentication methods will you use to accomplish this task?

Options:

A.

Windows NT

B.

Secure Socket Layer

C.

Basic

D.

Single Sign-On

E.

Certificate Server

Buy Now
Questions 107

Mark works as a Web Developer for TechCom Inc. He creates an ASP.NET application named

Application1 by using Visual Studio .NET. Only registered users of the company will be able to use the application. The application contains a page named UserAcc.aspx that allows new users to register themselves to the registered users ' list of the company. The UserAcc page contains several text box controls that accept users ' personal details such as user name, password, home address, zip code, phone number, etc. One of the text box controls on the page is named ZipProperty in which a user enters a zip code.

Mark wants to ensure that when a user submits the UserAcc page, ZipProperty must contain five numeric digits. Which of the following validation controls will he use to accomplish the task?

Each correct answer represents a complete solution. Choose two.

Options:

A.

RequiredFieldValidator

B.

RangeValidator

C.

CompareValidator

D.

RegularExpressionValidator

E.

RequiredValidator

Buy Now
Questions 108

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 the .NET Framework 3.5. The application contains a data-bound control. The user interface (UI) for modifying data from a LinqDataSource control is typically provided through the data-bound control. You are required to perform automatic data modifications. Which of the following conditions are required to enable automatic data modifications?

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

Options:

A.

The class that is assigned to the ContextTypeName property must derive from DataContext .

B.

The Where property cannot be assigned a value.

C.

The GroupBy property cannot be assigned a value.

D.

The Select property cannot be assigned a value.

E.

The property that is assigned to the TableName property must derive from Table(TEntity).

Buy Now
Questions 109

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 < probing > element.

D.

The < codeBase > element.

Buy Now
Questions 110

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

Buy Now
Questions 111

You work as a Software Developer for ManSoft Inc. The company has several branches worldwide. The company uses Visual Studio.NET 2005 as its application development platform. You are creating an application that will be used by all the branches of the company. You use the Code Access Security to manage the security of the application. The application requires to obtain minimum permissions to execute properly. Which of the permissions will you grant to accomplish the task?

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

Options:

A.

Permissions View

B.

Identity Permissions

C.

Code Access Permissions

D.

Role-Based Permissions

Buy Now
Questions 112

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 are creating an application that generates summary reports. These reports will be viewed by all the chief executives in the Korean branch. Therefore, you need to ensure that the summary reports must contain Korean characters. Which of the following encoding types will you use to accomplish the task?

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

Options:

A.

UTF-8

B.

UTF-32

C.

Unicode

D.

ASCIIEncoding

E.

UTF-16

Buy Now
Questions 113

You work as a Software Developer for ManSoft Inc. The company uses Visual Studio.NET as its application development platform. You create an application using the .NET Framework. You use ManSoft ' s intranet to deploy the application to client computers. You use the security configuration of the .NET Framework to configure security for the application at the enterprise policy level. Virus attacks caused the IT manager at ManSoft Inc. to tighten the security at the machine level. Users reported that they could no longer execute the application. Which of the following options will you use to resolve this issue?

Options:

A.

Include the LevelFinal attribute in the intranet code group policy at the enterprise level by using the Code Access Security Policy tool (Caspol.exe).

B.

Include the Exclusive attributes in the intranet code group policy at the enterprise level by using the Code Access Security Policy tool (Caspol.exe).

C.

Include the LevelFinal attribute in the intranet code group policy at the enterprise level by using the Permission View tool (Permview.exe).

D.

Include the Exclusive attribute in the intranet code group policy at the enterprise level by using the Permission View tool (Permview.exe).

Buy Now
Questions 114

Sam works as a Software Developer for GenTech Inc. He develops an ASP.NET application, named App1, using Visual Studio .NET. App1 is used within the company ' s intranet. Employees use Internet Explorer on the intranet. Sam creates a page named Page1.aspx. Sam wants the page to be redirected to the home page if an error occurs. Which of the following attributes of the @ Page directive will he use to accomplish the task?

Options:

A.

MasterPageFile

B.

CodePage

C.

PageError

D.

ErrorPage

Buy Now
Questions 115

David works as a Software Developer for GenTech Inc. He develops a Web application named

WebApp, which displays the monthly inventory reports of the company. The company ' s management wants only employees in the Sales Department to have access to WebApp. They will have to be authenticated with a valid username and password. David wants to implement an authorization strategy in the application, which will require the Windows authentication mode of Web security. Which of the following modules will David use to accomplish the task?

Options:

A.

AnonymousIdentificationModule

B.

FormsAuthenticationModule

C.

UrlAuthorizationModule

D.

FileAuthorizationModule

Buy Now
Questions 116

You work as a Software Developer for ABC Inc. You create a Web page named MyWebForm1.aspx that displays a student ' s registration form. The page uses three CheckBox controls and several other Web server controls on the page. The CheckBox controls contain information about the educational qualifications. You want to ensure that a message containing educational status and relevant information is displayed as soon as a user clicks the CheckBox controls. Which of the following actions will you take to accomplish the task?

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

Options:

A.

Set the AutoPostBack property to false.

B.

Use the CheckedChanged event.

C.

Set the CausesValidation property to false.

D.

Set the CausesValidation property to true.

E.

Set the Checked property to true.

F.

Set the AutoPostBack property to true.

Buy Now
Questions 117

You work as a Software Developer for Mansoft Inc. You create an application using Visual Studio .NET 2005. You write code in the application and execute it, but it caused an error. Now, you want to find out the reason that has thrown the exception. Which of the following properties will you use to accomplish this task?

Options:

A.

Source

B.

StackTrace

C.

Message

D.

Data

E.

TraceSwitch

Buy Now
Questions 118

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..

Buy Now
Questions 119

You work as an ADO.NET Application Developer for ABC Inc. The company uses Microsoft Visual Studio .NET 2008 as its application development platform. You create an ADO.NET application by using .NET Framework 3.5. You are using the System.Linq.Expressions namespace. You need to specify an expression that applies a delegate or lambda expression to a list of argument expressions. Which of the following classes will you use to accomplish the task?

Options:

A.

ListInitExpression

B.

InvocationExpression

C.

MemberAssignment

D.

NewArrayExpression

Buy Now
Questions 120

You work as a Software Developer for SunSoft Inc. The company uses Visual Studio .NET 2005 as its application development platform. You use .NET Framework 2.0 to create several Windows applications. All applications use a common class library assembly named Customers. You deploy the application to the client computers on your company ' s intranet. Later, you modify the assembly. Any application that uses version 1.0.0.0 must now use version 2.0.0.0. Which of the following options will you use to accomplish the task?

Options:

A.

Modify the Publisher Policy file containing a reference to Customers.

B.

Modify the application configuration file for Customers.

C.

Modify the reference path for Customers.

D.

Modify the machine configuration file on your client computers.

Buy Now
Questions 121

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You create a Web service using .NET Framework 2.0. You want the Web service to utilize a two step process to map XML generated by Web methods to .NET objects. What will you do to accomplish the task?

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

Options:

A.

Use deserialization

B.

Use serialization

C.

Use Marshal-by-ref objects

D.

Use Marshal-by-value objects

Buy Now
Questions 122

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.

Buy Now
Questions 123

Mark works as a Software Developer for BlueWell Inc. He develops four Windows-based applications using Visual Studio .NET. All the applications use an assembly , named Assembly1. Mark deploys the applications on the company ' s intranet. Later, he modifies Assembly1 and wants to ensure that all the applications use the latest version of Assembly1. Which of the following files will Mark use to accomplish this?

Options:

A.

Publisher policy configuration file

B.

Security configuration file

C.

Machine configuration file

D.

Application configuration file

Buy Now
Questions 124

You work as a Software Developer for Mansoft Inc. You create an application. You want to use the application to encrypt data. You use the HashAlgorithmType enumeration to specify the algorithm used for generating Message Authentication Code (MAC) in Secure Sockets Layer (SSL) communications. Which of the following are valid values for HashAlgorithmType enumeration?

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

Options:

A.

RSA

B.

None

C.

DES

D.

MD5

E.

SHA1

F.

3DES

Buy Now
Questions 125

Mark works as a Software Developer for ABC Inc. He is participating in designing a .NET remoting component for an application that will be hosted on a load-balanced farm. For this, he creates a .NET remote object using Visual Studio .NET 2005. The .NET remote object is used to modify properties of a class. The class contains twenty properties. The .NET remote object is frequently used by client applications. He wants to minimize the network traffic. Which of the following actions will he take to accomplish the task?

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

Options:

A.

Use the Marshal-by-value objects.

B.

Use the SerializableAttribute attribute.

C.

Use the MarshalByRefObject class.

D.

Use the IDisposable interface.

Buy Now
Questions 126

Hannah works as a Programmer in a college of Information Technology. The company uses Visual Studio .NET as its application development platform. The Dean of the college wants to obtain the performance report of each student. Hannah develops an application named StudentPerformanceReport by using Visual C# .NET. This application uses a SQL Server database named Database1 and a stored procedure named PROC1. PROC1 executes a query that returns the internal assessment result of each student. Hannah uses a TextBox control named AssessmentText in the application form named MyForm. She wants to display the total test result of each student in the AssessmentText text box control. StudentPerformanceReport uses a SqlCommand object to run PROC1. Hannah wants to write code to call PROC1. PROC1 contains an output parameter and displays its value as " @AssessmentResult " in text format. Which of the following code segments can Hannah use to accomplish this task?

Each correct answer represents a complete solution. Choose two.

Options:

A.

AssessmentText.Text = (string)comm.Parameters[ " @AssessmentResult " ].Value;

B.

AssessmentText.Text = comm.Parameters[ " @AssessmentResult " ].SourceColumn;

C.

AssessmentText.Text = comm.Parameters[ " @AssessmentResult " ].ToString();

D.

AssessmentText.Text = comm.Parameters[ " @AssessmentResult " ].Value.ToString();

Buy Now
Questions 127

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. You are using the StringBuilder class to string values. You want to create a StringBuilder object that can store 75 characters and should be initialized with " ABC " . You also want to append a formatted string to the end of the StringBuilder object. Which of the following code segments will you use to accomplish the task?

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

Options:

A.

StringBuilder MyStrBuild = new StringBuilder(75);

MyStrBuild.AppendFormat( " ABC{0}{1}{2} " , " INDIA " , ' U ' , ' S ' );

B.

StringBuilder MyStrBuild = new StringBuilder( " ABC " , 75);

MyStrBuild.Append( " INDIAUS " );

C.

StringBuilder MyStrBuild = new StringBuilder( " ABC " );

MyStrBuil.Capacity=75;

MyStrBuild.AppendFormat( " INDIA{0}{1} " , ' U ' , ' S ' );

D.

StringBuilder MyStrBuild = new StringBuilder( " ABC " , 75);

MyStrBuild.AppendFormat( " INDIA{0}{1} " , ' U ' , ' S ' );

Buy Now
Questions 128

You work as a Software Developer for ManSoft Inc. The company has several branches worldwide. The company uses Visual Studio.NET 2005 as its application development platform. You are creating a global application that will be used by all the branches of the company. You want to perform the encoding of Unicode characters. Which of the following classes will you use to accomplish the task?

Each correct answer represents a complete solution. Choose three.

Options:

A.

UnicodeEncoding

B.

ASCIIEncoding

C.

UTF32Encoding

D.

UTF8Encoding

Buy Now
Questions 129

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;

Buy Now
Questions 130

John works as a Software Developer for CyberTech Inc. He creates an ASP .NET page named BookItemList.aspx, which displays a price list of computer books. Registered users have to first log on to the company ' s Web site in order to view the current price list of different computer books available on the Web site. Users want to maintain the page requests as long as they are accessing the Web page.

John wants to ensure that whenever the Web page BookItemList.aspx is posted back to the server, the price list should not be changed on the registered user ' s computer. He also wants to validate the page sent back to the server. Which of the following actions will John take to accomplish the task?

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

Options:

A.

Set the EnableEventValidation attribute to false.

B.

Set the EnableEventValidation attribute to true.

C.

Set the EnableViewState attribute to true.

D.

Set the EnableViewState attribute to false.

Buy Now
Questions 131

You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You have recently finished development of a Windows Forms application using .NET Framework 3.5. You have written complex foreach loops to retrieve data from collections. However, you want to modify the application, so that it uses LINQ queries in place of foreach loops. What will be the advantages of using LINQ queries instead of foreach loops?

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

Options:

A.

They provide powerful filtering, ordering, and grouping capabilities with least application co de.

B.

They can be ported to other data sources with slight or no alteration.

C.

They provide lambda expression in the form of an expression tree.

D.

They are more concise and readable, particularly when filtering multiple conditions.

Buy Now
Questions 132

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

The application contains a Web page that will be accessible through the Internet. The Web page holds a Web form that captures data that will be stored in a SQL Server 2008 database. The form at present uses a POST method. The Web page also holds JavaScript validation routines. The validation routines will be used to ensure that the input to the form meets the business requirements and does not contain any code that is unsafe.

There is currently no server-side validation being performed. You are required to evaluate the application and resolve security flaws in the Web page. What will you do?

Options:

A.

Change the method of the form action to GET.

B.

Use Script Controls and Extenders.

C.

Create new server-side validation routines.

D.

Move the validation routines to a content page.

Buy Now
Questions 133

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 create an ASP.NET application by using the .NET Framework 3.5. You need to implement a means to monitor Service Level Agreement (SLA) compliance in the application. You are required to identify a method to enable perfect calculation of the time that all requests take to process.

What will you do?

Options:

A.

Create and register a custom HttpModule.

B.

Use the IRequiresSessionState interface.

C.

Use the WebHttpBinding class.

D.

Create and register a custom HttpHandler.

Buy Now
Questions 134

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. You are using regular expression in the application to validate email, phone number, etc. You are required to match a Unicode character using hexadecimal numbers. Which of the following character escapes will you use to accomplish the task?

Options:

A.

\cC

B.

\x20

C.

\040

D.

\u0020

Buy Now
Questions 135

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

Buy Now
Questions 136

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.

Buy Now
Questions 137

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 an application using .NET Framework 2.0. The application has multiple threads that execute one after another. You want to modify the application and schedule the threads for execution based on their assigned priority. What will you do to accomplish the task?

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

Options:

A.

Use the Highest priority.

B.

Use the BelowNormal priority.

C.

Use the Normal priority.

D.

Use the Middle priority.

E.

Use the Lowest priority.

Buy Now
Questions 138

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 are creating an applications using .NET Framework 2.0. You want to allow users to view various details of a given unmanaged code. What will you do to accomplish the task?

Options:

A.

Use a COM/DCOM server.

B.

Use the Dispinterface.

C.

Use the Makecert.exe.

D.

Use the dumpbin.exe.

Buy Now
Questions 139

You work as a Software Developer for Hi-Tech Inc. You develop an application using Visual Studio .NET 2005. You create an unregistered COM DLL file named Com1.dll. You want to use this Com1.dll file in your application code. However, Com1.dll needs to be registered in the Windows Registry before it is used by the application. Which of the following tools will you use to accomplish the task?

Options:

A.

Wsdl.exe

B.

Regsvr32.exe

C.

Tlbimp.exe

D.

Disco.exe

Buy Now
Questions 140

You are working on an ASP.NET Web application and using .NET 2.0 as the application development platform. Authenticated users want their passwords to recover through the application. Which of the following are necessary to enable the user password recovery option for your application?

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

Options:

A.

Using an ASP.NET membership for authentication.

B.

Sending e-mail messages to the users.

C.

Using the PasswordRecovery control.

D.

Using the ChangedPassword control.

Buy Now
Questions 141

Andrew works as a Software Developer for Mansoft Inc. The company ' s network has a Web server that hosts the company ' s Web site. Andrew wants to enhance the security of the Web site by implementing Secure Sockets Layer (SSL). Which of the following types of encryption does SSL use?

Each correct answer represents a complete solution. Choose two.

Options:

A.

Symmetric

B.

Secret

C.

IPSec

D.

Asymmetric

Buy Now
Questions 142

Which of the following modes can be used to configure the Remote Debugging Monitor for remote debugging?

Options:

A.

Password Authentication

B.

Form Authentication

C.

No Authentication

D.

SQL Server Authentication

Buy Now
Questions 143

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You create a Web service using .NET Framework 2.0. You want the Web service to utilize a two step process to map XML generated by Web methods to .NET objects. What will you do to accomplish the task?

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

Options:

A.

Use deserialization

B.

Use serialization

C.

Use Marshal-by-ref objects

D.

Use Marshal-by-value objects

Buy Now
Questions 144

Session variables can be any valid __________.

Options:

A.

.NET Framework type

B.

Integer type

C.

SessionStateItemCollection object

D.

Object type

Buy Now
Questions 145

You work as a Web Administrator for BlueWell Inc. The company ' s sales employees access the Web server from remote locations via the Internet using Netscape Navigator or Internet Explorer. You want to secure the Web server. To secure the Web server, you want to use cookieless forms authentication. Which of the following properties will you use to accomplish the task?

Options:

A.

FormsCookiePath

B.

CookieDomain

C.

CookieMode

D.

FormsCookieName

Buy Now
Questions 146

Mark works as a Software Developer for GenTech Inc. He develops an application, named App1, using Visual Studio .NET. The application contains a Form control, named Form1, which enables users to edit information in a SQL Server database. Mark wants to save all the changes made by users in the database. He defines a boolean variable, named DataIsSaved, in the application code. DataIsSaved indicates whether or not all data are saved in the database. Mark wants to prevent Form1 from closing until all the changes are saved in the database. Which of the following code will he use to accomplish this?

Options:

A.

protected void Form1_Leave(object sender, System.ComponentModel.CancelEventArgs e) {

if(!DataIsSaved)

B.

Cancel = false;

else

C.

Cancel = true;

}

D.

protected void Form1_Leave(object sender, System.ComponentModel.CancelEventArgs e) {

if(!DataIsSaved)

E.

Cancel = true;

else

F.

Cancel = false;

}

G.

protected void Form1_Closed(object sender, System.ComponentModel.CancelEventArgs e) {

if(!DataIsSaved)

Buy Now
Questions 147

Allen works as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. He creates an application using .NET Framework. He wants to encrypt all his e-mails that he sends to anyone. Which of the following will he use to accomplish the task?

Options:

A.

PPP

B.

FTP

C.

PPTP

D.

PGP

Buy Now
Exam Code: GSSP-NET-CSHARP
Exam Name: GIAC GIAC Secure Software Programmer - C#.NET
Last Update: Apr 30, 2026
Questions: 491

PDF + Testing Engine

$63.52  $181.49

Testing Engine

$50.57  $144.49
buy now GSSP-NET-CSHARP testing engine

PDF (Q&A)

$43.57  $124.49
buy now GSSP-NET-CSHARP pdf