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 3 of 14
- A. Call the DataBind method
- B. Set the DataSource property
- C. Both A and B
- D. None of these
Explanation: The Repeater needs a data source assigned through DataSource, and DataBind() must then be called to create its item controls from that…
Correct answer: Both A and B- A. XML
- B. HTML
- C. WML
- D. All of the above
Explanation: An ASPX page is processed on the server and normally sends HTML markup as the response for a browser to render.
Correct answer: HTML- A. ComVisible attributes
- B. DLLImport Attributes
- C. COM Interop
- D. All of the above
Explanation: The ComVisible attribute controls whether a .NET type is exposed to COM; applying ComVisible(false) hides a public class from COM clients.
Correct answer: ComVisible attributes- A. It runs random
- B. When application is running for more than 15 minutes
- C. When application is running low of memory
- D. None of these
Explanation: The .NET garbage collector runs according to runtime memory and allocation heuristics, commonly when the managed heap needs more memory…
Correct answer: When application is running low of memory- A. Theme
- B. Master Page
- C. Customization
- D. None of these
Explanation: An ASP.NET theme is a shared location for visual settings such as styles, skins, and related appearance definitions.
Correct answer: Theme- A. Session Objects
- B. Application Objects
- C. Viewstate
- D. All of the above
Explanation: ASP.NET state can be maintained at different scopes: Session stores data for an individual user, Application stores shared…
Correct answer: All of the above- A. All users within a single tunnel
- B. All Users of an application
- C. A Single session
- D. All of the above
Explanation: Session state is maintained separately for each client session, so one session cannot directly access another session's variables.
Correct answer: A Single session- A. The customer can run on any platform.
- B. Such a situation cannot happen at all
- C. The customer must be having technology that run ASP.
- D. None of the Above
Explanation: A web service communicates through platform-independent web protocols such as HTTP and SOAP, so the customer does not need ASP.NET or any…
Correct answer: The customer can run on any platform.- A. Static
- B. Linear
- C. Topdown
- D. Event-driven
Explanation: ASP.NET responds to events such as page loading, button clicks, and control commands, so it follows an event-driven processing model.
Correct answer: Event-driven- A. Add Source, Tag prefix
- B. Add Tag prefix, Tag name
- C. Add Src, Tagprefix, Tagname
- D. None of these
Explanation: A user control registration needs its source file, tag prefix, and tag name so the page can map a custom markup tag to the control.
Correct answer: Add Src, Tagprefix, Tagname- A. System.Web.Mail.SmtpMail
- B. System.Web.Mail.MailMessage
- C. Both A and B
- D. None of these
Explanation: In the older ASP.NET mail API, MailMessage represents the email and SmtpMail sends it through an SMTP server, so both classes are…
Correct answer: Both A and B- A. Page.User.IsInRole
- B. Page.User.Name
- C. Page.User.Identity
- D. None of these
Explanation: Page.User.Identity represents the authenticated user's identity and exposes the user name through its Name property.
Correct answer: Page.User.Identity- A. SQLDataReader
- B. Data Set
- C. Both A and B
- D. None of these
Explanation: SQLDataReader reads rows sequentially and keeps only a small amount of data in memory, whereas a DataSet stores a disconnected, in-memory…
Correct answer: SQLDataReader- A. Application object
- B. Session object
- C. Server object
- D. Response object
Explanation: The Session object stores state separately for each client or user across requests.
Correct answer: Session object- A. Response.Output.Write() allows you to write formatted output
- B. Response.Output.Write() allows you to stream output
- C. Response.Output.Write() allows you to buffer output
- D. Response.Output.Write() allows you to flush output
Explanation: Response.Output is a TextWriter, so its Write method supports formatted output through format strings and arguments.
Correct answer: Response.Output.Write() allows you to write formatted output- A. Alerts Snap-ins
- B. Performance logs
- C. MMC Event viewers
- D. All of the above
Explanation: Web applications can be monitored through alert tools, performance logs, and event viewers, which respectively signal problems, record…
Correct answer: All of the above- A. asp:listitem
- B. asp:button
- C. asp:label
- D. none of these
Explanation: The ASP.NET Label control displays text on a web page and can be changed programmatically.
Correct answer: asp:label- A. System.Web.Services
- B. System.Web.Ui.Forms.Security
- C. System.Web.Configuration
- D. System.Web.Security
Explanation: Forms authentication classes such as FormsAuthentication are provided by the System.Web.Security namespace.
Correct answer: System.Web.Security- A. Set the ClientTarget property to Downlevel
- B. Set the Runat property to server
- C. Set the inherits property to codeb
- D. Set the language property to C#
Explanation: Setting ClientTarget to Downlevel makes ASP.NET render the page for a browser without client-script support, disabling client-side…
Correct answer: Set the ClientTarget property to Downlevel- A. Load()
- B. Unload( )
- C. PreRender( )
- D. None of the Above Hire Civil Engineers
Explanation: During the ASP.NET page lifecycle, Load runs after initialization and before PreRender, making it the normal event for a page that has…
Correct answer: Load()