Updated Microsoft MTA 98-361 Exam Questions V9.02 | Killtest

Ace your homework & exams now with Quizwiz!

The purpose of the Catch section in an exception handler is to: A. Break out of the error handler. B. Conclude the execution of the application. C. Execute code only when an exception is thrown. D. Execute code regardless of whether an exception is thrown.

C. Execute code only when an exception is thrown.

The purpose of a constructor in a class is to: A. Initialize an object of that class. B. Release the resources that the class holds. C. Create a value type. D. Inherit from the base class.

A. Initialize an object of that class.

You are creating a variable for an application. You need to store data that has the following characteristics in this variable: - Consists of numbers and characters - Includes numbers that have decimal points Which data type should you use? A. String B. Float C. Char D. Decimal

A. String

Two classes named Circle and Square inherit from the Shape class. Circle and Square both inherit Area from the Shape class, but each computes Area differently. Which term is used to describe this object-oriented concept? A. polymorphism B. encapsulation C. superclassing D. overloading

A. polymorphism

You have a stack that contains integer values. The values are pushed onto the stack in the following order: 2,4,6,8. The following sequence of operations is executed: Pop Push 3 Pop Push 4 Push 6 Push 7 Pop Pop Pop What is the value of the top element after these operations are executed? A. 2 B. 3 C. 6 D. 7

B. 3

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

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

Which term is used to describe a class that inherits functionality from an existing class? A. Base class B. Inherited class C. Derived class D. Superclass

C. Derived class

What are two methods that can be used to evaluate the condition of a loop at the start of each iteration? (Each correct answer presents a complete solution. Choose two. ) A. If B. Do. . . While C. For D. While

C. For D. While

A class named Manager is derived from a parent class named Employee. The Manager class includes characteristics that are unique to managers. Which term is used to describe this object-oriented concept? A. Encapsulation B. Data modeling C. Inheritance D. Data hiding

C. Inheritance

Which type of Windows application presents a parent window that contains child windows? A. Application programming interface (API) B. Single-document interface (SDI) C. Multiple-document interface (MDI) D. Command-line interface (CLI)

C. Multiple-document interface (MDI)

You are designing a class for an application. You need to restrict the availability of the member variable accessCount to the base class and to any classes that are derived from the base class. Which access modifier should you use? A. Internal B. Protected C. Private D. Public

C. Private

You need to allow a consumer of a class to modify a private data member. What should you do? A. Assign a value directly to the data member. B. Provide a private function that assigns a value to the data member. C. Provide a public function that assigns a value to the data member. D. Create global variables in the class.

C. Provide a public function that assigns a value to the data member.

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

The elements of an array must be accessed by: A. Calling the item that was most recently inserted into the array. B. Calling the last item in the memory array. C. Using an integer index. D. Using a first-in, last-out (FILO) process.

C. Using an integer index.

How does a console-based application differ from a Windows Forms application? A. Console-based applications require the XNA Framework to run. B. Windows Forms applications do not provide a method for user input. C. Windows Forms applications can access network resources. D. Console-based applications do not display a graphical interface.

D. Console-based applications do not display a graphical interface.

An application presents the user with a graphical interface. The interface includes buttons that the user clicks to perform tasks. Each time the user clicks a button, a method is called that corresponds to that button. Which term is used to describe this programming model? A. Functional B. Service oriented C. Structured D. Event driven

D. Event driven

You need to evaluate the following expression: (A>B) AND (C<D) What is the value of this expression if A=3, B=4, C=4, and D=5? A. 0 B. 4 C. 5 D. False E. Null F. True

D. False

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 are creating an ASP. NET Web application. Which line of code should you use to require a control to process on the computer that hosts the application? A. defaultRedirect="ServerPage. htm" B. redirect="HostPage. htm" C. AutoEvencWireup="true" D. runat="server"

D. runat="server"


Related study sets

General Electrical Requirements, Definitions, Services, and Branch Circuits and Feeder Requirements

View Set

Maximum Permissible Dose Equivalent (MPD)

View Set

Business Law: Chapter 19 (Corporations)

View Set

Wonderlic 25 Question Quick Practice Test

View Set