98-361 Exam - Free Actual Q&As, Page 1 - ExamTopics
98-361 Exam - Free Actual Q&As, Page 1 - ExamTopics
Topic 1 - C#
Question #1 Topic 1
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?
C. DOS batch le
Correct Answer: A
Question #2 Topic 1
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
Correct Answer: D
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 1/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Question #3 Topic 1
Correct Answer: D
Question #4 Topic 1
Which type of Windows application presents a parent window that contains child windows?
Correct Answer: C
A multiple document interface (MDI) is a graphical user interface in which multiple windows reside under a single parent window. Such systems
often allow child windows to embed other windows inside them as well, creating complex nested hierarchies. This contrasts with single
document interfaces (SDI) where all windows are independent of each other.
Question #5 Topic 1
Correct Answer: A
Each value type has an implicit default constructor that initializes the default value of that type.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 2/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Question #6 Topic 1
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
Correct Answer: C
Classes (but not structs) support the concept of inheritance. A class that derives from another class (the base class) automatically contains all
the public, protected, and internal members of the base class except its constructors and destructors.
Incorrect:
is sometimes referred to as the rst pillar or principle of object-oriented programming. According to the principle of encapsulation, a class or
struct can specify how accessible each of its members is to code outside of the class or struct. Methods and variables that are not intended to
be used from outside of the class or assembly can be hidden to limit the potential for coding errors or malicious exploits.
Question #7 Topic 1
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
Correct Answer: C
) automatically contains all the public,
protected, and internal members of the base class except its constructors and destructors.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 3/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Question #8 Topic 1
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
Correct Answer: A
You can use polymorphism to in two basic steps:
Create a class hierarchy in which each speci c shape class derives from a common base class.
Use a virtual method to invoke the appropriate method on any derived class through a single call to the base class method.
Question #9 Topic 1
A. Null
B. 0
C. 3
D. 7
Correct Answer: C
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 4/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Correct Answer: C
In this example (see below), the Employee class contains two private data members, name and salary. As private members, they cannot be
accessed except by member methods. Public methods named GetName and Salary are added to allow controlled access to the private
members. The name member is accessed by way of a public method, and the salary member is accessed by way of a public read-only property.
Note: The private keyword is a member access modi er. Private access is the least permissive access level. Private members are accessible
only within the body of the class or the struct in which they are declared
Example:
class Employee2
{
private string name = "FirstName, LastName";
private double salary = 100.0;
public string GetName()
{
return name;
}
public double Salary
{
get { return salary; }
}
}
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 5/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
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 modi er should you use?
A. Internal
B. Protected
C. Private
D. Public
Correct Answer: C
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
Correct Answer: B
Use Windows Forms when a GUI is needed.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 6/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
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
Correct Answer: C
A. Calling the item that was most recently inserted into the array.
Correct Answer: C
Simulating the nal 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
Correct Answer: C
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 7/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
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
Correct Answer: B
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 8/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
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
Correct Answer: CD
For and While constructs check at the start of each iteration.
A. 0
B. 4
C. 5
D. False
E. Null
F. True
Correct Answer: D
A>B is false.
A. String
B. Float
C. Char
D. Decimal
Correct Answer: A
Need a string to store characters.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 9/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
A. 0
B. 1
C. 2
D. 3
Correct Answer: C
Correct Answer: C
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 10/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
A. 5
B. 6
C. 10
D. 12
Correct Answer: B
In the life cycle of an ASP. NET Web page, which phase follows the SaveStateComplete phase?
A. PostBack
B. Postlnit
C. Load
D. Render
Correct Answer: D
The SaveStateComplete event is raised after the view state and control state of the page and controls on the page are saved to the persistence
medium.
This is the last event raised before the page is rendered to the requesting browser.
A. defaultRedirect="ServerPage. htm"
B. redirect="HostPage. htm"
C. AutoEvencWireup="true"
D. runat="server"
Correct Answer: D
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 11/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Correct Answer: C
In XHTML, the <br> tag must be properly closed, like this: <br />.
You create an application that uses Simple Object Access Protocol (SOAP).
Which technology provides information about the application's functionality to other applications?
Correct Answer: A
WSDL is often used in combination with SOAP and an XML Schema to provide Web services over the Internet. A client program connecting to a
Web service can read the WSDL le to determine what operations are available on the server. Any special datatypes used are embedded in the
WSDL le in the form of XML
Schema. The client can then use SOAP to actually call one of the operations listed in the WSDL le using for example XML over HTTP.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 12/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Which language allows you to dynamically create content on the client side?
D. JavaScript (JS)
Correct Answer: D
JavaScript (JS) is a dynamic computer programming language. It is most commonly used as part of web browsers, whose implementations
allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is
displayed.
Correct Answer: B
Start by adding a Service Reference to the project. Right-click the ConsoleApplication1 project and choose "Add Service Reference":
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
Correct Answer: AC
* Create a Web Application
An application is a grouping of content at the root level of a Web site or a grouping of content in a separate folder under the Web site's root
directory. When you add an application in IIS 7, you designate a directory as the application root, or starting point, for the application and then
specify properties speci c to that particular application, such as the application pool that the application will run in.
* You can make an Existing Virtual Directory a Web Application.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 13/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Which language uses Data De nition Language (DDL) and Data Manipulation Language (DML)?
A. SQL
B. C++
C. Pascal
D. Java
Correct Answer: A
SQL uses DDL and DML.
A table named Student has columns named ID, Name, and Age. An index has been created on the ID column. What advantage does this index
provide?
Correct Answer: B
Faster to access an index table.
Which language was designed for the primary purpose of querying data, modifying data, and managing databases in a Relational Database
Management
System?
A. Java
B. SQL
C. C++
D. Visual Basic
Correct Answer: B
SQL is a special-purpose programming language designed for managing data held in a relational database management system (RDBMS).
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 14/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
You need to ensure the data integrity of a database by resolving insertion, update, and deletion anomalies.
Which term is used to describe this process in relational database design?
A. Isolation
B. Normalization
C. Integration
D. Resolution
Correct Answer: B
Database normalization is the process of organizing the elds and tables of a relational database to minimize redundancy. Normalization
usually involves dividing large tables into smaller (and less redundant) tables and de ning relationships between them. The objective is to
isolate data so that additions, deletions, and modi cations of a eld can be made in just one table and then propagated through the rest of the
database using the de ned relationships.
In your student directory database, the Students table contains the following elds: rstName lastName emailAddress telephoneNumtoer
You need to retrieve the data from the rstName, lastName, and emailAddress elds for all students listed in the directory. The results must be in
alphabetical order according to lastName and then rstName.
Which statement should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Correct Answer: A
to sort use: ORDER BY LastName, FirstName
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 15/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Correct Answer: A
You are creating an application that presents the user with a Windows Form. You need to con gure the application to display a message box to
con rm that the user wants to close the form.
Which event should you handle?
A. Deactivate
B. Leave
C. FormClosed
D. FormClosing
Correct Answer: D
The Closing event occurs as the form is being closed.
A. Windows Service
B. Windows Forms
C. Console-based
D. Batch le
Correct Answer: A
A Windows service runs in the background and has no interface.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 16/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
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
Correct Answer: C
You need to create an application that processes data on a last-in, rst-out (LIFO) basis.
Which data structure should you use?
A. Queue
B. Tree
C. Stack
D. Array
Correct Answer: C
A stack implements LIFO.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 17/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
You are creating an application for a help desk center. Calls must be handled in the same order in which they were received.
Which data structure should you use?
A. Binary tree
B. Stack
C. Hashtable
D. Queue
Correct Answer: D
A queue keeps the order of the items.
In the application life cycle, the revision of an application after it has been deployed is referred to as:
A. Unit testing
B. Integration
C. Maintenance
D. Monitoring
Correct Answer: C
In which order do the typical phases of the Software Development Life Cycle occur?
Correct Answer: D
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 18/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
A. 1
B. 2
C. 3
D. 4
Correct Answer: B
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 19/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
A. 49
B. 50
C. 51
D. 100
Correct Answer: B
The % operator computes the remainder after dividing its rst operand by its second. All numeric types have prede ned remainder operators.
In this case the reminder will be nonzero 50 times (for i with values 1, 3, 5,..,99).
You are creating a routine that will perform calculations by using a repetition structure. You need to ensure that the entire loop executes at least
once.
Which looping structure should you use?
A. For
B. While
C. Do„While
D. For. „Each
Correct Answer: C
In a Do..While loop the test is at the end of the structure, so it will be executed at least once.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 20/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Correct Answer: A
By using a nally block, you can clean up any resources that are allocated in a try block, and you can run code even if an exception occurs in the
try block.
Typically, the statements of a nally block run when control leaves a try statement. The transfer of control can occur as a result of normal
execution, of execution of a break, continue, goto, or return statement, or of propagation of an exception out of the try statement.
You are creating the necessary variables for an application. The data you will store in these variables has the following characteristics:
✑ Consists of numbers
✑ Includes numbers that have decimal points
✑ Requires more than seven digits of precision
You need to use a data type that will minimize the amount of memory that is used.
Which data type should you use?
A. decimal
B. double
C. byte
D. oat
Correct Answer: B
The double keyword signi es a simple type that stores 64-bit oating-point values.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 21/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Your database administrators will not allow you to write SQL code in your application.
How should you retrieve data in your application?
Correct Answer: C
The SQL will only be inside the stored procedure.
You are reviewing a design for a database. A portion of this design is shown in the exhibits. Note that you may choose either the Crow's Foot
Notation or Chen
Notation version of the design. (To view the Crow's Foot Notation, click the Exhibit A button. To view the Chen Notation, click the Exhibit B button.
)
A. Field
B. Attribute
C. Property
D. Entity
Correct Answer: D
Customer is a table (entity).
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 22/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
A. Connection timeouts
B. Named pipes
C. Normalization
D. Connection pooling
Correct Answer: D
In software engineering, a connection pool is a cache of database connections maintained so that the connections can be reused when future
requests to the database are required.
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?
C. Create a routine that bypasses rewalls by using Windows Management Instrumentation (WMI).
Correct Answer: D
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 23/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
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?
C. MyBase. brake();
Correct Answer: C
The MyBase keyword behaves like an object variable referring to the base class of the current instance of a class.MyBase is commonly used to
access base class members that are overridden or shadowed in a derived class.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 24/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Which of the following must exist to inherit attributes from a particular class?
A. Public properties
B. A has-a relationship
C. An is-a relationship
D. Static members
Correct Answer: A
There must be some public properties that can be inherited.
D. a static function
Correct Answer: C
You can override virtual functions de ned in a base class from the Visual Studio.
The override modi er is required to extend or modify the abstract or virtual implementation of an inherited method, property, indexer, or event.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 25/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
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.
A. only m3, m4
B. only m2, m3
C. only ml, m3
D. m1, m3, m3
E. m2, m3, m4
F. m1, m2, m3
Correct Answer: F
You need to create a property in a class. Consumers of the class must be able to read the values of the property. Consumers of the class must be
prevented from writing values to the property.
Which property procedure should you include?
A. Return
B. Get
C. Set
D. Let
Correct Answer: B
A. 0
B. 1
C. 2
D. 3 or more
Correct Answer: A
If a class contains no instance constructor declarations, a default instance constructor is automatically provided. That default constructor
simply invokes the parameterless constructor of the direct base class.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 26/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Which function does Simple Object Access Protocol (SOAP) provide when using Web services?
B. communications protocol
C. security model
Correct Answer: B
SOAP, originally de ned as Simple Object Access Protocol, is a protocol speci cation for exchanging structured information in the
implementation of web services in computer networks. It relies on XML Information Set for its message format, and usually relies on other
application layer protocols, most notably Hypertext
Transfer Protocol (HTTP) or Simple Mail Transfer Protocol (SMTP), for message negotiation and transmission.
Which term is used to describe small units of text that are stored on a client computer and retrieved to maintain state?
A. trace
B. cookie
C. server transfer
D. cross-page post
Correct Answer: B
HTTP is a stateless protocol. This means that user data is not persisted from one Web page to the next in a Web site. One way to maintain state
is through the use of cookies. Cookies store a set of user speci c information, such as a reference identi er for a database record that holds
customer information.
You are creating a Web application. The application will be consumed by client computers that run a variety of Web browsers.
Which term is used to describe the process of making the application available for client computers to access?
A. Casting
B. Deploying
C. Hosting
D. Virtualization
Correct Answer: C
You host web applications.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 27/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
You are writing a Web application that processes room reservation requests. You need to verify that the room that a guest has selected is not
already reserved by another guest.
Which type of programming should you use to determine whether the room is still available when the request is made?
A. client-side
B. server-side
C. multithreaded
D. batch processing
Correct Answer: B
For room availability we need to check a database located on a server.
You need to group all the style settings into a separate le that can be applied to all the pages in a Web application.
What should you do?
D. Use a WebKit.
Correct Answer: A
Cascading Style Sheets (CSS) is a style sheet language used for describing the look and formatting of a document written in a markup
language.
CSS is designed primarily to enable the separation of document content from document presentation, including elements such as the layout,
colors, and fonts.
Where must Internet Information Services (IIS) be installed in order to run a deployed ASP. NET application?
Correct Answer: B
IIS is run on the web server. The web server is hosting the application.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 28/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
What is displayed when you attempt to access a Web service by using a Web browser?
C. an error page explaining that you have accessed the Web service incorrectly
Correct Answer: A
The server, in response to this request, displays the Web service's HTML description page.
The Web service's HTML description page shows you all the Web service methods supported by a particular Web service. Link to the desired
Web service method and enter the necessary parameters to test the method and see the XML response.
You are writing a Web application that processes room reservation requests. You need to verify that the room that a guest has selected is not
already reserved by another guest.
Which type of programming should you use to determine whether the room is still available when the request is made?
A. functional
B. dynamic
C. in-browser
D. server-side
Correct Answer: D
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 29/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
HOTSPOT -
You are developing a web application.
You need to create the following graphic by using Cascading Style Sheets (CSS):
Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.
Hot Area:
Correct Answer:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 30/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
You are migrating several HTML pages to your website. Many of these pages contain HTML <center> and <font> tags. Which XHTML document
type declaration should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Correct Answer: A
The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in.
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 con gured to MSMQ.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed'' if the underlined text makes
the statement correct.
A. No change is needed
B. protocol
C. host header
D. port
Correct Answer: B
MSMQ is a messaging protocol that allows applications running on separate servers/processes to communicate in a failsafe manner.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 31/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Correct Answer: D
* Because a service must be run from within the context of the Services Control Manager rather than from within Visual Studio, debugging a
service is not as straightforward as debugging other Visual Studio application types. To debug a service, you must start the service and then
attach a debugger to the process in which it is running.
* To debug a service
Install your service.
Start your service, either from Services Control Manager, Server Explorer, or from code.
In Visual Studio, choose Attach to Process from the Debug menu.
Etc.
HOTSPOT -
You are creating a Windows Store application that uses the following gesture:
Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.
Hot Area:
Correct Answer:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 32/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Correct Answer: B
The Console.Error property gets the standard error output stream.
This question requires that you evaluate the underlined text to determine if it is correct.
The default entry point for a console application is the Class method.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed'' if the underlined text makes
the statement correct.
A. No change is needed
B. Main
C. Program
D. Object
Correct Answer: B
The default entry point for a console application is the Class Main.
This question requires that you evaluate the underlined text to determine if it is correct.
Converting an object to a more general type is called upcasting.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed'' if the underlined text makes
the statement correct.
A. No change is needed
B. downcasting
C. interfacing
D. exing
Correct Answer: A
Casting up a hierarchy means casting from a derived object reference to a base object reference.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 33/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
DRAG DROP -
You are extending an application that stores and displays the results of various types of foot races. The application contains the following
de nitions:
Correct Answer:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 34/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
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();
Correct Answer: A
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 35/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
You are developing an application that tracks tennis matches. A match is represented by the following class:
How many times is the Location property on the newly created Match class assigned?
A. 0
B. 1
C. 2
D. 3
Correct Answer: C
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 36/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
HOTSPOT -
You have a base class named Tree with a friend property named color and a protected property named NumberOfLeaves. In the same project, you
also have a class named Person.
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Hot Area:
Correct Answer:
HOTSPOT -
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Hot Area:
Correct Answer:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 37/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
This question requires that you evaluate the underlined text to determine if it is correct.
The duplication of code so that modi cations can happen in parallel is known as separating.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed'' if the underlined text makes
the statement correct.
A. No change is needed
B. branching
C. merging
D. splitting
Correct Answer: B
When you develop applications in a team-based environment, you might need to access multiple versions of your application at the same time.
If you copy one or more areas of your code into a separate branch, you can update one copy while you preserve the original version, or you can
update both branches to meet different needs. Depending on your development goals, you can later merge the changes from multiple branches
to create a single version that re ects all changes.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 38/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
HOTSPOT -
You are reviewing the architecture for a system that allows race o cials to enter the results of 5K race results. The results are then made
available to students using a web application. The architecture is shown below:
Use the drop-down menus to select the answer choice that answers each question. Each correct selection is worth one point.
Hot Area:
Correct Answer:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 39/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
DRAG DROP -
You are developing an application that displays a list of race results. The race results are stored in the following class:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 40/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Correct Answer:
if (CurrentOlympicRecord == null)
CurrentOlympicRecord = race;
else
{
if (previous != null) previous.Faster = race;
if (current != null) current.Slower = race;
}
}
upvoted 1 times
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 41/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
DRAG DROP -
You are developing an application to display track and eld race results.
The application must display the race results twice. The rst time it must display only the winner and runner-up. The second time it must display
all participants.
The code used to display results is shown below.
Correct Answer:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 42/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
HOTSPOT -
You are reviewing the following code that saves uploaded images.
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Hot Area:
Correct Answer:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 43/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
A. 210
B. 211
C. 2101
D. 2121
Correct Answer: B
The throw keyword is used to perform which two actions? (Choose two.)
C. raise exceptions
Correct Answer: CD
* The Throw statement throws an exception that you can handle with structured exception-handling code (Try...Catch...Finally) or unstructured
exception-handling code (On Error GoTo). You can use the Throw statement to trap errors within your code because Visual Basic moves up the
call stack until it nds the appropriate exception-handling code.
* This example throws an ApplicationException exception.
Throw New ApplicationException
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 44/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
HOTSPOT -
You have the following owchart:
Use the drop-down menus to select the answer choice that completes each statement Each correct selection is worth one point.
Hot Area:
Correct Answer:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 45/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
D. improved scalability
E. improved performance
You are creating a database for a student directory. The Students table contains the following elds:
Which statement will retrieve only the rst name, last name, and telephone number for every student listed in the directory?
Correct Answer: B
Use SELECTFROM and list the elds you want to retrieve.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 46/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
HOTSPOT -
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Hot Area:
Correct Answer:
It is not common, but cardinality also sometimes refers to the relationships between tables. Cardinality between tables can be one-to-one,
many-to-one or many-to-many.
upvoted 1 times
This question requires that you evaluate the underlined text to determine if it is correct.
The bene t of using a transaction when updating multiple tables is that the update cannot fail.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed" if the underlined text makes
the statement correct.
A. No change is needed
Correct Answer: B
The bene t of using a transaction when updating multiple tables is that the update succeeds or fails as a unit.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 47/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Correct Answer: AD
This also can actually increase chance of corruption - if that Address table gets corrupted, all the tables that use it are negatively affected as
well.
upvoted 1 times
HOTSPOT -
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Hot Area:
Correct Answer:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 48/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
This question requires that you evaluate the underlined text to determine if it is correct.
Unit testing is the nal set of tests that must be completed before a feature or product can be considered nished.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed'' if the underlined text makes
the statement correct.
A. No change is needed
B. User acceptance
C. System
D. Integration
Correct Answer: B
User acceptance testing (UAT) is the last phase of the software testing process. During UAT, actual software users test the software to make
sure it can handle required tasks in real-world scenarios, according to speci cations.
UAT is one of the nal and critical software project procedures that must occur before newly developed software is rolled out to the market.
UAT is also known as beta testing, application testing or end user testing.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 49/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
You need to create a stored procedure that passes in a person's name and age.
Which statement should you use to create the stored procedure?
A. Option A
B. Option B
C. Option C
D. Option D
Correct Answer: B
Example (nvarchar and int are best here):
The following example creates a stored procedure that returns information for a speci c employee by passing values for the employee's rst
name and last name.
This procedure accepts only exact matches for the parameters passed.
CREATE PROCEDURE HumanResources.uspGetEmployees
@LastName nvarchar(50),
@FirstName nvarchar(50)
AS -
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 50/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
You have a SQL Server database named MyDB that uses SQL Server Authentication.
Which connection string should you use to connect to MyDB?
Correct Answer: A
Integrated Security -
Integrated Security is by default set to false.
When false, User ID and Password are speci ed in the connection.
Incorrect:
not C: Windows Authentication (Integrated Security = true) remains the most secure way to log in to a SQL Server database.
You are developing a database that other programmers will query to display race results.
You need to provide the ability to query race results without allowing access to other information in the database.
What should you do?
Correct Answer: B
This question requires that you evaluate the underlined text to determine if it is correct.
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.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed'' if the underlined text makes
the statement correct.
A. No change is needed
B. cookie
C. form post
D. QueryString
Correct Answer: B
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 Cookie.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 51/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
This question requires that you evaluate the underlined text to determine if it is correct.
Internet Information Services (IIS) must be installed on the client computers in order to run a deployed ASP.NET application.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed" if the underlined text makes
the statement correct.
A. No change is needed
Correct Answer: B
Internet Information Services (IIS) must be installed on computer that hosts the application in order to run a deployed ASP.NET application.
A. JavaScript
B. HTML
C. ASP.NET
D. C#
Correct Answer: A
JavaScript is characterized as a dynamic, weakly typed, prototype-based language with rst-class functions. It is primarily used in the form of
client-side
JavaScript for the development of dynamic websites.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 52/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
HOTSPOT -
The ASP.NET MVC page lifecycle is shown in the following graphic:
Use the drop-down menus to select the answer choice that completes each statement Each correct selection is worth one point.
Hot Area:
Correct Answer:
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 le
C. a proxy
D. a .disco le
Correct Answer: BD
A .wsdl le that references the Web service is created, together with supporting les, such as discovery (.disco and .discomap) les, that
include information about where the Web service is located.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 53/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
B. a value type
C. a reference type
Correct Answer: A
The System.Object class supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is
the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.
A. value
B. add
C. get
D. set
Correct Answer: D
Set:
The set { } implementation receives the implicit argument "value." This is the value to which the property is assigned.
* Property. On a class, a property gets and sets values. A simpli ed syntax form, properties are implemented in the IL as methods (get, set).
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 54/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
HOTSPOT -
You are reviewing the following class that is used to manage the results of a 5K race:
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Hot Area:
Correct Answer:
side note: defining only a get would ensure that the property _name can only be set in the constructor.
private string _name { get; }
and there are more robust ways to also ensure the consistency of a property than if(_name != null) that should also be used alongside this
approach.
upvoted 1 times
For the second question: Of course the bool MatchName won't throw an exception if there is a name present. However, if no name has been
passed using SetResult yet it will throw a NullReferenceException.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 55/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
All in all this is a terrible question with a lot of speculation possible. In the end I think they want us to answer 'Yes, No, No'.
I rewrote the class and ran the following snippet to fact-check my speculations:
Player player = new Player();
player.SetResult(5, null);
player.SetResult(10, "Foo");
player.SetResult(15, "Will return");
Console.WriteLine(player.Ranking);
Console.WriteLine(player.MatchName("foo"));
Returns:
10
True
upvoted 1 times
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
Correct Answer: A
When you change the focus by using the mouse or by calling the Focus method, focus events of the Control class occur in the following order:
Enter -
GotFocus -
LostFocus -
Leave -
Validating -
Validated
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 56/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
What are the three basic states that a Windows service can be in? (Choose three.)
A. halted
B. running
C. stopped
D. paused
E. starting
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
Correct Answer: D
LocalService , which runs in the context of an account that acts as a non-privileged user on the local computer, and presents anonymous
credentials to any remote server;
This question requires that you evaluate the underlined text to determine if it is correct.
Arguments are passed to console applications as a Hashtable object.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed'' if the underlined text makes
the statement correct.
A. No change is needed
B. String Array
C. StoredProcedureCollection
D. Dictionary
Correct Answer: B
Arguments are passed to console applications as a String Array object.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 57/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
A. 0
B. 10
C. 20
D. 30
Correct Answer: B
The conditional-OR operator (||) performs a logical-OR of its bool operands. If the rst operand evaluates to true, the second operand isn't
evaluated. If the rst operand evaluates to false, the second operator determines whether the OR expression as a whole evaluates to true or
false.
This question requires that you evaluate the underlined text to determine if it is correct.
To minimize the amount of storage used on the hard drive by an application that generates many small les, you should make the partition as
small as possible.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed'' if the underlined text makes
the statement correct.
A. No change is needed
B. le allocation table
C. block size
Correct Answer: C
What does make sense is to minimize the sector (block) size. Even the smallest files take up at least one sector of space, so when this is 512
bytes instead of the default 4 KB you'll use up 8 times as little space per very small file.
The problem is, you cannot just change the sector size. You could buy a very old fashioned HDD with still 512 byte sector sizes, but this change
is going to bring about many performance issues (higher chance of corruption, lower read/write speeds, etc.)
In conclusion, they obviously are digging for answer C, yet none of them are appropriate in real scenarios.
upvoted 1 times
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 58/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
B. location-awareness
C. device-awareness
D. proximity gestures
Correct Answer: A
HOTSPOT -
You open the Internet Information Services 7.5 Manager console as shown in the following exhibit:
You need to examine the current con guration of the server W2008R2.
Use the drop-down menus to select the answer choice that answers each question. Each correct selection is worth one point.
Hot Area:
Correct Answer:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 59/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
HOTSPOT -
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Hot Area:
Correct Answer:
You have a website that includes a form for usemame and password.
You need to ensure that users enter their username and password. The validation must work in all browsers.
Where should you put the validation control?
C. in the Web.con g le
Correct Answer: A
From version 2.0 on, ASP.NET recognized the JavaScript capabilities of these browsers, so client-side validation is now available to all modern
browsers, including Opera, Firefox, and others. Support is even better now in ASP.NET 4.0. That said, its important not to forget that JavaScript
can be disabled in any browser, so client-side validation cannot be relied uponwe must always validate any submitted data on the server.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 60/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
B. Cluster Services
D. Web Services
Correct Answer: A
Using Internet Information Services (IIS) Manager, you can create a local Web site for hosting an ASP.NET Web application.
This question requires that you evaluate the underlined text to determine if it is correct.
A table whose attributes depend only on the primary key must be at least second normal form.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed'' if the underlined text makes
the statement correct.
A. No change is needed
B. rst
C. third
D. fourth
Correct Answer: A
2nd Normal Form De nition
A database is in second normal form if it satis es the following conditions:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 61/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Correct Answer: D
The string values TRUE and FALSE can be converted to bit values: TRUE is converted to 1 and FALSE is converted to 0.
Incorrect:
Not A, not C: ID is autogenerated and should not be speci ed.
A. GET
B. WHAT
C. FROM
D. SELECT
E. WHERE
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 62/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
This question requires that you evaluate the underlined text to determine if it is correct.
The bubble sort algorithm steps through the list to be sorted, comparing adjacent items and swapping them if they are in the wrong order
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed" if the underlined text makes
the statement correct.
A. No change is needed
B. merge
C. library
D. insertion
Correct Answer: A
Which two types of information should you include in an effective test case? (Choose two.)
Correct Answer: AB
You can create manual test cases using Microsoft Test Manager that have both action and validation test steps. You can also share a set of
common test steps between multiple test cases called shared steps. This simpli es maintenance of test steps if your application under test
changes.
A. 2
B. 3
C. 4
D. 5
Correct Answer: C
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 63/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
This question requires that you evaluate the underlined text to determine if it is correct.
Converting a value type to a reference type in an object is called boxing.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed" if the underlined text makes
the statement correct.
A. No change is needed
B. unboxing
C. interfacing
D. mapping
Correct Answer: A
Boxing is an implicit conversion of a Value Types (C# Reference) to the type object or to any interface type implemented by this value type.
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
Correct Answer: B
Polymorphism is often referred to as the third pillar of object-oriented programming, after encapsulation and inheritance. Polymorphism is a
Greek word that means "many-shaped" and it has two distinct aspects:
* At run time, objects of a derived class may be treated as objects of a base class in places such as method parameters and collections or
arrays. When this occurs, the object's declared type is no longer identical to its run-time type.
* Base classes may de ne and implement virtual methods, and derived classes can override them, which means they provide their own
de nition and implementation. At run-time, when client code calls the method, the CLR looks up the run-time type of the object, and invokes that
override of the virtual method.
Thus in your source code you can call a method on a base class, and cause a derived class's version of the method to be executed.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 64/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
HOTSPOT -
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Hot Area:
Correct Answer:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 65/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
This question requires that you evaluate the underlined text to determine if it is correct.
A data dictionary that describes the structure of a database is called metadata.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed" if the underlined text makes
the statement correct.
A. No change is needed
B. normalization
D. metacontent
Correct Answer: A
You are reviewing a design for a database. A portion of this design is shown in the exhibit. Note that you may choose to view either the Crow's
Foot Notation or
Chen Notation version of the design. (To view the Crow's Foot Notation, click the Exhibit A button. To view the Chen Notation, click the Exhibit B
button.)
Which term is used to describe the relationship between Customer and Order?
A. many-to-many
B. one-to-many
C. one-dimensional
D. one-to-one
E. multi-dimensional
Correct Answer: B
A customer can have many orders.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 66/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
This question requires that you evaluate the underlined text to determine if it is correct.
To improve performance, a SQL SELECT statement should use indexes.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed'' if the underlined text makes
the statement correct.
A. No change is needed
B. joins
C. grouping
D. ordering
Correct Answer: A
You are building a web application that enables international exchange students to schedule phone calls with their prospective schools.
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 eld 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?
Correct Answer: D
datetimeoffset: De nes a date that is combined with a time of a day that has time zone awareness and is based on a 24-hour clock.
Incorrect:
DateTime: De nes a date that is combined with a time of day with fractional seconds that is based on a 24-hour clock. sByte: The sbyte
keyword indicates an integral type that stores values in the range of -128 to 127.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 67/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
A. maintainability
B. exibility
C. restricted access
D. inheritance
E. performance
This question requires that you evaluate the underlined text to determine if it is correct.
When a base class declares a method as virtual, the method is hidden from implementation bv a derived class.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed'' if the underlined text makes
the statement correct.
A. No change is needed
C. must be overridden in any non-abstract class that directly inherits from that class
Correct Answer: B
The implementation of a non-virtual method is invariant: The implementation is the same whether the method is invoked on an instance of the
class in which it is declared or an instance of a derived class. In contrast, the implementation of a virtual method can be superseded by derived
classes. The process of superseding the implementation of an inherited virtual method is known as overriding that method.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 68/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
This question requires that you evaluate the underlined text to determine if it is correct.
The process of transforming compiled C# code into an XML string for a web service is known as deserialization.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed'' if the underlined text makes
the statement correct.
A. No change is needed
B. serialization
C. decoding
D. encoding
Correct Answer: B
Serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to memory, a database, or a
le. Its main purpose is to save the state of an object in order to be able to recreate it when needed.
Serialization allows the developer to save the state of an object and recreate it as needed, providing storage of objects as well as data
exchange. Through serialization, a developer can perform actions like sending the object to a remote application by means of a Web Service,
passing an object from one domain to another, passing an object through a rewall as an XML string, or maintaining security or user-speci c
information across applications.
HOTSPOT -
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Hot Area:
Correct Answer:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 69/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
A. Session
B. ViewState
C. Application
D. Cookies
Correct Answer: C
Application state is a data repository available to all classes in an ASP.NET application. Application state is stored in memory on the server and
is faster than storing and retrieving information in a database. Unlike session state, which is speci c to a single user session, application state
applies to all users and sessions.
Therefore, application state is a useful place to store small amounts of often-used data that does not change from one user to another.
Incorrect:
not A: Session State contains information that is pertaining to a speci c session (by a particular client/browser/machine) with the server. It's a
way to track what the user is doing on the site.. across multiple pages...amid the statelessness of the Web. e.g. the contents of a particular
user's shopping cart is session data.
Cookies can be used for session state.
Not B: Viewstate is a state management technique in asp.net. ASP.NET Viewstate is preserving the data between the requests or postbacks and
stored in hidden elds on the page.
This question requires that you evaluate the underlined text to determine if it is correct.
The Response.Redirect 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.
Select the correct answer if the underlined text does not make the statement correct. Select "No change is needed'' if the underlined text makes
the statement correct.
A. No change is needed
B. Server.Transfer method
C. Server.Execute method
Correct Answer: C
The Execute method calls an .asp le, and processes it as if it were part of the calling ASP script. The Execute method is similar to a procedure
call in many programming languages.
Incorrect:
* Response.Redirect Method
The -
Redirect -
method causes the browser to redirect the client to a different URL.
* The Server.Transfer method sends all of the information that has been assembled for processing by one .asp le to a second .asp le.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 70/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
You are creating an application for a priority help desk center. The most recent call must be handled rst.
Which data structure should you use?
A. queue
B. hashtable
C. stack
D. binary tree
Correct Answer: C
In computer science, a stack is a particular kind of abstract data type or collection in which the principal (or only) operations on the collection
are the addition of an entity to the collection, known as push and removal of an entity, known as pop. The relation between the push and pop
operations is such that the stack is a Last-
In-First-Out (LIFO) data structure. In a LIFO data structure, the last element added to the structure must be the rst one to be removed.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 71/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
HOTSPOT -
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Hot Area:
Correct Answer:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 72/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
You plan to create an application for your company. The application will run automated routines and write the results to a text-based log le. Little
or no user interaction is required.
Security requirements on the host computers prevent you from running applications on startup, and users must be able to see the status easily on
the screen. The host computers also have limited memory and monitors that display only two colors. These computers will have no network
connectivity.
Which type of application should you use for this environment?
A. Directx
B. Windows Service
C. console-based
Correct Answer: C
Building Console Applications -
Applications in the .NET Framework can use the System.Console class to read characters from and write characters to the console. Data from
the console is read from the standard input stream, data to the console is written to the standard output stream, and error data to the console is
written to the standard error output stream.
Topic 2 - VB
Question #1 Topic 2
A. 5
B. 6
C. 10
D. 12
Correct Answer: B
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 73/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Question #2 Topic 2
A. 0
B. 1
C. 2
D. 3
Correct Answer: C
Question #3 Topic 2
A. Decimal
B. Char
C. String
D. Single
Correct Answer: C
Need a string to store characters.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 74/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Question #4 Topic 2
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 modi er should you use?
A. Protected
B. Private
C. Public
D. Friend
Correct Answer: B
Question #5 Topic 2
A. Null
B. 0
C. 3
D. 7
Correct Answer: C
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 75/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Question #6 Topic 2
You are creating an application that presents users with a graphical interface in which they computers that do not have network connectivity.
Which type of application should you choose?
A. ClickOnce
B. Windows Service
C. Windows Forms
D. Console-based
Correct Answer: C
Use Windows Forms when a GUI is needed.
Question #7 Topic 2
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. Mybase.brake ()
B. Truck.brakef)
C. Vehicle.brake()
D. Me.brake ()
Correct Answer: A
The MyBase keyword behaves like an object variable referring to the base class of the current instance of a class.MyBase is commonly used to
access base class members that are overridden or shadowed in a derived class.
Question #8 Topic 2
B. A Shared function
Correct Answer: A
The Overridable modi er allows a property or method in a class to be overridden in a derived class.
You cannot specify Overridable or NotOverridable for a Private method.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 76/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Question #9 Topic 2
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.
A. only m1, m3
B. only m2, m3
C. m1, m3, m4
D. m1, m2, m3
E. m2, m3, m4
F. only m3, m4
Correct Answer: D
A. 49
B. 50
C. 51
D. 100
Correct Answer: B
The mod operator computes the remainder after dividing its rst operand by its second. All numeric types have prede ned remainder operators.
In this case the reminder will be nonzero 50 times (for i with values 1, 3, 5,..,99).
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 77/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
You are creating the necessary variables for an application. The data you will store in these variables has the following characteristics:
✑ Consists of numbers
✑ Includes numbers that have decimal points
✑ Requires more than seven digits of precision
You need to use a data type that will minimize the amount of memory that is used.
Which data type should you use?
A. Decimal
B. Single
C. Byte
D. Double
Correct Answer: D
The double keyword signi es a simple type that stores 64-bit oating-point values.
Precision: 15-16 digits
You are creating a routine that will perform calculations by using a repetition structure. You need to ensure that the entire loop executes at least
once.
Which looping structure should you use?
A. For-Each
B. For
C. While
D. Do-While
Correct Answer: D
In a Do..While loop the test is at the end of the structure, so it will be executed at least once.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 78/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
A. 1
B. 2
C. 3
D. 4
Correct Answer: B
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 79/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
HOTSPOT -
You are reviewing the following code that saves uploaded images.
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Hot Area:
Correct Answer:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 80/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
A. 210
B. 211
C. 2101
D. 2121
Correct Answer: B
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 81/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
DRAG DROP -
You are developing an application to display track and eld race results.
The application must display the race results twice. The rst time it must display only the winner and runner-up. The second time it must display
all participants.
The code used to display results is shown below.
Correct Answer:
* You can use an Exit Function or Return statement to end the iteration. Return expression is required in a Function, Get, or Operator procedure.
Expression that represents the value to be returned to the calling code.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 82/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Correct Answer: B
You are developing an application that tracks tennis matches. A match is represented by the following class:
How many times is the Location property on the newly created Match class assigned?
A. 0
B. 1
C. 2
D. 3
Correct Answer: C
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 83/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
DRAG DROP -
You are extending an application that stores and displays the results of various types of foot races. The application contains the following
de nitions:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 84/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
Correct Answer:
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. Glass.break()
B. Window.break()
C. Me.break()
D. MyBase.break()
Correct Answer: B
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 85/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
A. 0
B. 10
C. 20
D. 30
Correct Answer: B
The conditional-OR operator (||) performs a logical-OR of its bool operands. If the rst operand evaluates to true, the second operand isn't
evaluated. If the rst operand evaluates to false, the second operator determines whether the OR expression as a whole evaluates to true or
false.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 86/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
HOTSPOT -
You are reviewing the following class that is used to manage the results of a 5K race:
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Hot Area:
Correct Answer:
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 87/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
A. Null
B. 0
C. 3
D. 7
Correct Answer: D
Correct Answer: D
The string values TRUE and FALSE can be converted to bit values: TRUE is converted to 1 and FALSE is converted to 0.
Incorrect:
Not B, not C: ID is autogenerated and should not be speci ed.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 88/89
9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics
A. 1
B. 2
C. 3
D. 4
Correct Answer: C
You are building a web application that enables international exchange students to schedule phone calls with their prospective schools.
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 eld 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. DateTimeOffset?
C. SByte
D. Date
Correct Answer: B
datetimeoffset: De nes a date that is combined with a time of a day that has time zone awareness and is based on a 24-hour clock.
Incorrect:
Date: De nes a date.
sByte: The sbyte keyword indicates an integral type that stores values in the range of -128 to 127.
https://www.examtopics.com/exams/microsoft/98-361/custom-view/ 89/89