[Free] 2017(Sep) EnsurePass Pass4sure GIAC GSSP- Dumps with VCE and PDF 191-200

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

GIAC GIAC Secure Software Programmer – C#.NET

Question No: 191 – (Topic 2)

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?

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

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

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

    data source.

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

Answer: C

Question No: 192 – (Topic 2)

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.

  1. They do not contain any executable code.

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

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

  4. An application can have only one satellite assembly.

Answer: A,B,C

Question No: 193 – (Topic 2)

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?

  1. Use the methods of the MemoryStream class.

  2. Use the Marshal class.

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

  4. Use a byte array.

Answer: B

Question No: 194 – (Topic 2)

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?

  1. string MyArray[9] = new string;

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

  3. string[] MyArray = new string[9];

  4. Option Base 1

    string[] MyArray = new string[9];

  5. Option Base 0

string[] MyArray = new string[9];

Answer: C

Question No: 195 – (Topic 2)

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?

  1. MethodCallExpression

  2. Expression

  3. LambdaExpression

  4. Expression(TDelegate)

Answer: D

Question No: 196 – (Topic 2)

You work as a Software Developer for ABC Inc. You have created a console application that uses two threads, named thread1 and thread2. You need to modify the code to prevent the execution of thread1 until thread2 completes its execution. Which of the following steps will you take to accomplish this task?

  1. Call the SpinWait() method of thread1.

  2. Use a WaitCallBack delegate to synchronize the threads.

  3. Call the sleep() method of thread1.

  4. Configure thread1 to run at a lower priority.

  5. Configure thread2 to run at a higher priority.

Answer: B

Question No: 197 – (Topic 2)

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?

  1. Wsdl.exe

  2. Regsvr32.exe

  3. Tlbimp.exe

  4. Disco.exe

Answer: B

Question No: 198 – (Topic 2)

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?

  1. Manhine.config

  2. Proxy auto-config

  3. ApplicationName.config

  4. Web.config

Answer: D

Question No: 199 – (Topic 2)

You work as a Software Developer for ABC Inc. You create a Console application named

ConsoleApplication4. You use the System.Security.Cryptography namespace. You want to use the key lengths of 384 bits to 16384 bits. You use RSACryptoServiceProvider class to encrypt and decrypt data. Which of the following code segments will you use to accomplish this task?

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

A.

UnicodeEncoding ByteConverter = new UnicodeEncoding();

byte[] DataToEncrypt = ByteConverter.GetBytes(quot;Encrypt this line for testingquot;); byte[] encryptData;

byte[] decryptData;

RSACryptoServiceProvider RSA = new RSACryptoServiceProvider(); encryptData = RSA.Encrypt(DataToEncrypt, true); Console.WriteLine(quot;Encrypted : {0}quot;, ByteConverter.GetString(encryptData)); decryptData = RSA.Decrypt(encryptData,false); Console.WriteLine(quot;Decrypted : {0}quot;, ByteConverter.GetString(decryptData)); B.

UnicodeEncoding ByteConverter = new UnicodeEncoding();

byte[] DataToEncrypt = ByteConverter.GetBytes(quot;Encrypt this line for testingquot;); byte[] encryptData;

byte[] decryptData;

RSACryptoServiceProvider RSA = new RSACryptoServiceProvider(); encryptData = RSA.Encrypt(DataToEncrypt, false); Console.WriteLine(quot;Encrypted : {0}quot;, ByteConverter.GetString(encryptData)); decryptData = RSA.Decrypt(encryptData,false); Console.WriteLine(quot;Decrypted : {0}quot;, ByteConverter.GetString(decryptData)); C.

UnicodeEncoding ByteConverter = new UnicodeEncoding();

byte[] DataToEncrypt = ByteConverter.GetBytes(quot;Encrypt this line for testingquot;); byte[] encryptData;

byte[] decryptData;

RSACryptoServiceProvider RSA = new RSACryptoServiceProvider(); encryptData = RSA.Encrypt(DataToEncrypt, false); Console.WriteLine(quot;Encrypted : {0}quot;, ByteConverter.GetString(encryptData));

decryptData = RSA.Decrypt(encryptData,true); Console.WriteLine(quot;Decrypted : {0}quot;, ByteConverter.GetString(decryptData)); D.

UnicodeEncoding ByteConverter = new UnicodeEncoding();

byte[] DataToEncrypt = ByteConverter.GetBytes(quot;Encrypt this line for testingquot;); byte[] encryptData;

byte[] decryptData;

RSACryptoServiceProvider RSA = new RSACryptoServiceProvider(); encryptData = RSA.Encrypt(DataToEncrypt, true); Console.WriteLine(quot;Encrypted : {0}quot;, ByteConverter.GetString(encryptData)); decryptData = RSA.Decrypt(encryptData,true); Console.WriteLine(quot;Decrypted : {0}quot;, ByteConverter.GetString(decryptData));

Answer: B,D

Question No: 200 – (Topic 2)

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 create an application that will be used by all the branches of the company. You use the Regex class in the application to validate some strings. You want to search an input string for an occurrence of a regular expression. Which of the following methods of the Regex class will you use to accomplish the task?

  1. Matches

  2. Match

  3. IsMatch

  4. Equals

Answer: B

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

EnsurePass 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 EnsurePass IT Certification PDF and VCE