GIAC GIAC Secure Software Programmer - C#.NET Sample Questions:
1. 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 MyException : Exception { //Code here }
C) public class AsynchronousOperationException : Exception { //Code here }
D) public class AsynchronousOperationException : AsynchronousOperationException { //Code here }
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?
A) Disco.exe
B) Tlbimp.exe
C) Regsvr32.exe
D) Wsdl.exe
3. 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?
A) AppDomian.CurrentDomain.SetPrincipalPolicy(_
PrincipalPolicy.WindowsPrincipal)
Dim myprincipal As WindowsPrincipal = _CType(Thread.CurrentPrincipal, WindowsPrincipal)
B) Dim identity As WindowsIdentity = WindowsIdentity.GetCurrent() Dim myprincipal As New WindowsPrincipal(identity)
C) Dim identity As WindowsIdentity = _WindowsIdentity.GetAnonymous() Dim myprincipal As New WindowsPrincipal(identity)
D) AppDomain.CurrentDomain.SetThreadPrincipal(_
PrincipalPolicy.WindowsPrincipal)
Dim myprincipal As WindowsPrincipal = _CType(Thread.CurrentPrincipal, WindowsPrincipal)
4. Which of the following provide simplified access to ASP.NET AJAX login, roles, and profile services from Windows Forms and WPF applications?
A) Sync Framework
B) AJAX application services
C) Client application services
D) Entity Framework
5. 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 application using .NET Framework 3.5. The application represents a WCF service. The service will be consumed by clientside code that runs in the Web pages of an ASP.NET AJAX application. You must ensure that data serialization between the service and the application acquires least amount of latency.
Which data format will you use to accomplish this?
A) JavaScript Object Notation
B) Really Simple Syndication
C) Extensible Markup Language
D) Extensible Application Markup Language
Solutions:
| Question # 1 Answer: B,C | Question # 2 Answer: C | Question # 3 Answer: A | Question # 4 Answer: C | Question # 5 Answer: A |
We're so confident of our products that we provide no hassle product exchange.


By Ingemar

