MTA 98-361
You then set the SRC attribute of the script tag to connect to the JavaScript file. Which of the following options describe your reasons for doing this? (Choose all that apply.) A. It will allow you to make sure that Web pages take the least time to load. B. It will prevent you from altering the JavaScript code. C. It will allow you to alter the JavaScript code using the least number of actions. D. It will increase the amount of data transmitted over the network.
A. It will allow you to make sure that Web pages take the least time to load. C. It will allow you to alter the JavaScript code using the least number of actions.
As you design a database for your company, you review the normalization rules for the database tables. You need to ensure that your table design meets the requirements for the third normal form. Which of the following statements must be true for your tables? (Choose all that apply.) A. None of the columns in the table should have multiple values in the same row of data. B. All non-key columns are functionally dependent on the entire primary key. C. At least one non-key column is functionally dependent on the entire primary key. D. Non-key attributes don't share any functional dependency. E. Non-key attributes share functional dependency.
A. None of the columns in the table should have multiple values in the same row of data. B. All non-key columns are functionally dependent on the entire primary key. D. Non-key attributes don't share any functional dependency.
You are currently analyzing the results of the design process, prior to development. What options form part of the results you are analyzing? A. Plans. B. Modes. C. Architecture. D. Hardware application.
A. Plans. B. Modes.
Which term is used to describe this object-oriented concept? A. polymorphism B. encapsulation C. superclassing D. overloading
A. polymorphism
Which of the following options are TRUE with regards to the queue data structure? A. It is a contiguous collection of data items that can be accessed by an ordinal index. 22 B. It does not allow random access. C. It does not support chaining, splitting, cycles, or other features that can leave the queue in a conflicting state. D. It is the most commonly used data structure.
B. It does not allow random access.
You have been instructed to create a new service application for ABC.com. Your code will include the System.ServiceProcess.ServiceInstaller class. What is a TRUE statement with regards to this class? A. It installs an executable containing classes that expand ServiceBase. B. It installs a class that expands ServiceBase to execute a service. C. It specifies a description for a property or event. D. It permits declarative service controller permission checks.
B. It installs a class that expands ServiceBase to execute a service.
The default entry point for a console application is the Class -------. A. No change is needed B. Main C. Program D. Object
B. Main
The process of transforming compiled C# code into an XML string for a web service is known as -------. A. No change is needed B. serialization C. decoding D. encoding
B. serialization
You are developing a webpage that enables students to manage races. The webpage will display two lists: past races and upcoming races. The page also contains a sidebar with contact information and a panel with social media settings that can be edited. Race results can be shared on social media. How many components will be on the webpage? A. 2 B. 3 C. 4 D. 5
C. 4
You are planning to develop a new software system for your organization. You need to review the system's technical blueprint. Which of the following participants is responsible for providing the technical blueprint? A. user interface designer B. developer C. architect D. technical writer
C. architect
You have a server that limits the number of data connections. What should you use to optimize connectivity when the number of users exceeds the number of available connections? A. Connection timeouts B. Named pipes C. Normalization D. Connection pooling
D. Connection pooling
You are writing a C# program and need to select an appropriate repetition structure for your requirement. You need to make sure that the test for the termination condition is performed at the bottom of the loop rather than at the top. Which repletion structure should you use? A. The while statement B. The for statement C. The foreach statement D. The do-while statement
D. The do-while statement
You are developing an order-entry application that will be used by all employees in your company. You use ASP.NET to develop this application and deploy it on the company's Internet Information Services (IIS) server. What should you install on the users computers before they can access the order-entry application? A. .NET Framework redistributable B. .NET Framework Software Development Kit (SDK) C. Visual Studio Express Edition D. Web browser
D. Web browser
You are writing a C# program that needs to manipulate very large integer values that may exceed 12 digits. The values can be positive or negative. Which data type should you use to store a variable like this? A. int B. float C. double D. long
D. long
Which type of function can a derived class override? A. A Protected Overridable member function B. A Shared function C. A Private Overridable function D. A non-overridable public member function
A. A Protected Overridable member function
You are employed as a developer at ABC.com. You are creating a .NET Framework application. You have been instructed to make sure that you make use of Common Intermediate Language (CLI) for programming the application. What options are TRUE with regards to CLI? (Choose all that apply.) A. CIL is the highest-level human-readable programming language defined by the Common Language Infrastructure specification. B. CIL is the highest-level human-readable programming language defined by the Common Language Infrastructure specification. C. CIL is an object-oriented assembly language, and is entirely stack-based. D. CIL is an object-oriented assembly language, but is not stack-based.
A. CIL is the highest-level human-readable programming language defined by the Common Language Infrastructure specification. C. CIL is an object-oriented assembly language, and is entirely stack-based.
You are creating an application that presents the user with a Windows Form. Which event is triggered each time the Windows Form receives focus? A. Enter B. Paint C. Load D. Activated
A. Enter
The purpose of the Finally section in an exception handler is to: A. Execute code regardless of whether an exception is thrown. B. Conclude the execution of the application. C. Execute code only when an exception is thrown. D. Break out of the error handler.
A. Execute code regardless of whether an exception is thrown.
You are developing an application that needs to copy data from a SQL Server table to a DataSet. Which of the following methods should you use to copy the data? A. Fill B. FillSchema C. GetFillParameters D. Update
A. Fill
What is the reason for the testing stage? A. It allows you to ascertain whether the program execution meets the initial requirements. B. It allows you to optimize the program for performance and security. C. It allows you to employ a data structure that serves as a buffer for overflow capacity. D. It allows you to analyze the packaging, deployment, delivery, and support plan for the program.
A. It allows you to ascertain whether the program execution meets the initial requirements.
You link the application to only the head node. What is TRUE for this scenario? A. It allows you to navigate all of the list's nodes. B. It prevents you from navigating to any list node. C. It prevents you from randomly accessing the list's items. D. It allows you to store linked list items in a contiguous memory location.
A. It allows you to navigate all of the list's nodes.
You are preparing to configure the IsMdiContainer property of the form. Which of the following is TRUE with regards to this configuration? A. It enables you to alter the display and performance of the form to an MDI parent form. B. It obtains a value indicating whether the form is a MDI child form. C. It prevents you from altering the display and performance of the form to an MDI parent form. D. It obtains a value indicating whether the form is a MDI parent form.
A. It enables you to alter the display and performance of the form to an MDI parent form.
You have been instructed to create a new windows program for ABC.com. The program must be able to record messages in the event log. You have decided to include the Source property of the EventLog class in your code. Which of the following best describes the purpose of the Source property in the EventLog class? A. The Source property is used to set the source name to register and use when writing to the event log. B. The Source property is used to set the object used to marshal the event handler calls issued as a result of an EventLog entry written event. C. The Source property is used to set the name of the log to read from or write to. D. The Source property is used to set the contents of the event log.
A. The Source property is used to set the source name to register and use when writing to the event log.
What are two possible options for representing a Web application within Internet Information Services (IIS)? (Each correct answer presents a complete solution. Choose two. ) A. Web site B. Web directory C. Virtual directory D. Application server E. Application directory
A. Web site C. Virtual directory
What is TRUE with regards to white-box testing? (Choose all that apply.) A. White-box testing allows for testing every imaginable combination of end-user activities. B. White-box testing requires the creation test cases by studying the code to identify any possible failure scenarios. C. You are allowed to make use of sample applications to integrate and test the application block for white box testing. D. White-box testing is also known as glass box, clear box, and open box testing
A. White-box testing allows for testing every imaginable combination of end-user activities. B. White-box testing requires the creation test cases by studying the code to identify any possible failure scenarios. D. White-box testing is also known as glass box, clear box, and open box testing
You have a class named Glass that inherits from a base class named Window. The Window class includes a protected method named break(). How should you call the Glass class implementation of the break() method? A. Window.break(); B. Glass.break(); C. this.break(); D. base.break();
A. Window.break();
You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development purposes. You are in the process of creating a class that makes use of a method using the virtual modifier. Which of the following is TRUE with regards to the virtual modifier? (Choose all that apply.) A. You are unable to make use of the virtual modifier with the static, abstract, private or override modifiers. B. You are able to make use of the virtual modifier with the static, abstract, private or override modifiers. C. The use of the virtual modifier prevents inheritance of the class. D. The virtual modifier is used in a class declaration to indicate that a class is intended only to be a base class of other classes.
A. You are unable to make use of the virtual modifier with the static, abstract, private or override modifiers.
You recently made use of C# to develop a new Web service that supports mapping data. You want to make sure that the Web service produces the proper output using the least amount of effort. Which of the following actions should you take? A. You should analyze the test page that is shown in the Web browser after using Visual Studio to execute the Web services project. B. You should consider making use of white-box testing. C. You should consider making use of black-box testing. D. You should consider making use of alpha testing -box testing.
A. You should analyze the test page that is shown in the Web browser after using Visual Studio to execute the Web services project.
You want to make sure that the code you create allows for the child windows to be displayed perpendicularly inside the client area of the MDI parent form. What option should you use in your code? A. You should consider making use of MdiLayout.TileVertical. B. You should consider making use of MdiLayout.TilePerpendicular. C. You should consider making use of MdiLayout.TileParallel. D. You should consider making use of MdiLayout.TileDiagonal.
A. You should consider making use of MdiLayout.TileVertical.
The new application must have the ability to duplicate information hosted by a ABC.com SQL server data table in a Dataset. What action should you take? A. You should consider making use of the Fill method in the written code. B. You should consider making use of the Copy method in the written code. C. You should consider making use of the Duplicate method in the written code. D. You should consider making use of the ReturnData method in the written code
A. You should consider making use of the Fill method in the written code.
What is displayed when you attempt to access a Web service by using a Web browser? A. a listing of methods that are available in the Web service B. a directory listing of the Web service's application structure C. an error page explaining that you have accessed the Web service incorrectly D. a visual depiction of your preliminary connection to the Web service
A. a listing of methods that are available in the Web service
The ---------sort algorithm steps through the list to be sorted, comparing adjacent items and swapping them if they are in the wrong order. A. bubble B. merge C. library D. insertion
A. bubble
You are developing a C# program that makes use of a singly linked list. You need to traverse all nodes of the list. Which of the following items will you need to accomplish this requirement? A. link to the head node B. link to the tail node C. data in the head node D. data in the tail node
A. link to the head node
Which three items are benefits of encapsulation? (Choose three.) A. maintainability B. flexibility C. restricted access D. inheritance E. performance
A. maintainability B. flexibility C. restricted access
What are two advantages of normalization in a database? (Choose two) A. prevents data inconsistencies B. reduces schema limitations C. minimizes impact of data corruption D. decreases space used on disk
A. prevents data inconsistencies D. decreases space used on disk
Which three phrases are advantages of connection pooling? (Choose three.) A. reduces time to create a connection B. requires no configuration C. reduces load on the server D. improved scalability E. improved performance
A. reduces time to create a connection D. improved scalability E. improved performance
Suppose that you defined a class Scenario that defines functionality for running customized pivot transform on large data sets. You do not want the functionality of this class to be inherited into derived classes. What keyword should you use to define the Scenario class? A. sealed B. abstract C. private D. internal
A. sealed
A table whose attributes depend only on the primary key must be at least ---------normal form. A. second B. first C. third D. fourth
A. second
You are planning to develop a new software system for your organization. You need to verify that the implementation of the system matches with the requirements of the system. Which of the following activities would accomplish this requirement? A. testing B. design C. release D. requirements analysis
A. testing
Which two types of information should you include in an effective test case? (Choose two.) A. the expected result from testing the case B. multiple actions combined as a single step to test the case C. any pre-conditions necessary to test the case D. the stakeholders who originated the test case
A. the expected result from testing the case B. multiple actions combined as a single step to test the case
The following functions are defined: What does the console display after the following line? Printer(2); A. 210 B. 211 C. 2101 D. 2121
B. 211
a data structure that satisfies the following requirements: •Prohibits random access to its items. •Are extremely fast in executing insert and delete operations. •Are not stored in contiguous memory locations. What data structure should you make use of? A. An array data structure. B. A linked list data structure. C. A stack data structure. D. A queue data structure.
B. A linked list data structure.
You are developing an application that needs to retrieve a list of customers and their orders from a SQL Server database. After the list is retrieved, you should be able to display this data, even when a connection to the SQL Server is not available. Which of the following classes should you use to hold the data? A. DataAdapter B. DataSet C. DataView D. SqlDataReader
B. DataSet
You are developing an ASP.NET Wep page that displays status of a shipment. You need to write some code that will change the Web page's appearance and assign values to some controls. Where should you put this code? A. In the InitializeComponent method B. In a method that handles the Load event C. In a method that handles the Init event D. In a method that handles the PreRender event
B. In a method that handles the Load event
What is TRUE with regards to the aspnet_wp.exe worker process? (Choose all that apply.) A. It is only used in IIs 6.0. B. It is responsible for supporting the ASP.NET functionality. C. It is considered an application pool process. D. It is used in IIS 5.0 and earlier
B. It is responsible for supporting the ASP.NET functionality. D. It is used in IIS 5.0 and earlier
Arguments are passed to console applications as a ---------object. A. No change is needed . B. String Array C. StoredProcedureCollection D. Dictionary
B. String Array
You are developing a new Windows service application. The application contains three different Windows services. Each service will have a different start type. Which of the following classes will help you perform the installation tasks specific to each service? You must suggest a solution that requires the least coding effort. A. System.ServiceProcess.ServiceProcessInstaller B. System.ServiceProcess.ServiceInstaller class C. System.Configuration.Installer class D. System.Configuration.Installer.ComponentInstaller class
B. System.ServiceProcess.ServiceInstaller class
You are creating an application that presents users with a graphical interface in which they can enter data. The application must run on computers that do not have network connectivity. Which type of application should you choose? A. Console-based B. Windows Forms C. Windows Service D. ClickOnce
B. Windows Forms
Your C# program needs to return the total number of customers in a SQL Server database. The program will be used several times a day. What is the fastest way to return this information from your program? (Select all answers that apply.) A. Write a SQL query. B. Write a stored procedure. C. Use the SqlDataAdapter.Fill method. D. Use the SqlCommand.ExecuteScalar method. E. Use the OleDbDataAdapter.Fill method.
B. Write a stored procedure. D. Use the SqlCommand.ExecuteScalar method.
The program must be able to return a list of data from a ABC.com database and allow you to view the returned data, regardless of whether you are linked to the SQL server or not. What action should you take? A. You should consider configuring the DataTable class to store the data. B. You should consider configuring the DataSet class to store the data. C. You should consider configuring the OleDbDataReader class to store the data. D. You should consider configuring the StreamReader class to store the data.
B. You should consider configuring the DataSet class to store the data.
You are using ASP.NET and C# to develop a new Web site for ABC.com. You have created a new application for ABC.com using C#. The new application must be able to retrieve a single value from a ABC.com SQL Server database. You want to make sure that this process takes as little time as possible. What option should you make use of? A. You should consider making use of the SqlCommand.ExecuteReader method. B. You should consider making use of the SqlCommand.ExecuteScalar method. C. You should consider making use of the SqlCommand.ExecuteXmlReader method. D. You should consider making use of the SqlCommand.BeginExecuteXmlReader method.
B. You should consider making use of the SqlCommand.ExecuteScalar method.
When a web service is referenced from a client application in Microsoft Visual Studio, which two items are created? (Choose two.) A. a stub B. a.wsdl file C. a proxy D. a .disco file
B. a.wsdl file D. a .disco file
The duplication of code so that modifications can happen in parallel is known as----------. A. No change is needed B. branching C. merging D. splitting
B. branching
You are studying various sorting algorithms to understand, analyze, and compare the various sorting techniques. Which of the following techniques should you utilize when using the BubbleSort algorithm? A. comparison B. comparison and swap C. comparison and partition D. partition and swap
B. comparison and swap
A piece of text that is 4096 bytes or smaller and is stored on and retrieved from the client computer to maintain state is known as a ViewState------- A. No change is needed B. cookie C. form post D. QueryString
B. cookie
You are writing a C# program that needs to iterate a fixed number of times. You need to make sure that your code is easy to understand and maintain even when the loop body contains complex code. Which of the following C# statements provide the best solution for this requirement? A. while B. for C. foreach D. do-while
B. for
What does the Console.Error property do within a console-based application? A. sets the standard error input stream B. gets the standard error output stream C. gets the standard error input stream D. sets the standard error output stream
B. gets the standard error output stream
The Dog class and the Cat class inherit from the Animal class. The Animal class includes a breathe() method and a speak() method. If the speak() method is called from an object of type Dog, the result is a bark. If the speak() method is called from an object of type Cat, the result is a meow. Which term is used to describe this object-oriented concept? A. multiple inheritance B. polymorphism C. data hiding D. encapsulation
B. polymorphism
This question requires that you evaluate the underlined text to determine if it is correct. When creating a site to utilize message queuing, the "IP address" must be configured to MSMQ. A. No change is needed B. protocol C. host header D. port
B. protocol
You created a class named GeoShape. You defined a method called Area in the GeoShape class. This method calculates the area of a geometric shape. You want the derived classes of GeoShape to supersede this functionality to support the area calculation of additional geometric shapes. When the method Area is invoked on a GeoShape object, the area should be calculated based on the runtime type of the GeoShape object. Which keyword should you use with the definition of the Area method in the GeoShape class? A. abstract B. virtual C. new D. overrides
B. virtual
You are creating an application that presents users with a graphical interface. Users will run this application from remote computers. Some of the remote computers do not have the . NET Framework installed. Users do not have permissions to install software. Which type of application should you choose? A. Windows Forms B. Windows Service C. ASP. NET D. Console-based
C. ASP. NET
The application you are developing needs to write data to a flat file that include items such as a five-digit integer key, followed by a 20-character customer name, followed by two date and time fields. Your solution should be as fast as possible and should create smallest size data file. Which of the following classes should you use? A. FileStream B. StreamWriter C. BinaryWriter D. DataWriter
C. BinaryWriter
You are developing a Windows application. The user needs to work with multiple windows of the application at the same time and needs a simplified interface. The application needs to be compatible with different display configurations, such as multiple monitors. Which of the following interfaces should you create? A. Create a Multiple Document Interface (MDI) Application. Open a single instance of the application. B. Create a Single Document Interface (SDI) Application. Open a single instance of the application. C. Create a Single Document Interface (SDI) Application. Open multiple instances of the application. D. Create a Multiple Document Interface (MDI) Application. Open multiple instances of the application.
C. Create a Single Document Interface (SDI) Application. Open multiple instances of the application.
This new program must be able to write information to a flat file. You decide to include a BinaryWriter class in your code. What is TRUE with regards to the BinaryWriter class? A. It writes characters using an encoding value to convert the characters to bytes. B. It allows characters to be read using an encoding value to convert the characters from bytes. C. It writes basic types in binary to a stream and supports writing strings in a specific encoding. D. It writes a forward-only stream of data rows to a data source.
C. It writes basic types in binary to a stream and supports writing strings in a specific encoding.
You have a class named Truck that inherits from a base class named Vehicle. The Vehicle class includes a protected method named brake (). How should you call the Truck class implementation of the brake () method? A. Vehicle. brake (); B. This. brake (); C. MyBase. brake(); D. Truck. brake ();
C. MyBase. brake();
You have created a new Web service that provides mapping data. You are working in a Visual Studio environment and use C# as your programming language. You need to test the Web service to ensure that it is returning correct results. What is the easiest way to test your new Web service? A. Copy and paste the Web service code into ASP.NET Web Applications. Run the Web application to see the results. B. Invoke the Web service from an ASP.NET client. Run the Web application to see the results. C. Run the Web services project from within Visual Studio and use the test page that is displayed in the Web browser. D. Have a large number of beta testers use tha Web service and check for incorrect results.
C. Run the Web services project from within Visual Studio and use the test page that is displayed in the Web browser.
The ------------ method is used to transfer processing of the current page to a new page, and then return processing back to the calling page once processing of the new page has completed. A. No change is needed B. Server.Transfer method C. Server.Execute method D. meta http-equiv="refresh" tag
C. Server.Execute method
Simulating the final design of an application in order to ensure that the development is progressing as expected is referred to as: A. Analyzing requirements B. Prototyping C. Software testing D. Flowcharting
C. Software testing
You are developing a C# program for a bike rental company. Every night, your application needs to read data from a SQL Server 2000 database and write it to a flat file. This flat file will be transferred to your supplier. Which of the following classes shall you use to retrieve the data? Any solution that you suggest must have very little impact of the server while maximizing performance. A. DataSet B. DataTable C. SqlDataReader D. OleDbDataReader
C. SqlDataReader
Your application includes a SqlDataAdapter object named sqlDataAdapter that connects to the Employees table. You use the Fill method to retrieve the data from the Employees table. The SqlDataAdapter's Connection property is set to a valid connection to the SQL Server database, but the connection is in the closed state. Which of the following statements is true about the working of the Fill method? A. The Fill method will throw an exception because the connection is closed. B. The Fill method will open the connection, read the data, and leave the connection open. C. The Fill method will open the connection, read the data, and leave the connection closed. D. The Fill method will return an empty resultset because the connection is closed.
C. The Fill method will open the connection, read the data, and leave the connection closed.
Which of the following is not true about linked lists? A. A linked list does not allow random access to its items. B. A link to the head node can help you locate all the nodes in a linked list. C. The items in a linked list must be stored in contiguous memory locations. D. Linked lists are extremely fast in performing insert and delete operations.
C. The items in a linked list must be stored in contiguous memory locations.
You are creating an application that accepts input and displays a response to the user. You cannot create a graphical interface for this application. Which type of application should you create? A. Windows Forms B. Windows Service C. Web-based D. Console-based
C. Web-based
Which type of function can a derived class override? A. a non-virtual public member function B. a private virtual function C. a protected virtual member function D. a static function
C. a protected virtual member function
You have completed developing several major features of a new software application. You plan to provide an early look at the product to important customers to gather some early feedback. Your application still misses features and you haven't yet optimized the application for performance and security. Which kind of testing should you perform with a limited number of important customers? A. white-box testing B. black-box testing C. alpha testing D. beta testing
C. alpha testing
You are writing a C# program that iterates through a collection such as arrays and lists. You need to make sure that you process each item in the collection once. You also need to ensure that your code is easy to read and debug. Which of the following C# statements provide the best solution for this requirement? A. while B. for C. foreach D. do-while
C. foreach
In your application, you are using a stack data structure to manipulate information. You need to find which data item will be processed next, but you don't want to actually process that data item yet. Which of the following queue operations will you use? A. pop B. push C. peek D. contains
C. peek
You are creating an application for a priority help desk center. The most recent call must be handled first. Which data structure should you use? A. queue B. hashtable C. stack D. binary tree
C. stack
What is the purpose of a technical writer? A. A technical writer develops system content. B. A technical writer develops the system's technical blueprint. C. A technical writer deals with quality control. D. A technical writer develops system manuals and help files.
D. A technical writer develops system manuals and help files.
You are developing a new Windows service application. The application contains three different Windows services. Before these services can be used, they must be installed in the Windows service database. What action should you take to ensure that your services can be installed by a Windows installer tool? A. Copy the service assembly to the global assembly cache. B. Add an event log installer to the Windows service project. C. Inherit the service from a ServiceBase class. D. Add a service installer to the Windows service project.
D. Add a service installer to the Windows service project.
You need to provide printing functionality to several of your classes. Each class's algorithm for printing will likely be different. Also, not all the classes have an "is-a" relationship with each other. How should you support this functionality? A. Add the print functionality to a base class with the public access modifier. B. Have all classes inherit from an abstract base class and override the base-class method to provide their own print functionality. C. Have all the classes inherit from a base class that provides the print functionality. D. Create a common interface that all classes implement.
D. Create a common interface that all classes implement.
The application allows students to indicate a preferred date and time for phone calls. Students may indicate no preferred time by leaving the date and time field https://www.gratisexam.com/ empty. The application must support multiple time zones. Which data type should you use to record the student's preferred date and time? A. uLong? B.DateTime C. SByte D. DateTimeOffset?
D. DateTimeOffset?
Your application must pull data from a database that resides on a separate server. Which action must you perform before your application can retrieve the data? A. Configure the network routers to allow database connections. B. Install the database on each client computer. C. Create a routine that bypasses firewalls by using Windows Management Instrumentation (WMI). D. Establish a connection to the database by using the appropriate data provider.
D. Establish a connection to the database by using the appropriate data provider.
You have written a C# method that opens a database connection by using the SqlConnect object. The method retrieves some information from the database and then closes the connection. You need to make sure that your code fails gracefully when there is a database error. To handle this situation, you wrap the database code in a try-catch-finally block. You use two catch blocks—one to catch the exceptions of type SqlException and the second to catch the exception of type Exception. Which of the following places should be the best choice for closing the SqlConnection object? A. Inside the try block, before the first catch block B. Inside the catch block that catches SqlException objects C. Inside the catch block that catches Exception objects D. Inside the finally block
D. Inside the finally block
You have a Windows Service running in the context of an account that acts as a non-privileged user on the local computer. The account presents anonymous credentials to any remote server. What is the security context of the Windows Service? A. LocalSystem B. User C. NetworkService D. LocalService
D. LocalService
In the life cycle of an ASP. NET Web page, which phase follows the SaveStateComplete phase? A. PostBack B. Postlnit C. Load D. Render
D. Render
You have developed a Windows Forms application that stockbrokers will use. The stockbrokers need to view data for multiple stocks at the same time. You need to change the display and behavior of a Windows Form so that it can contain multiple child windows. What should you do? A. Set the IsMdiChild property of the form. B. Set the MdiParent property for all the child windows. C. Set the MdiChild property of the form. D. Set the IsMdiContainer property of the form to true.
D. Set the IsMdiContainer property of the form to true.
You create an ASP.NET Web Service that tracks the shipment of orders. The Web service includes a class nemed StatusService, which contains the following method: Public string GetStatus() { /* additional code here */ } You note that you can instantiate the StatusService class from a Web service client project, but the GetStatus method is not available. What could be the problem? A. Only properties can be part of the public interface of a Web service. B. You must mark the method with the WebService attribute. C. The methods of a Web service can return only object data. D. You must mark the method with the WebMethod attribute.
D. You must mark the method with the WebMethod attribute.
ABCWebApp makes use of a Web service to obtain data. You want to make sure that you are able to make use of the methods of this Web service inside ABCWebApp by creating the client-side proxy classes. Which of the following actions should you take? A. You should consider inserting the reference in the machine.config file B. You should consider inserting the reference in the app.config file C. You should consider inserting the reference in the Web.config file. D. You should consider configuring a Web reference to identify the Web service.
D. You should consider configuring a Web reference to identify the Web service.
ABC.com has an Internet Information Services (IIS) server, named ABC-SR07, which hosts a newly developed Web application. You are then informed that you must ensure that all ABC.com's staff is able to make use of the new Web application. Which of the following actions should you take? A. You should consider making sure that all client workstations have Windows 7 installed. B. You should consider making sure that all client workstations have the necessary hardware requirements. C. You should consider making sure that all client workstations are password protected. D. You should consider making sure that all client workstations have a suitable Web browser installed.
D. You should consider making sure that all client workstations have a suitable Web browser installed.
You have received instructions to create a new C# program for ABC.com. You want to write code that declares members that belong to the actual class, not to specific objects. What is the action you should take? A. You should consider making use of an abstract keyword. B. You should consider making use of a string keyword. C. You should consider making use of a virtual keyword. D. You should consider making use of a static keyword.
D. You should consider making use of a static keyword.
You want to make sure that data from the database is loaded into the DataSet object using a strategy that provides the most efficient execution. What method should be included in your code? A. You should consider making use of the Read method. B. You should consider making use of the Get method. C. You should consider making use of the Set method. D. You should consider making use of the Fill method.
D. You should consider making use of the Fill method.
You are developing a data-entry application that receives user input in multiple data fields. The application allows users to enter the data either by using a keyboard or by using a bar-code scanner. When a code is entered, a picture of the product appears onscreen. The application also needs to log its operation to a console window. Occasionally, the operator will look at the console window to monitor communication with the scanner. What project should you choose to create such an application? A. a console application project B. a console application project with the Output type set to Windows Application C. a Windows Forms application project D. a Windows Forms application project with the Output type set to Console Application
D. a Windows Forms application project with the Output type set to Console Application
Which of the following prosses is responsible for providing the ASP.NET functionality? A. inetinfo.exe B. iexplorer.exe C. aspnet_isapi.dll D. aspnet_wp.exe
D. aspnet_wp.exe
You need an application that updates the inventory every morning when you log in to the workstation. If an error occurs during update, the application needs to log messages to a text file. The application doesn't need any user interaction. You want to automate the process that launches the application. You want to minimize the efforts for developing, installing, and updating the application. Which type of application should you create? A. Windows Service B. Windows Form C. Web Form D. console application
D. console application
In your application, you are using a queue data structure to manipulate information. You need to find whether a data item exists in the queue, but you don't want to actually process that data item yet. Which of the following queue operations will you use? A. enqueue B. dequeue C. peek D. contains
D. contains
You are developing a program that performs frequent insert and delete operations on the data. Your requirement also dictates the capability to access previous and next records when the user clicks the previous or next button. Which of the following data structures will best suit your requirements? A. array B. circular linked list C. linked list D. doubly linked list
D. doubly linked list
You are C# developer who is developing a Windows application. You need to provide derived classes the ability to share common functionality with base classes but still define their own unique behavior. Which objectoriented programming concept should you use to accomplish this functionality? A. encapsulation B. abstraction C. polymorphism D. inheritance
D. inheritance
You have a class with a property. You need to ensure that consumers of the class can write to the value of the property. Which keyword should you use? A. value B. add C. get D. set
D. set
You are planning to develop a new software system for your organization. Someone needs to be responsible for developing system manuals and help files. Which of the following participants should you identify for this task? A. user interface designer B. content developer C. user interface designer D. technical writer
D. technical writer
Class C and Class D inherit from Class B. Class B inherits from Class A. The classes have the methods shown in the following table. All methods have a protected scope. Which methods does Class C have access to? A. only m3, m4 B. only m2, m3 C. only ml, m3 D. m1, m3, m3 E. m2, m3, m4 F. m1, m2, m3
F. m1, m2, m3