Free Web and Mobile Development MCQs with Answers
268 Web and Mobile Development MCQs from Software Engineering, each with the correct answer and a written explanation of why it is correct. Free and unlimited, with no account needed.
Last updated
268 questions · page 5 of 14
- A. DataSource
- B. ColorValidator
- C. AlternatingItemTemplate
- D. None of these
Explanation: Repeater uses AlternatingItemTemplate to define the markup and styling for every other data item, allowing alternating colors or formats.
Correct answer: AlternatingItemTemplate- A. XmlNew
- B. XmlConvert
- C. XmlSettings
- D. XmlDocument
Explanation: XmlDocument represents an XML document in memory and can be instantiated and populated with elements, attributes, and text from scratch.
Correct answer: XmlDocument- A. Display
- B. Page_Load
- C. Render
- D. The Prerender
Explanation: A custom ASP.NET control produces its visible output by overriding or using the Render method, which writes the control's markup to the…
Correct answer: Render- A. Session.Exit
- B. Session.Close( )
- C. Session.Discard( )
- D. Session.Abandon
Explanation: Session.Abandon() explicitly ends the current ASP.NET session and causes its session-state data to be discarded.
Correct answer: Session.Abandon- A. RangeValidator
- B. PatternValidator
- C. RegularExpressionValidator
- D. FieldValidator
Explanation: RegularExpressionValidator checks whether input matches a specified pattern, such as an email address or postal code.
Correct answer: RegularExpressionValidator- A. HTML
- B. WML
- C. JSP
- D. XML
Explanation: An ASP.NET page ultimately sends markup that browsers render as HTML, even though the server-side page may contain controls and code.
Correct answer: HTML- A. Call FOCUS method
- B. Call SETCONTROL
- C. Call SETFOCUS
- D. None of the above
Explanation: ASP.NET controls expose a Focus() method, commonly called as control.Focus(), to move browser focus to that control.
Correct answer: Call FOCUS method- A. Top-down
- B. Bottom-up
- C. Waterfall
- D. Pipeline
Explanation: ASP.NET request processing follows a pipeline of ordered stages and modules, such as authentication, authorization, handler execution, and…
Correct answer: Pipeline- A. The access is restricted only to ASP.NET files
- B. The access is restricted only to static files and non-ASP.NET resources.
- C. Both A and B
- D. None of the Above
Explanation: ASP.NET authorization rules are processed for resources handled by ASP.NET, such as .aspx pages, but normally do not protect static files…
Correct answer: The access is restricted only to ASP.NET files- A. Page Class
- B. Master Page
- C. Session Class
- D. None of these
Explanation: An ASP.NET Web Forms page derives from the System.Web.UI.Page class, which supplies the page lifecycle, controls, and event handling.
Correct answer: Page Class- A. XmlSettings
- B. XmlConvert
- C. XmlCast
- D. XmlType
Explanation: System.Xml.XmlConvert provides conversions between common .NET types and their XML Schema representations, including strings, dates…
Correct answer: XmlConvert- A. The default time interval is 5 minutes
- B. Programmers has to take care of delete sessions after configurable timeout interval
- C. ASP.NET automatically delete sessions after configurable timeout interval
- D. None of the Above
Explanation: ASP.NET uses the session timeout setting, 20 minutes by default, and expires inactive session state automatically.
Correct answer: ASP.NET automatically delete sessions after configurable timeout interval- A. System.Activator
- B. ProxyWebPartManager
- C. WebPartManager
- D. None of these
Explanation: ProxyWebPartManager is used in a content page to define static connections whose actual providers and consumers may be declared elsewhere…
Correct answer: ProxyWebPartManager- A. Application objects
- B. Session objects
- C. ViewState
- D. All of the above
Explanation: ASP.NET state can be maintained at application scope through Application objects, at user-session scope through Session objects, and at…
Correct answer: All of the above- A. Global variable
- B. Cookies
- C. Database
- D. Database
Explanation: ASP.NET stores the session identifier in a cookie by default, usually named ASP.NET_SessionId.
Correct answer: Cookies- A. CurrentUICulture
- B. CurrentCulture
- C. All of the above
- D. None of these
Explanation: CurrentCulture controls culture-sensitive dates, numbers, currencies, sorting, and formatting, while CurrentUICulture primarily selects…
Correct answer: CurrentCulture97. Which of the following represents the best use of the Table, TableRow, and Table-Cell controls ?
- A. To create a customized control that needs to display data in a tabular fashion
- B. To create and populate a Table in Design view
- C. To create and populate a Table with images
- D. To display a tabular result set
Explanation: The Table, TableRow, and TableCell server controls are most useful when code must construct or customize a tabular display dynamically.
Correct answer: To create a customized control that needs to display data in a tabular fashion- A. equals() method
- B. RegularExpressionValidator
- C. RequiredFieldValidator
- D. CompareValidator
Explanation: CompareValidator checks one control's value against another, such as confirming that a password and its confirmation match.
Correct answer: CompareValidator- A. Implement application and session level events
- B. Declare Global variables
- C. No use
- D. All of the above
Explanation: Global.asax handles application-level and session-level events such as Application_Start and Session_Start.
Correct answer: Implement application and session level events- A. Server.CreateObject("Scripting.FileSystemObject")
- B. Create Object:"Scripting.FileSystemObject"
- C. Server.CreateObject("FileSystemObject")
- D. Create("FileSystemObject")
Explanation: In classic ASP, Server.CreateObject creates COM objects, and the ProgID for the file-system object is Scripting.FileSystemObject.
Correct answer: Server.CreateObject("Scripting.FileSystemObject")