Black Friday Sale Special - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

Maria works as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. She creates a Web service and uses a Session object in it. She declares a variable in the Session object. What will be the scope of the variable?

A.

The variable will be available as long as a user interacts with it.

B.

The variable will be available forever.

C.

The variable will be available even after the session becomes inactive.

D.

The variable will be available as long as the session is active.

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.

A.

UnicodeEncoding

B.

ASCIIEncoding

C.

UTF32Encoding

D.

UTF8Encoding

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?

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.

You work as a Software Developer for ManSoft Inc. The company uses Visual Studio .NET as its application development platform. You create an application named MyRandomGen. You use the System.Security.Cryptography namespace. You want to create a code that randomly rolls the dice fifty times and displays the results on the screen. Which of the following code segments will you use to accomplish this task?

A.

for(int x = 0; x <= 50; x++)

Console.WriteLine(RollTheDice(6));

public static int RollTheDice(int sides)

{

byte[] random = new byte[1];

RNGCryptoServiceProvider Gen = new RNGCryptoServiceProvider();

Gen.GetBytes(random);

int ran = Convert.ToInt32(random[0]);

return ran % sides + 1;

}

B.

for(int x = 0; x <= 50; x++)

Console.WriteLine(RollTheDice(6));

public static int RollTheDice(int sides)

{

byte[] random = new byte[1];

RNGCryptoServiceProvider Gen = new RNGCryptoServiceProvider();

Gen.GetRandom(random);

int ran = Convert.ToInt32(random[0]);

return ran % sides + 1;

}

C.

for(int x = 0; x <= 50; x++)

Console.WriteLine(RollTheDice(6));

public static int RollTheDice(int sides)

{

byte[] random = new byte[1];

RNGCryptoServiceProvider Gen = new RNGCryptoServiceProvider();

Gen.GetBytes(Gen);

int ran = Convert.ToInt32(random[0]);

return ran % sides + 1;

}

D.

for(int x = 0; x <= 50; x++)

Console.WriteLine(RollTheDice(6));

public static int RollTheDice(int sides)

{

byte[] random = new byte[1];

RNGCryptoServiceProvider Gen = new RNGCryptoServiceProvider();

Gen.RandomNumber(random);

int ran = Convert.ToInt32(random[0]);

return ran % sides + 1;

}

Martin works as a Software Developer for BlueWell Inc. He creates an ASP.NET application, named App1. During beta testing of App1, he ensures that the actual ASP.NET error messages are displayed whenever errors are encountered. He also ensures that both developers and beta testers see the actual text of the error messages.

During beta testing of App1, Martin performs beta testing of other applications also on the same test server. All the other applications display the ASP.NET error messages. After completing beta testing, Martin promotes the beta test server to a production server. He wants all the applications to display a single, user-friendly error message. Martin also wants to configure App1 and the production server to meet these goals. He removes the customErrors element from the Web.config file for App1. What else will he do to accomplish the required task with minimum administrative effort?

A.

In the Web.config file for App1, add the following element:

B.

In the App1.config file, add the following element:

C.

In the App1.config file, add the following element:

D.

In the Machine.config file, add the following element:

E.

In the Machine.config file, add the following element:

F.

In the Web.config file for App1, add the following element:

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.

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

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. You use the application to create an assembly. Now you need to encrypt assembly data. The company has not provided encryption requirements to you. Which of the following symmetric cryptography classes will you use to accomplish this task?

A.

RSA

B.

3DES

C.

RijndaelManaged

D.

DES

E.

TDEA

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?

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.

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.

A.

int

B.

short

C.

System.UInt16

D.

ushort

E.

System.Int16

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 captures account information. The account number has the following specifications:

l It holds literal and input characters of the alphanumeric type.

l It has a predefined format.

You must ensure that the account number is in the correct format. You must also ensure that only input characters are accepted from users. What will you do?

A.

Use a RichTextBox control and create a regular expression to validate the format.

B.

Use a TextBox control and bind it to a string that has the required format.

C.

Use a MaskedTextBox control and create a mask to validate the format.

D.

Use a TextBox control and create a regular expression to validate the format.