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 2 of 14

  • A. Response.Write(Version.ToString() );
  • B. Response.Write(System.Version.ToString() );
  • C. Response.Write(System.Environment.Version.ToString() );
  • D. not possible

Explanation: System.Environment.Version returns the version of the CLR running the application, which commonly identifies the installed ASP.NET/.NET…

Correct answer: Response.Write(System.Environment.Version.ToString() );
  • A. The GridView control
  • B. The DetailsView control
  • C. The FormView control
  • D. The Table control

Explanation: GridView displays multiple records in tabular form, supports paging such as ten clients per page, and provides row editing features.

Correct answer: The GridView control
  • A. Role membership determined only by user programming
  • B. Automatically determines role membership
  • C. ASP.NET does not support Windows Authentication
  • D. None of these

Explanation: Windows Authentication obtains the user's Windows identity and group membership, allowing ASP.NET to determine roles from the Windows…

Correct answer: Automatically determines role membership
  • A. Automatic paging
  • B. Automatic data binding
  • C. Both A and B
  • D. None of the above

Explanation: GridView supports built-in paging and can bind automatically when connected to a data source through its DataSourceID property.

Correct answer: Both A and B
  • A. It is not possible to set automatically page events and methods
  • B. AutoEventWireup attribute of the Page directive is set to False
  • C. AutoEventWireup attribute of the Page directive is set to true
  • D. All of the above

Explanation: Setting the Page directive's AutoEventWireup attribute to true automatically connects page events such as Page_Load with their matching…

Correct answer: AutoEventWireup attribute of the Page directive is set to true
  • A. String
  • B. Integer
  • C. Date
  • D. All of the above

Explanation: RangeValidator can compare values of several types, including strings, integers, and dates, using its Type property.

Correct answer: All of the above
  • A. The default constructor
  • B. The Control_Build() method
  • C. The Paint() method
  • D. The Render() method

Explanation: A custom ASP.NET server control commonly overrides Render to write its HTML output to the response.

Correct answer: The Render() method
  • A. Assemblies
  • B. Serialization
  • C. Overriding
  • D. Garbage Collection

Explanation: Garbage collection automatically identifies objects that are no longer reachable and reclaims their memory.

Correct answer: Garbage Collection
  • A. AboveNormal
  • B. Normal
  • C. Highest
  • D. All of the above

Explanation: ThreadPriority includes AboveNormal, Normal, and Highest, along with BelowNormal and Lowest.

Correct answer: All of the above
  • A. Session.Abandon
  • B. Session.Dump
  • C. Session.Exit
  • D. None of these

Explanation: Session.Abandon() ends the current session and discards its stored session state. Dump and Exit are not standard ASP.NET Session methods.

Correct answer: Session.Abandon
  • A. Windows
  • B. Anonymous
  • C. Basic Authentication
  • D. None of these

Explanation: IIS commonly has Anonymous Authentication enabled by default, allowing access without users supplying credentials.

Correct answer: Anonymous
  • A. Viewstate can store onlys string
  • B. Viewstate can store anything
  • C. Viewstate can store only serilizable object
  • D. None of these

Explanation: ViewState is serialized before being stored in the page, so its values must be serializable objects rather than arbitrary objects or…

Correct answer: Viewstate can store only serilizable object
  • A. app_offline.html
  • B. app_offline.htm
  • C. appoffline.html
  • D. None of these

Explanation: ASP.NET recognizes the specially named app_offline.htm file in the application root and serves it while taking the application offline.

Correct answer: app_offline.htm
  • A. DataList
  • B. TableRow
  • C. ListBox
  • D. All the Above

Explanation: TableRow is the ASP.NET server control used to represent a row inside a Table control.

Correct answer: TableRow
  • A. SqlDataSource
  • B. FormView
  • C. GridView
  • D. All of the above

Explanation: SqlDataSource supplies data, while FormView and GridView display or edit bound data, so all three are ASP.NET data-bound controls.

Correct answer: All of the above
  • A. Visual Basic
  • B. C
  • C. C#
  • D. All of the above

Explanation: ASP.NET supports C# as a server-side language, and Visual Basic is also commonly supported.

Correct answer: C#
  • A. System
  • B. ROOT
  • C. Application
  • D. None of the Above

Explanation: Global.asax belongs in the application's root directory, where ASP.NET can detect application-level events such as startup and session…

Correct answer: ROOT
  • A. Gets the Referred Web site name on the server
  • B. Gets the Server's Machine Name
  • C. Gets the Client Machine Name
  • D. None of the above

Explanation: Server.MachineName returns the name of the computer on which the ASP.NET application is running.

Correct answer: Gets the Server's Machine Name
  • A. System.Data
  • B. System.Security
  • C. System.Diagnostics
  • D. System.EnterpriseServices

Explanation: System.EnterpriseServices provides .NET support for COM+ services, including transaction processing.

Correct answer: System.EnterpriseServices
  • A. Code-front
  • B. Exception
  • C. Code-behind
  • D. All of the above

Explanation: Code-behind places the page's programming logic in a separate file from its HTML or server-control markup.

Correct answer: Code-behind