MTA 98-361 || with Accurate Answers 100%.
You are creating an application for computers that run Windows XP or later.
This application must run after the computer starts. The user must not be aware that the
application is
running.
The application performs tasks that require permissions that the logged-in user does not
have.
Which type of application allows this behavior? correct answers Windows Service
application
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? correct answers Event-driven
How does a console-based application differ from a Windows Forms application? correct
answers Console-based applications do not display a graphical interface.
Which type of Windows application presents a parent window that contains child windows?
correct answers Multiple-document interface (MDI)
The purpose of a constructor in a class is to: correct answers Initialize an object of that class.
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? correct answers Inheritance
Which term is used to describe a class that inherits functionality from an existing class?
correct answers Derived class
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? correct answers polymorphism
You need to allow a consumer of a class to modify a private data member.
What should you do? correct answers Provide a public function that assigns a value to the
data member.
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? correct answers Protected
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? correct answers 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? correct answers ASP. NET
The elements of an array must be accessed by correct answers Using an integer index.
Simulating the final design of an application in order to ensure that the development is
progressing as expected is referred to as: correct answers Software testing
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? correct answers 6
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. ) correct
answers For and While
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? correct answers False
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? correct answers String
The purpose of the Catch section in an exception handler is to: correct answers Execute code
only when an exception is thrown.
You execute the following code.
for (int i = 0; i <= 10; i+= 2)
{
Console.Writeline("Hello") ;
}
You are creating an application for computers that run Windows XP or later.
This application must run after the computer starts. The user must not be aware that the
application is
running.
The application performs tasks that require permissions that the logged-in user does not
have.
Which type of application allows this behavior? correct answers Windows Service
application
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? correct answers Event-driven
How does a console-based application differ from a Windows Forms application? correct
answers Console-based applications do not display a graphical interface.
Which type of Windows application presents a parent window that contains child windows?
correct answers Multiple-document interface (MDI)
The purpose of a constructor in a class is to: correct answers Initialize an object of that class.
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? correct answers Inheritance
Which term is used to describe a class that inherits functionality from an existing class?
correct answers Derived class
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? correct answers polymorphism
You need to allow a consumer of a class to modify a private data member.
What should you do? correct answers Provide a public function that assigns a value to the
data member.
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? correct answers Protected
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? correct answers 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? correct answers ASP. NET
The elements of an array must be accessed by correct answers Using an integer index.
Simulating the final design of an application in order to ensure that the development is
progressing as expected is referred to as: correct answers Software testing
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? correct answers 6
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. ) correct
answers For and While
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? correct answers False
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? correct answers String
The purpose of the Catch section in an exception handler is to: correct answers Execute code
only when an exception is thrown.
You execute the following code.
for (int i = 0; i <= 10; i+= 2)
{
Console.Writeline("Hello") ;
}