[Free] 2017(Sep) CollectDumps Testking GIAC GSSP-NET-CSHARP Dumps with VCE and PDF 321-330

CollectDumps 2017 Sep GIAC Official New Released GSSP-NET-CSHARP
100% Free Download! 100% Pass Guaranteed!
http://www.CollectDumps.com/GSSP-NET-CSHARP.html

GIAC GIAC Secure Software Programmer – C#.NET

Question No: 321 – (Topic 3)

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.

  1. int

  2. short

  3. System.UInt16

  4. ushort

  5. System.Int16

Answer: C,D

Question No: 322 – (Topic 3)

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?

  1. SHA1 Mysha1 = new SHA1CryptoServiceProvider(); Mysha1.GetHashCode();

    byte[] Myhash = Mysha1.Hash;

  2. SHA1 Mysha1 = new SHA1CryptoServiceProvider(); byte[] Myhash = null;

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

  3. SHA1 Mysha1 = new SHA1CryptoServiceProvider();

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

  4. SHA1 Mysha1 = new SHA1CryptoServiceProvider(); byte[] Myhash = Mysha1.ComputeHash(msg);

Answer: D

Question No: 323 – (Topic 3)

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create an ASP.NET Web application using .NET Framework 3.5. The application uses the Forms authentication mode. Each folder in the application contains confidential Microsoft Excel files. You are required to make sure that bots are not allowed to access the folders in the application. What will you do?

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

  1. Add a lt;allowgt; element to the lt;authorizationgt; element in the Web.config file.

  2. Set the authorization mode of the traceElements attribute value in the Web.config file.

  3. Add a lt;denygt; element to the lt;authorizationgt; element in the Web.config file.

  4. Map the Excel files to the ASP.NET ISAPI filter.

  5. Implement a Completely Automated Public Turing Tests to Tell Computers and Humans Apart (CAPTCHA) image control on each page of the application.

Answer: B

Question No: 324 – (Topic 3)

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?

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

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

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

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

Answer: C

Question No: 325 – (Topic 3)

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.

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

    DataContext .

  2. The Where property cannot be assigned a value.

  3. The GroupBy property cannot be assigned a value.

  4. The Select property cannot be assigned a value.

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

Answer: A,C,D,E

Question No: 326 – (Topic 3)

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You have created a class named Customer to be used in a billing application. The Customer class is shown below.

class Customer

{

public string FirstName { get; set; } public string LastName { get; set; }

}

Each instance of the Customer class contains information about a customer of your company. You have written a segment of code that populates an ArrayList with a collection of Customer objects as shown below.

ArrayList customers = new ArrayList(); Customer myCustomer = new Customer(); myCustomer.FirstName = quot;Helenquot;; myCustomer.LastName = quot;of Troyquot;; customers.Add(myCustomer); myCustomer = new Customer(); myCustomer.FirstName = quot;Elvisquot;; myCustomer.LastName = quot;Presleyquot;; customers.Add(myCustomer);

You need to write code that iterates through the customers ArrayList and displays the name of each customer at the command prompt.

Which code segment should you choose?

  1. foreach (Customer customer in customers) { Console.WriteLine(quot;{0} {1}quot;, (Customer)customer.FirstName, (Customer)customer.LastName);

    }

  2. foreach (Customer customer in customers) { Console.WriteLine(quot;{0} {1}quot;, customer.FirstName,

    customer.LastName);

    }

  3. for (int counter = 0; counter lt;= customers.Count; counter ) { Console.WriteLine(customers[counter].ToString());

    }

  4. for (int counter = 0; counter lt;= customers.Count; counter ) { Console.WriteLine(customers[counter]);

}

Answer: B

Question No: 327 – (Topic 3)

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=quot;ABC#39;s Worldquot;;

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.

  1. String st1=quot;Helloquot; str;

  2. int j=str.Length;

C. str[2]=quot;yquot;;

  1. str=str 10;

  2. str=5;

Answer: A,B,D

Question No: 328 – (Topic 3)

You work as a Software Developer for ABC Inc. You create a Web service application named MyWebService using Visual Studio .NET 2005. You use the MyWebService to create a SOAP message. You are not sure whether or not the SOAP message format is correct. Therefore, you decide to use the AsynchronousOperationException class. This class is used to throw an exception when the format of a SOAP message is invalid. Which of the following code segments will you use to accomplish the task?

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

A.

public class MyException : AsynchronousOperationException

{

//Code here

}

B.

public class AsynchronousOperationException : AsynchronousOperationException

{

//Code here

}

C.

public class AsynchronousOperationException : Exception

{

//Code here

}

D.

public class MyException : Exception

{

//Code here

}

Answer: C,D

Question No: 329 – (Topic 3)

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.

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

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

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

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

Answer: A,C

Question No: 330 – (Topic 3)

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 write the following code in the application:

string tree = quot;ABCquot;;

System.Reflection.MethodInfo addMethod = typeof(Dictionary).GetMethod(quot;Addquot;);

You need to create an ElementInit that represents calling Dictionary.Add(tree.Length, tree). Drag and drop the appropriate values to accomplish the task.

Collectdumps 2017 PDF and VCE

A.

Answer: A

100% Free Download!
Download Free Demo:GSSP-NET-CSHARP Demo PDF
100% Pass Guaranteed!
Download 2017 CollectDumps GSSP-NET-CSHARP Full Exam PDF and VCE

CollectDumps ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

2017 CollectDumps IT Certification PDF and VCE