All Free Software Engineering MCQs with Answers
Every Software Engineering question in the bank, across all chapters, each with the correct answer and a written explanation. Free and unlimited, with no account needed.
1,731 questions · page 76 of 87
- 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- 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