• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Gssp net-csharp question answers
 

Gssp net-csharp question answers

on

  • 259 views

 

Statistics

Views

Total Views
259
Views on SlideShare
259
Embed Views
0

Actions

Likes
3
Downloads
13
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Gssp net-csharp question answers Gssp net-csharp question answers Document Transcript

    • GIAC GSSP-NET-CSHARP ExamGIAC Secure Software Programmer - C#.NETVersion = DemoTotal Questions in Original Product = 535http://www.passcertification.com/GSSP-NET-CSHARP.htmlPass CertificationNo1. Test Preparation Resource
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers1Question: 1You work as a Software Developer for company Inc. The company uses Visual Studio .NET2008 as its application development platform. You create an ASP .NET Web applicationusing .NET Framework 3.5. You create a Web form in the application that permits users toprovide personal information. You add a DropDownList control to the Web form to retrievethe 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 thedefault option. Which of the following validation controls should you use to accomplish thistask?A. RangeValidatorB. RequiredFieldValidatorC. CustomValidatorD. RegularExpressionValidatorAnswer: BQuestion: 2You work as a Software Developer for company Inc. The company uses Visual Studio .NET2005 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 matchesa phone number?A. Regular expressionsB. Nested If statementsC. Use the String.Length propertyD. A try/catch blockAnswer: A
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers2Question: 3You work as a Software Developer for company Inc. The company uses Visual Studio .NET2005 as its application development platform. You have recently finished development of aWindows application using .NET Framework. Users report that the application is not runningproperly. When the users try to complete a particular action, the following error messagecomes out: Unable to find assembly myservices, Version=1.0.0.0, Culture=neutral,PublicKeyToken=29b5ad26c9de9b95. You notice that the error occurs as soon as theapplication tries to call functionality in a serviced component that was registered by using thefollowing command: regsvcs.exe myservices.dllYou must make sure that the application can call the functionality in the serviced componentwith no exceptions being thrown. What will you do to accomplish this task?A. Run the command line tool: regasm.exe myservices.dll.B. Copy the serviced component assembly into the C.Program FilesComPlus Applicationsfold er.C. Run the command line tool: gacutil.exe /i myservices.dll.D. Copy the serviced component assembly into the C.WINDOWSsystem32Com folder.Answer: CQuestion: 4Allen works as a Software Developer for company Inc. The company uses VisualStudio.NET as its application development platform. He creates an application using .NETFramework. He wants to encrypt all his e-mails that he sends to anyone. Which of thefollowing will he use to accomplish the task?A. PPPB. FTPC. PPTPD. PGPAnswer: D
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers3Question: 5You work as a Software Developer for company Inc. The company has several branchesworldwide. The company uses Visual Studio.NET 2005 as its application developmentplatform. You have recently finished the development of an application using .NETFramework 2.0. The application can be used only for cryptography. Therefore, you haveimplemented the application on a computer. What will you call the computer thatimplemented cryptography?A. Cryptographic toolkitB. CryptosystemC. CryptographerD. CryptanalystAnswer: BQuestion: 6You work as a Software Developer for company Inc. The company uses Visual Studio .NETas its application development platform. You create a class library using the .NETFramework. The library will be used to open the NSCs of computers. Later, you will set upthe class library to the GAC and provide it Full Trust permission. You write down thefollowing code segments for the socket connections: SocketPermission permission = newSocketPermission(PermissionState.Unrestricted); permission.Assert(); A number of theapplications that use the class library may not have the necessary permissions to open thenetwork socket connections. Therefore, you are required to withdraw the assertion. Which ofthe following code segments will you use to accomplish the task?A. permission.PermitOnly();B. CodeAccessPermission.RevertDeny();C. permission.Deny();D. CodeAccessPermission.RevertAssert();E. permission.Demand();Answer: D
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers4Question: 7You work as an Application Developer for company Inc. You are assigned with developing aWeb site that will handle information related to monthly sales of the company. You wish tosecure the Web site so that only employees of the Accounts department can view the Webpages. You need to create roles for the employees of this department. The user accountinformation will be stored in a SQL Server database named Database. You decide to do allthis by using the Web Site Administration Tool. Which of the following types of security willyou use to accomplish the task?A. Forms-based authenticationB. Integrated Microsoft Windows authenticationC. Basic authenticationD. Digest authenticationAnswer: AQuestion: 8You work as a Software Developer for ManSoft Inc. The company uses Visual Studio.NET2005 as its application development platform. You have recently created an application thatincludes the code shown below.string str1 = "company";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?A. FalseFalseFalseB. FalseTrueFalseC. TrueTrueTrueD. TrueFalseTrueAnswer: D
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers5Question: 9You work as a Software Developer for company Inc. The company uses Visual Studio .NET2008 as its application development platform. You are creating an ASP .NET Webapplication using .NET Framework 3.5. You need to implement a system to monitor ServiceLevel Agreement (SLA) compliance in the application. You are required to make a method toenable precise calculation of the time taken by all requests to process. What will you do toaccomplish this?A. Implement a Timer component in the application. Calculate the elapsed time between theStart and Stop methods.B. Implement a base Web form for all the Web forms in the application. Calculate theelapsed time between the Load and Unload events.C. Create and register a custom HttpHandler.D. Create and register a custom HttpModule.Answer: DQuestion: 10You work as a Software Developer for company Inc. The company uses Visual Studio.NET2008 as its application development platform. You create an ASP .NET Web applicationusing the .NET Framework 3.5. The application contains two HTML pages named Error.htmand 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 isdisplayed.l When any other error occurs, the Error.htm page is displayed. Which of the following codesegments will you add to the Web.config file to accomplish this task?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>Answer: A
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers6Question: 11You work as a Software Developer for company Inc. The company uses Visual Studio .NET2008 as its application development platform. You are creating an ASP .NET Webapplication using .NET Framework 3.5. The application will be used to share any type ofphotos on Internet. All the photos should be accessible in various sizes and formats. Youneed to add a download feature that can be easily maintained. You also need to make surethat only a single version of all photos is stored on a SQL server database. What will youdo?A. Create an HttpModule class to determine the request for the photo download. Process thephoto according to the given format and size, and after that return the processed photo inthe response.B. Create a user control that converts the photo to the required format and size.C. Create an HttpHandler class to determine the request for the photo download. Processthe Photo according to the given format and size, and after that return the processed photoin the response.D. Create an ActiveX control that converts the photo to the required format and size.Answer: CQuestion: 12You work as a Software Developer for company Inc. The company uses Visual Studio.NET2008 as its application development platform. You have recently finished development of anASP .NET Web application using the .NET Framework 3.5. You host the application on aWeb farm that consists of three Web servers. You should configure the ASP .NETapplication for session state to meet the following requirements: l Session state data shouldnot be lost if a server fails. l Session state must be maintained across browser requests bythe same user. You are required to configure the Web.config file to meet theserequirements. Which of the following configurations will you use?A. <sessionState mode="StateServer"/>B. <sessionState mode="InProc"/>C. <sessionState mode="Custom"/>D. <sessionState mode="SQLServer"/>Answer: D
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers7Question: 13You work as a Software Developer for company Inc. The company has several branchesworldwide. The company uses Visual Studio .NET 2005 as its application developmentplatform. You are creating an application using .NET Framework 2.0. The application will beused 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 comparisonmust ignore case. Which of the following code segments will you use to accomplish thetask?A. CompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo;Console.WriteLine(cmp.Compare(s1, s2, CompareOptions.IgnoreCase));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.Ordinal));D. CompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo;Console.WriteLine(cmp.Compare(s1, s2, CompareOptions.OrdinalIgnoreCase));Answer: AQuestion: 14Andrew works as a Software Developer for Mansoft Inc. The companys network has a Webserver that hosts the companys Web site. Andrew wants to enhance the security of the Website by implementing Secure Sockets Layer (SSL). Which of the following types of encryptiondoes SSL use? Each correct answer represents a complete solution. Choose two.A. SymmetricB. SecretC. IPSecD. AsymmetricAnswer: A, D
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers8Question: 15You work as a Software Developer for Mansoft Inc. You create an application and use it tocreate code access security policies. Which of the following tools will you use to examineand modify code access security policies from a batch file?A. Tlbimp.exeB. GacUtil.exeC. Sn.exeD. Caspol.exeE. StoreAdm.exeAnswer: DQuestion: 16You can use LINQ in an ASP .NET application through the LinqDataSource control, the__________ control, or by creating LINQ queries.A. ADO.NET DataSetB. ObjectDataSourceC. SqlDataSourceD. XmlDataSourceAnswer: BQuestion: 17Which of the following techniques is used to transmit passwords during authentication?A. Asymmetric encryptionB. HashingC. Salted HashD. Symmetric encryptionAnswer: C
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers9Question: 18Which of the following session and instancing modes will you set if you require a sessionfullbinding and want to create a new instance object for each client request?A. Set SessionMode to Allowed and IntsanceMode to PerSession.B. Set SessionMode to Required and IntsanceMode to Single.C. Set SessionMode to Required and IntsanceMode to PerCall.D. Set SessionMode to Allowed and IntsanceMode to PerCall.Answer: CQuestion: 19In .NET Framework 3.5, you can create and access values that persist from one applicationsession to another. What are these values called?A. ObjectsB. SettingsC. PropertiesD. AttributesAnswer: BQuestion: 20Session variables can be any valid __________.A. .NET Framework typeB. Integer typeC. SessionStateItemCollection objectD. Object typeAnswer: A
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers10Question: 21In which of the following objects are session variables stored?A. SessionStateStoreDataB. SessionStateModuleC. SessionStateItemCollectionD. SessionStateStoreProviderBaseAnswer: CQuestion: 22Which of the following utilities is used to encrypt credentials and session state connectionstrings?A. Aximp.exeB. Aspnet_regiis.exeC. Aspnet_compiler.exeD. Aspnet_setreg.exeAnswer: DQuestion: 23Which of the following modifiers is not available in C#?A. privateB. friendC. internalD. publicE. protectedAnswer: B
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers11Question: 24Which of the following classes will you use to specify that a string must be centered whendrawn?A. StringAlignmentB. StingFormatC. StringD. LineAlignmentAnswer: BQuestion: 25Which of the following is a reference type in Visual C#?A. primitive typesB. stringsC. enumsD. structuresAnswer: BQuestion: 26Which of the following data structures is used for storing reference data types?A. StackB. QueueC. Hard diskD. HeapAnswer: DQuestion: 27Which of the following is a restriction operator in LINQ?A. GROUPBYB. WHEREC. THENBYD. SELECTMANYAnswer: B
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers12Question: 28Which of the following modifiers in C# will you use if you do NOT want a custom-buildcomponent to be a base class?A. sealedB. virtualC. overrideD. staticAnswer: AQuestion: 29Which of the following attributes of the customErrors element is used to specify whethercustom errors are enabled, disabled, or shown only to remote clients?A. OffB. ModeC. OnD. RemoteOnlyAnswer: BQuestion: 30What is the main purpose of a try-catch block?A. To obtain and use resources that are being caught.B. To signal the occurrence of an exception during the program execution.C. To catch and handle an exception generated by an executable code.D. To ensure that the necessary cleanup of external resources is done immediately.Answer: C
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers13Question: 31ASP .NET version 2.0 health monitoring supports an __________.A. Event driven modelB. Event provider modelC. Event log modelD. Event API modelAnswer: BQuestion: 32Which of the following APIs is used to collect information about any running state and anyerrors that occur within an ASP .NET application?A. Profile APIB. Health Monitoring APIC. Error Handling APID. Personalization APIAnswer: BQuestion: 33The <customErrors> element does not apply to errors that occur in __________.A. XML Web servicesB. Windows servicesC. Web services directoryD. Web servicesAnswer: A
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers14Question: 34Which of the following syntaxes is used for the EncryptionAlgorithm property of the Messageclass?A. [MessagingDescriptionAttribute("MessageEncryptionAlgorithm")]public EncryptionAlgorithm : EncryptionAlgorithm { }B. [MessagingDescriptionAttribute("MessageEncryption")]public EncryptionAlgorithm EncryptionAlgorithm { }C. [MessagingDescriptionAttribute("MessageEncryption")]public EncryptionAlgorithm EncryptionAlgorithm { get; set; }D. [MessagingDescriptionAttribute("MessageEncryptionAlgorithm")]public EncryptionAlgorithm : EncryptionAlgorithm { get; set; }Answer: CQuestion: 35Which of the following is the best encryption algorithm to encrypt and decrypt messages?A. AESB. TripleDESC. DESD. RSAAnswer: DQuestion: 36Which of the following is not a method of controlling traffic through a firewall?A. Application filteringB. Encryption-level filteringC. Stateful inspectionD. Packet filteringAnswer: B
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers15Question: 37Which of the following algorithms supports key lengths from 128 bits to 192 bits inincrements of 64 bits?A. DESCryptoServiceProviderB. TripleDESCryptoServiceProviderC. TripleDESD. AESCryptoServiceProviderAnswer: CQuestion: 38Which of the following provide simplified access to ASP .NET AJAX login, roles, and profileservices from Windows Forms and WPF applications?A. Entity FrameworkB. AJAX application servicesC. Client application servicesD. Sync FrameworkAnswer: CQuestion: 39Which of the following providers is a block cipher that encrypts and decrypts data in blocksof 8 bytes?A. RNGCryptoServiceProviderB. SHA1CryptoServiceProviderC. RC2CryptoServiceProviderD. RSACryptoServiceProviderAnswer: C
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers16Question: 40Which of the following is required to be implemented by marshal-by-value objects toimplement custom serialization rules?A. ISerializableB. SerializableAttributeC. ISerializableAttributeD. ISerializeAnswer: AQuestion: 41Which of the following is not a type of Remote object?A. Server-activated objectB. Client-activated objectC. Singleton objectD. Single call objectAnswer: AQuestion: 42Which of the following is an exception of background threads as compared to foregroundthreads?A. A background thread does not continue the managed execution environment running.B. A background thread does not affect the outcome of an unhandled exception.C. A background thread belongs to the managed thread pool.D. A background thread changes to a foreground thread at any time.Answer: A
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers17Question: 43Which of the following classes limits the number of threads that can access a resource orpool of resources concurrently?A. SemaphoreB. MutexC. ThreadD. MonitorAnswer: AQuestion: 44Which of the following is TRUE about a managed thread?A. It is a foreground thread.B. It is a managed assembly.C. It is either a background thread or a foreground thread.D. It is a background thread.Answer: CQuestion: 45Which of the following security methods is used when the code requires a specific set ofpermissions, which are not known until runtime?A. Role-Based SecurityB. Windows NT SecurityC. Imperative SecurityD. Declarative SecurityAnswer: C
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers18Question: 46All of the following are benefits for query expressions allowed by Language-integrated queryexcept for which one?A. Rich metadataB. Compile-time syntax checkingC. Static typing and IntelliSenseD. Imperative codeAnswer: DQuestion: 47Which class allows checks against the active principal using the language constructs definedfor the declarative and imperative security actions?A. IPrincipalB. CodeAccessPermissionC. PrincipalPermissionD. SecurityPermissionAnswer: CQuestion: 48Which of the following elements will you use to add a script to the ScriptManagerdeclaratively?A. <connectionStrings>B. <Scripts>C. <configuration>D. <script>Answer: B
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers19Question: 49ECMAScript is supported in many applications and is commonly known as __________.A. VBScriptB. AJAXC. JavaScriptD. ScriptAnswer: CQuestion: 50Which of the following methods is not used to handle the SoapExtensions?A. ConfigurationB. ImperativelyC. DeclarativelyD. OptimizationAnswer: D
    • PassCertification.com- GSSP-NET-CSHARP Exam Questions andAnswers20GIAC GSSP-NET-CSHARP ExamGIAC Secure Software Programmer - C#.NETVersion = DemoTotal Questions in Original Product = 535http://www.passcertification.com/GSSP-NET-CSHARP.htmlPass CertificationNo1. Test Preparation Resource