Programming With Asp.Net

130 Questions | Total Attempts: 237

SettingsSettingsSettings
Please wait...
Programming Quizzes & Trivia

This is good for you


Questions and Answers
  • 1. 
    The FilePath property retrieves the virtual path of the page requested by ht browser.
    • A. 

      True

    • B. 

      False

  • 2. 
    The Request object is the in-built  object of HttpRequest method.
    • A. 

      True

    • B. 

      False

  • 3. 
    The Request Type property specifies or retrieves the HTTP data transfer method, GET or POST, used by the client.
    • A. 

      True

    • B. 

      False

  • 4. 
    The HttpRequest class is present in the System.Web namespace.
    • A. 

      True

    • B. 

      False

  • 5. 
    The MapPath method maps the incoming image- field  form parameter to its appropriate coordinates.
    • A. 

      True

    • B. 

      False

  • 6. 
    Returns a collection of the name-value pairs that represent the elements of a form.
    • A. 

      ApplicationPath

    • B. 

      FilePath

    • C. 

      QueryString

    • D. 

      MapImageCoordinates

    • E. 

      MapPath

  • 7. 
    Maps the incoming image-field form parameter to its coordinates.
    • A. 

      ApplicationPath

    • B. 

      FilePath

    • C. 

      QueryString

    • D. 

      MapImageCoordinates

    • E. 

      MapPath

  • 8. 
    Retrieves the virtual root path  on the server.
    • A. 

      ApplicationPath

    • B. 

      FilePath

    • C. 

      QueryString

    • D. 

      MapImageCoordinates

    • E. 

      MapPath

  • 9. 
    Maps the virtual path in the requested URL
    • A. 

      ApplicationPath

    • B. 

      FilePath

    • C. 

      QueryString

    • D. 

      MapImageCoordinates

    • E. 

      MapPath

  • 10. 
    Retrieves the virtual path of the page.
    • A. 

      ApplicationPath

    • B. 

      FilePath

    • C. 

      QueryString

    • D. 

      MapImageCoordinates

  • 11. 
    The End property sends all buffered output to the client and terminates the execution of the current response.
    • A. 

      True

    • B. 

      False

  • 12. 
    The ClearContent method removes all content from the buffer stream
    • A. 

      True

    • B. 

      False

  • 13. 
    HttpResponse class is used to control the output of the HTTP request.
    • A. 

      True

    • B. 

      False

  • 14. 
    A response is the interaction between the browser and the server in which the client response the MIME request sent by the Server.
    • A. 

      True

    • B. 

      False

  • 15. 
    The cookies property contains a collection of cookies to be transmitted to the client in the request.
    • A. 

      True

    • B. 

      False

  • 16. 
    The Server object serves as an in-build property of the HttpServerUtility class.
    • A. 

      True

    • B. 

      False

  • 17. 
    The ScriptTimeout property specifies or retrieves the time in milliseconds in which the request is time out.
    • A. 

      True

    • B. 

      False

  • 18. 
    The htmlEncode method encodes a String to be display in a browser.
    • A. 

      True

    • B. 

      False

  • 19. 
    Server object exposes utility methods that can be used to transfer control between pages and decode HTML text.
    • A. 

      True

    • B. 

      False

  • 20. 
    The UrlEncode method encodes a string for reliable HTTP transform the Web server to a client via the URL
    • A. 

      True

    • B. 

      False

  • 21. 
    System.Web.UI.Controls namespace contains classes that allow you to create Web server controls on a Web page.
    • A. 

      True

    • B. 

      Fasle

  • 22. 
    Validate Controls include special - purpose control such as a Calendar,Menu, and TreeView controls.
    • A. 

      True

    • B. 

      False

  • 23. 
    Web server controls automatically detect the browser capabilities and provide the markup accordingly.
    • A. 

      True

    • B. 

      False

  • 24. 
    SQLDataSource and ObjectDataSource classes are rendered on the Web page.
    • A. 

      True

    • B. 

      Fasle

  • 25. 
    Web server controls support defining a standard appearance for controls throughout the Web site using theme.
    • A. 

      True

    • B. 

      Fasle

  • 26. 
    The property which specifies or retrieves the background color of the web server control.
    • A. 

      ForceColor

    • B. 

      Width

    • C. 

      BackColor

    • D. 

      ID

    • E. 

      Visible

  • 27. 
    This Specifies the forceground color of the web server control.
    • A. 

      ForceColor

    • B. 

      Width

    • C. 

      ID

  • 28. 
    This specifies or retrieves the unique identifier assigned to the web server control.
    • A. 

      ForceColor

    • B. 

      Width

    • C. 

      BackColor

    • D. 

      ID

    • E. 

      Visible

  • 29. 
    This specifies or retrieves a value indicating if the control is displayed on the web page.
    • A. 

      ForceColor

    • B. 

      Width

    • C. 

      ID

    • D. 

      Visible

    • E. 

      BackColor

  • 30. 
    This retrieves or specifies the width of the web server control.
    • A. 

      ForceColor

    • B. 

      Width

    • C. 

      BackColor

    • D. 

      ID

    • E. 

      Visible

  • 31. 
    This retireves a ControlCollection object representing controls included in the panel.
    • A. 

      AssociatedControlID

    • B. 

      AccessKey

    • C. 

      OnClientClick

    • D. 

      ForceColor

    • E. 

      Controls

  • 32. 
    Retrieves or specifies ID of  the associated control.
    • A. 

      AssociatedControlID

    • B. 

      AccessKey

    • C. 

      OnClientClick

    • D. 

      ForceColor

    • E. 

      Control

  • 33. 
    Retrieves forceground color of LinkButton Control.
    • A. 

      AssociatedControlID

    • B. 

      AccessKey

    • C. 

      OnClientClick

    • D. 

      ForceColor

    • E. 

      Control

  • 34. 
    Specifies or retrieves short-cut key for quick navigation  of the button.
    • A. 

      AssociatedControlID

    • B. 

      AccessKey

    • C. 

      OnClientClick

    • D. 

      ForceColor

    • E. 

      Control

  • 35. 
    Specifies or retieves the client side script when a click event occur.
    • A. 

      AssociatedControlID

    • B. 

      AccessKey

    • C. 

      OnClickClient

    • D. 

      ForceColor

    • E. 

      Controls

  • 36. 
    CTextBox control allows accepting input as well as displaying output.
    • A. 

      True

    • B. 

      False

  • 37. 
    Label control acts as a dynamic output area that is controlled by scripts.
    • A. 

      True

    • B. 

      False

  • 38. 
    The Image control allows inclusion of clickable image on the web page.
    • A. 

      True

    • B. 

      False

  • 39. 
    The Submit button allows triggering a PostBack to the web server.
    • A. 

      True

    • B. 

      False

  • 40. 
    The LinkButton control performs the same task as the Hyperlink control.
    • A. 

      True

    • B. 

      False

  • 41. 
    RadioButtonList control belongs to System.Web.UI.RadioButton class.
    • A. 

      True

    • B. 

      False

  • 42. 
    DropDwonList control supports only single selection.
    • A. 

      True

    • B. 

      False

  • 43. 
    CheckBoxList control allows only single selection.
    • A. 

      True

    • B. 

      False

  • 44. 
    RadioButton control inherits the properties of the CheckBoxList class.
    • A. 

      True

    • B. 

      False

  • 45. 
    ListBox control support single as well as multiple selections
    • A. 

      True

    • B. 

      False

  • 46. 
    Specifies or retrieves the lowest index number of the items that are selected in the list.
    • A. 

      AutoPostBack

    • B. 

      SelectionMode

    • C. 

      SelectedIndex

    • D. 

      SelectedValue

    • E. 

      ID

  • 47. 
    Specifies or retrieves the state of the control and automatically post back to the server.
    • A. 

      AutoPostBack

    • B. 

      SelectionMode

    • C. 

      SelectedIndex

    • D. 

      SelectedValue

    • E. 

      ID

  • 48. 
    Specifies or retrieves the program identifier that is assigned to the control.
    • A. 

      AutoPostBack

    • B. 

      SelectionMode

    • C. 

      SelectedIndex

    • D. 

      SelectedValue

    • E. 

      ID

  • 49. 
    Specifies or retrieves the mode of the selection in the control.
    • A. 

      AutoPostBack

    • B. 

      SelectionMode

    • C. 

      SelectedIndex

    • D. 

      SelectedValue

    • E. 

      ID

  • 50. 
    Retrieves the value of the selected control.
    • A. 

      AutoPostBack

    • B. 

      SelectionMode

    • C. 

      SelectedIndex

    • D. 

      SelectedValue

    • E. 

      ID

  • 51. 
    Specifies or retrieves the present date from the calendar.
    • A. 

      SelectedDate

    • B. 

      DayStyle

    • C. 

      TodayDate

    • D. 

      DayHeaderStyle

    • E. 

      DayNameFormat

  • 52. 
    Specifies  or retrieves the name format of the days of the week.
    • A. 

      SelectedDate

    • B. 

      DayStyle

    • C. 

      TodayDate

    • D. 

      DayHeaderStyle

    • E. 

      DayNameFormat

  • 53. 
    Specifies or retrieves the date that is selected.
    • A. 

      SelectedDate

    • B. 

      DayStyle

    • C. 

      TodayDate

    • D. 

      DayHeaderStyle

    • E. 

      DayNameFormat

  • 54. 
    Retrieves the style properties of the days in the displayed month.
    • A. 

      SelectedDate

    • B. 

      DayStyle

    • C. 

      TodayDate

    • D. 

      DayHeaderStyle

    • E. 

      DayNameFormat

  • 55. 
    Retrieves the style properties for the section that displays the week days.
    • A. 

      SelectedDate

    • B. 

      DayStyle

    • C. 

      TodayDate

    • D. 

      DayHeaderStyle

    • E. 

      DayNameFormat

  • 56. 
    The Alternatetext property sets a text for the image when the mouse rolls over the image.
    • A. 

      True

    • B. 

      False

  • 57. 
    The AdRotator control displays the ads only in the sequential manner.
    • A. 

      True

    • B. 

      False

  • 58. 
    The AdRotator control uses an XML file to store information about the advertisements
    • A. 

      True

    • B. 

      False

  • 59. 
    The NavigateUrlField method is used to move between advertisements.
    • A. 

      True

    • B. 

      False

  • 60. 
    The AdRotator control inherits the properties from Calendar.
    • A. 

      True

    • B. 

      False

  • 61. 
    Nodes property retrieves the collection of tree nodes that are allowed to the TreeView control.
    • A. 

      True

    • B. 

      False

  • 62. 
    The site navigation system of ASP.Net 2.0 allows defining all links in a single location, which is usually a .css file.
    • A. 

      True

    • B. 

      False

  • 63. 
    Target property is used to specify or retrieve the target window or frame in which the web page content needs to be displayed.
    • A. 

      True

    • B. 

      False

  • 64. 
    FindNode() method is used to retrieve a node from the TreeView control at the specified value path.
    • A. 

      True

    • B. 

      False

  • 65. 
    The PathSeparator() method specifies or retrieves the String that delimits SiteMapPath nodes in the rendered navigation path.
    • A. 

      True

    • B. 

      False

  • 66. 
    This method specifies or retrieves the order in which the navigation path nodes are delivered.
    • A. 

      FindItem.

    • B. 

      Target.

    • C. 

      PathSeparator

    • D. 

      PathDirection

    • E. 

      FindNode.

  • 67. 
    This specifies or retrieves the delimiter string that is used by the tree node path.
    • A. 

      FindItem.

    • B. 

      Target

    • C. 

      PathSeparator

    • D. 

      PathSeparator

    • E. 

      FindNode.

  • 68. 
    This retrieves the menu item at the specified value path.
    • A. 

      FindItem.

    • B. 

      Target

    • C. 

      PathSeparator

    • D. 

      PathSeparator

    • E. 

      FindNode.

  • 69. 
    This retrieves a node from the TreeView control at the specified value path.
    • A. 

      FindItem.

    • B. 

      Target

    • C. 

      PathSeparator

    • D. 

      PathSeparator

    • E. 

      FindNode.

  • 70. 
    This specifies or retrieves the target window where the web page content is displayed.
    • A. 

      FindItem.

    • B. 

      Target

    • C. 

      PathSeparator

    • D. 

      PathSeparator

    • E. 

      FindNode.

  • 71. 
    ImageMap control works exactly as Image Control.
    • A. 

      True

    • B. 

      False

  • 72. 
    ImageMap class belongs to System.Web.UI.WebControls namespace.
    • A. 

      True

    • B. 

      False

  • 73. 
    The RectangleHotPot class is used to define a rectangular hot spot region.
    • A. 

      True

    • B. 

      False

  • 74. 
    HotSpot class belongs to System.Web.Forms namespace
    • A. 

      True

    • B. 

      False

  • 75. 
    The AccessKey() method specifies or retrieves the access key.
    • A. 

      True

    • B. 

      False

  • 76. 
    This occurs the current View control becomes the active view.
    • A. 

      EnableTheming property.

    • B. 

      Active event

    • C. 

      FileName property.

    • D. 

      SaveAS method

    • E. 

      ActiveViewIndex

  • 77. 
    Saves the contents of a file that is Uploaded.
    • A. 

      EnableTheming property.

    • B. 

      Active event

    • C. 

      FileName property

    • D. 

      SaveAS

    • E. 

      ActiveViewIndex

  • 78. 
    Specifies or retrieves the index of the active View control.
    • A. 

      EnableTheming property.

    • B. 

      Active event

    • C. 

      FileName property

    • D. 

      SaveAS

    • E. 

      ActiveViewIndex

  • 79. 
    Specifies or retrieve a value indicating whether themes apply to this control.
    • A. 

      EnableTheming property.

    • B. 

      Active event

    • C. 

      FileName property

    • D. 

      SaveAS

    • E. 

      ActiveViewIndex

  • 80. 
    Retrieves the name of a file selected for Uploading
    • A. 

      EnableTheming property.

    • B. 

      Active event

    • C. 

      FileName property

    • D. 

      SaveAS

  • 81. 
    The FileUpload control creates only a text box for locating files on the local folders.
    • A. 

      True

    • B. 

      False

  • 82. 
    FileName property retrieves the name of a file selected for download.
    • A. 

      True

    • B. 

      False

  • 83. 
    The View control can be referred to as a container of controls.
    • A. 

      True

    • B. 

      False

  • 84. 
    FileUpload class belongs to System.Web.UI.WebControls nameSpace.
    • A. 

      True

    • B. 

      False

  • 85. 
    MultiView control can be referred to as container of View control.
    • A. 

      True

    • B. 

      False

  • 86. 
    HTML server controls can be used for server-side scripting by adding runnat="server" attribute in the HTML tag.
    • A. 

      True

    • B. 

      False

  • 87. 
    HTML controls in ASP.Net application are referred to as server-side code.
    • A. 

      True

    • B. 

      False

  • 88. 
    Web server controls are used for server-side scripting.
    • A. 

      True

    • B. 

      False

  • 89. 
    HTML Tag are combined with one another to create HTML server control.
    • A. 

      True

    • B. 

      False

  • 90. 
    HtmlImage and AdRototor are web server controls.
    • A. 

      True

    • B. 

      False

  • 91. 
    Classes of System.Web.UI.HtmlControls namespace help in creating HTML server controls on the Web Forms page.
    • A. 

      True

    • B. 

      False

  • 92. 
    HtmlTable control allows the developer to programmatically use the
    • A. 

      True

    • B. 

      False

  • 93. 
    HtmlForm class allows the developer to programmtically use the
    • A. 

      True

    • B. 

      False

  • 94. 
    HtmlInputButton class allows the developer to programmatically use the Html tag on the server.
    • A. 

      True

    • B. 

      False

  • 95. 
    System.Web.UI.HtmlControls namespace provides a collection of Web server control classes.
    • A. 

      True

    • B. 

      False

  • 96. 
    Map to the HTML
    • A. 

      HtmlButton

    • B. 

      HtmlForm

    • C. 

      HtmlImage

    • D. 

      HtmlSelect

    • E. 

      HtmlInput

  • 97. 
    Maps to the HTML element on the server.
    • A. 

      HtmlForm

    • B. 

      HtmlButton

    • C. 

      HtmlImage

    • D. 

      HtmlSelect

    • E. 

      HtmlInputText

  • 98. 
    Maps to the HTML
    • A. 

      HtmlForm

    • B. 

      HtmlButton

    • C. 

      HtmlImage

    • D. 

      HtmlSelect

    • E. 

      HtmlInput

  • 99. 
    Maps to the HTML
    • A. 

      HtmlForm

    • B. 

      HtmlButton

    • C. 

      HtmlImage

    • D. 

      HtmlSelect

    • E. 

      HtmlInput

  • 100. 
    Maps to the HTML tag on the server.
    • A. 

      HtmlForm

    • B. 

      HtmlButton

    • C. 

      HtmlImage

    • D. 

      HtmlSelect

    • E. 

      HtmlInput

  • 101. 
    Specifies the way to post data to the server.
    • A. 

      Multiple

    • B. 

      Align

    • C. 

      Method

    • D. 

      Item

    • E. 

      DefaultFocus

  • 102. 
    Specifies or retrieves the control on the form with the input focus when the control is loaded.
    • A. 

      Multiple

    • B. 

      Align

    • C. 

      Method

    • D. 

      Item

    • E. 

      DefaultFocus

  • 103. 
    Specifies whether multiple items in the list can be selected.
    • A. 

      Multiple

    • B. 

      Align

    • C. 

      Method

    • D. 

      Items

    • E. 

      DefaultFocus

  • 104. 
    Retrieves a collection of items that are listed in the control.
    • A. 

      Multiple

    • B. 

      Align

    • C. 

      Method

    • D. 

      Items

    • E. 

      DefaultFocus

  • 105. 
    Specifies or retrieves the alignment of the image on the web page.
    • A. 

      Multiple

    • B. 

      Align

    • C. 

      Method

    • D. 

      Item

    • E. 

      DefaultFocus

  • 106. 
    Validation of the input data plays a role in ensuring smooth functioning of the web application.
    • A. 

      True

    • B. 

      False

  • 107. 
    The BaseValidate class serves as the base class for the properties and methods common for all the validation control.
    • A. 

      True

    • B. 

      False

  • 108. 
    The System.Web.UI.WebControls namespace contains the validation controls.
    • A. 

      True

    • B. 

      False

  • 109. 
    The ErrorMessage proprty of the BaseValidator class allows viewing the error messages received from all the validation controls.
    • A. 

      True

    • B. 

      False

  • 110. 
    The RequiredFieldValidator control checks for ensuring that the input control is not left blank by user.
    • A. 

      True

    • B. 

      False

  • 111. 
    Ensure that values for mandatory fields of registration form are entered.
    • A. 

      CompareValidator

    • B. 

      CustomValidator.

    • C. 

      RegularExpressionValidator.

    • D. 

      RequiredFieldValidator.

    • E. 

      ValidationSumary.

  • 112. 
    Compares the values  in the Password an the Confirm Password fields.
    • A. 

      CompareValidator

    • B. 

      CustomValidator.

    • C. 

      ReqularExpressionValidator.

    • D. 

      RequiredFieldValidator

    • E. 

      ValidationSumary.

  • 113. 
    Checks whether the values entered is a primary number.
    • A. 

      CompareValidator

    • B. 

      CustomValidator.

    • C. 

      ReqularExpressionValidator.

    • D. 

      ValidationSumary.

    • E. 

      RequiredFieldValidator

  • 114. 
    Display error messages when multiple validations fail in a loan application form. 
    • A. 

      CompareValidator

    • B. 

      CustomValidator.

    • C. 

      ReqularExpressionValidator.

    • D. 

      ValidationSumary.

    • E. 

      RequiredFieldValidator

  • 115. 
    Checks whether the zip code is entered in the required format.
    • A. 

      CompareValidator

    • B. 

      CustomValidator.

    • C. 

      ReqularExpressionValidator.

    • D. 

      ValidationSumary.

  • 116. 
    Specifies or retrieves the identifier of the input Web server control to be validated.
    • A. 

      ControlToValidate

    • B. 

      IsValid

    • C. 

      Page.IsValid

    • D. 

      ClientValidateFunction

    • E. 

      EnableClientScript

  • 117. 
    Specifies or retrieves a values indicating whether or not the control passes through validation process
    • A. 

      ControlToValidate

    • B. 

      IsValid

    • C. 

      Page.IsValid

    • D. 

      ClientValidateFunction

    • E. 

      EnableClientScript

  • 118. 
    Retrieves  a value indicating or not the validation of the page has been successful.
    • A. 

      ControlToValidate

    • B. 

      IsValid

    • C. 

      Page.IsValid

    • D. 

      ClientValidateFunction

    • E. 

      EnableClientScript

  • 119. 
    Specifies the Client-side function name  that is use to check for validation.
    • A. 

      ControlToValidate

    • B. 

      IsValid

    • C. 

      Page.IsValid

    • D. 

      ClientValidateFunction

    • E. 

      EnableClientScript

  • 120. 
    Specifies or retrieves  a value that is used to update the ValidationSumary control using client-side script.
    • A. 

      ControlToValidate

    • B. 

      IsValid

    • C. 

      Page.IsValid

    • D. 

      EnableClientScript

    • E. 

      ClientValidateFunction.

  • 121. 
    The CompareValidatior control compares the value of one input control with the other input control based on the associated comparison operator.
    • A. 

      True

    • B. 

      False

  • 122. 
    The Operator property of the CompareValidatior control specifies or retrieves the operato to perform the arithmetic operatior.
    • A. 

      True

    • B. 

      False

  • 123. 
    The MaximumValue property of the RangeValidator class specifies the maximum range value to be validated with the value in the input cpontrol.
    • A. 

      True

    • B. 

      False

  • 124. 
    The ValidationExpression property of the RegularExpressionValidator class specifies or retrieves a value indicating whether the related input control passes the validation process.
    • A. 

      True

    • B. 

      False

  • 125. 
    The Page.IsVaid property retieves a value which indicates whether or not the validation of the page has been successful.
    • A. 

      True

    • B. 

      False

  • 126. 
    The Remove() method deletes all the objects of the application state collection.
    • A. 

      True

    • B. 

      False

  • 127. 
    The Unlock property unlocks the locked variable.
    • A. 

      True

    • B. 

      False

  • 128. 
    The Lock() method prevents other sessions from changing the value of the application variables.
    • A. 

      True

    • B. 

      False

  • 129. 
    The Application object generally holds information that will be used by multiple pages of the application.
    • A. 

      True

    • B. 

      False

  • 130. 
    The Application object is representated by HttpAplication.
    • A. 

      True

    • B. 

      False