nerdexam
Microsoft

98-372 · Question #1

Consider the following scenario. Allen has created a Windows Presentation Foundation (WPF) database application using .NET Framework 4.0. The application helps users keep track of their e-Book collect

The correct answer is C. App.config. App.config is the file name of the configuration file created by Visual Studio for Allen's application. Since Allen's project is a Windows application, Windows Presentation Foundation (WPF) in this case, Visual Studio will name the file app.config by default. However, a Web appli

Understanding Cloud Concepts

Question

Consider the following scenario. Allen has created a Windows Presentation Foundation (WPF) database application using .NET Framework 4.0. The application helps users keep track of their e-Book collection. He identifies that some computers might have many users, such as two roommates might share a computer, with both individuals using the same application on the same computer to manage their e-Book collections. Allen sets up a database to handle many users without mixing up the collections. Allen has implemented a very trendy system that allows users to alter the colors, fonts, and graphics in the application, giving it a personalized look and feel. What is the file name of the configuration file created by Visual Studio for Allen's application?

Options

  • AMachine.config
  • BSetting.config
  • CApp.config
  • DWeb.config

How the community answered

(24 responses)
  • A
    8% (2)
  • B
    4% (1)
  • C
    83% (20)
  • D
    4% (1)

Explanation

App.config is the file name of the configuration file created by Visual Studio for Allen's application. Since Allen's project is a Windows application, Windows Presentation Foundation (WPF) in this case, Visual Studio will name the file app.config by default. However, a Web application will use web.config. The App.config (Application configuration) file is a .NET configuration file that consists of a chain of settings specific to a Windows application. This file is usually located in the root directory of the application that is being configured according to a particular computer. Generally, the application configuration files override the configuration settings in the Machine.config (Machine configuration) file. Answer: B is incorrect. There is no such .config file as setting.config. Answer: D is incorrect. Web.config is the main settings and configuration file for an ASP.NET Web application. The file is an XML document that defines configuration information regarding the Web application. It contains information that control module loading, security configuration, session state configuration, and application language and compilation settings. Web.config files can also contain application specific items, such as database connection strings. The example of Web.config is as follows: <customErrors mode="off" defaultRedirect="mycustompage1.htm"/> </configuration> Answer: A is incorrect. The Machine.config file controls the configuration settings for the entire computer. It includes settings specific to a computer, such as built-in remoting channels, machine-wide assembly binding, and ASP .NET configuration settings. The configuration system first searches for APIs and ASP .NET settings in the machine.config file. The default configuration of the .NET Framework is declared in the Machine.config file.

Topics

#App.config#.NET Framework#WPF#application configuration

Community Discussion

No community discussion yet for this question.

Full 98-372 Practice