Asp.Net Quiz 7&8

28 Questions | Attempts: 117
Share

SettingsSettingsSettings
Visual Basic Quizzes & Trivia

These quizzes are from the fabulous class Asp. Net. These quizzes will help you receive an A in the classes. I hope everyone enjoys the quizzes.


Questions and Answers
  • 1. 

    Which security concept allows a website to confirm you are who you say you are?

    • A.

      Authorization

    • B.

      Identity

    • C.

      Authentication

    • D.

      Validation

    Correct Answer
    C. Authentication
  • 2. 

    In chapter 15, what value does the book set for the mode attribute within the authentication tag?

    • A.

      Windows

    • B.

      Passport

    • C.

      None

    • D.

      Forms

    Correct Answer
    D. Forms
  • 3. 

    If the value of passwordFormat is set to _______, users cannot retrieve their original passwords

    • A.

      Encrypted

    • B.

      Clear

    • C.

      Cryptograph

    • D.

      Hashed

    Correct Answer
    D. Hashed
  • 4. 

    I want to lock an account if someone tries to access it with an incorrect password more than 3 times in 15 minutes. So, I set ________ to 15

    • A.

      Timeout

    • B.

      PasswordAttemptWindow

    • C.

      MaxInvalidPasswordAttempts

    • D.

      . passwordTimeout

    Correct Answer
    B. PasswordAttemptWindow
  • 5. 

    Users will need reauthenticate each time they close and reopen the browser if this property is set to false.

    • A.

      DisplayRememberMe

    • B.

      RememberLogin

    • C.

      VisibleWhenLoggedIn

    • D.

      CreateUserText

    Correct Answer
    A. DisplayRememberMe
  • 6. 

    Which control allows you to display different data to different types of users:

    • A.

      Login

    • B.

      LoginVeiw

    • C.

      LoginStatus

    • D.

      LoginName

    Correct Answer
    B. LoginVeiw
  • 7. 

    Which control can I use to find out the user's name?

    • A.

      LoginName

    • B.

      LoginStatus

    • C.

      LoginView

    • D.

      Login

    Correct Answer
    A. LoginName
  • 8. 

    Which ASP.NET service allows you to manage user accounts in your system?

    • A.

      Membership

    • B.

      Roles

    • C.

      Profiles

    • D.

      Accounts

    Correct Answer
    A. Membership
  • 9. 

    If you want old trace records to be discarded when the maximum number of trace requests are reached, which attribute will you set?

    • A.

      mostRecent

    • B.

      RequestLimit

    • C.

      traceMode

    • D.

      PageOutput

    Correct Answer
    A. mostRecent
  • 10. 

    In a production environment, you should NOT leave debug = _______

    • A.

      True

    • B.

      False

    • C.

      Enable

    • D.

      Disable

    Correct Answer
    A. True
  • 11. 

    When customErrors mode is set to Off, which of the following happens when an error occurs:

    • A.

      All visitors see the custom error page

    • B.

      All visitors see the full error details

    • C.

      Local users get full error details, while remote users get custom errors

    • D.

      The program crashes

    Correct Answer
    B. All visitors see the full error details
  • 12. 

    When an exception occurs, the remainder of the code in the ____ block is skipped

    • A.

      try

    • B.

      Catch

    • C.

      Finally

    • D.

      Exception

    Correct Answer
    A. try
  • 13. 

    What is the name of tag you use to define the error page (or pages) you want to show, within web.config

    • A.

      CustomErrors

    • B.

      Errors

    • C.

      ErrorPages

    • D.

      Application_Error

    Correct Answer
    A. CustomErrors
  • 14. 

    What type of error is Session["CustId"] = tbxCustomerName.Contents;

    • A.

      Logic

    • B.

      Syntax

    • C.

      Session

    • D.

      Runtime

    Correct Answer
    B. Syntax
  • 15. 

    Code in the ______ block is always fired, irrespective of whether an exception occurred or not

    • A.

      Catch

    • B.

      Exception

    • C.

      Finally

    • D.

      Try

    Correct Answer
    C. Finally
  • 16. 

    How do you remove all breakpoints in your website?

    • A.

      F10

    • B.

      Cntrl+F5

    • C.

      Cntrl+Shift+F9

    • D.

      Shift+F11

    Correct Answer
    C. Cntrl+Shift+F9
  • 17. 

     In which debugging window, can you test expressions, while the page is running?

    • A.

      Call Stack Window

    • B.

      Immediate Window

    • C.

      Watch Window

    • D.

      . Locals Window

    Correct Answer
    B. Immediate Window
  • 18. 

    Which keyboard shortcut would you use to RESTART debugging

    • A.

      . F5

    • B.

      Cntrl+Shift+F5

    • C.

      F10

    • D.

      Shift+F11

    Correct Answer
    B. Cntrl+Shift+F5
  • 19. 

    1. Given that this line of code is in Test1.aspx within a folder called Test2 <asp:Image ID="Image1" runat="server" ImageUrl="Images/Header.jpg" />, where should the Image Header.jpg be located for the image to be displayed?

    • A.

      Within Test2/Images folder within the root of the website

    • B.

      Within the Images folder within the root of the website

    • C.

      Within the root of the website

    • D.

      Within the Test2 folder within the root of the website

    Correct Answer
    A. Within Test2/Images folder within the root of the website
  • 20. 

    Which control shows the user where they are on the site, i.e., the path to the current location. An example would be "Home > Incidents"

    • A.

      Menu

    • B.

      SiteMapPath

    • C.

      . TreeView

    • D.

      . Sitemap

    Correct Answer
    B. SiteMapPath
  • 21. 

    Which property do you use to determine number of submenu items the menu control should display

    • A.

      ExpandDepth

    • B.

      MenuDisplayLevels

    • C.

      MaximumDynamicDisplayLevels

    • D.

      NumberMenuDisplayLevels

    Correct Answer
    C. MaximumDynamicDisplayLevels
  • 22. 

    Which property determines whether the items in the TreeView can be collapsed or expanded

    • A.

      . ExpandImageToolTip

    • B.

      ShowExpandCollapse

    • C.

      CollapseImageToolTip

    • D.

      ExpandDepth

    Correct Answer
    B. ShowExpandCollapse
  • 23. 

    What property do you set to change the symbol / text between elements of the path in a SiteMapControl?

    • A.

      PathSymbol

    • B.

      PathSymbolElement

    • C.

      PathSeparator

    • D.

      SeparatorSymbol

    Correct Answer
    C. PathSeparator
  • 24. 

    If you want to send the user to a new page, without modifying the client's address bar, which command will you use

    • A.

      Server.Transfer

    • B.

      Response.Redirect

    • C.

      Response.Transfer

    • D.

      Server.Redirect

    Correct Answer
    A. Server.Transfer
  • 25. 

    How many root nodes (maximum) can you have in a sitetmap file

    • A.

      One

    • B.

      Depends on the number of folders within the website root directory (one for each folder)

    • C.

      Depends on number of roles (one for each role)

    • D.

      As many as you want

    Correct Answer
    A. One
  • 26. 

    In a sitemap file, what is the name of the attribute which you use to specify text that will be displayed when the user hovers over a particular Menu / Tree view element in the browser

    • A.

      Title

    • B.

      Description

    • C.

      Tooltip

    • D.

      SitetMapNode

    Correct Answer
    B. Description
  • 27. 

    If you are developing a site, which does the book recommend you use to link to other pages within your site

    • A.

      Absolute URLs

    • B.

      Document Relative URLs

    • C.

      Root Relative URLs

    • D.

      Root-based Absolute URLs Root-based Absolute URLs Root-based Absolute URLs Root-based Absolute URLs Root-based Absolute URLs Root-based Absolute URLs Root-based Absolute URLs

    Correct Answer
    C. Root Relative URLs
  • 28. 

    Does the site map match the structure of the website?

    • A.

      It will match if siteMapNode structure mirrors the physical folder structure

    • B.

      . It is necessary for it to match for all users

    • C.

      It will match if the user is an administrator

    • D.

      It will never match

    Correct Answer
    A. It will match if siteMapNode structure mirrors the physical folder structure

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jan 11, 2013
    Quiz Edited by
    ProProfs Editorial Team
  • Apr 15, 2010
    Quiz Created by
    Escoveli
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.