0% found this document useful (0 votes)
14 views89 pages

98-361 Exam - Free Actual Q&As, Page 1 - ExamTopics

The document contains a series of questions and answers related to the 98-361 exam, focusing on C# programming concepts and application types. Key topics include Windows Services, event-driven programming, inheritance, polymorphism, and exception handling. Each question is followed by the correct answer, providing a resource for exam preparation.

Uploaded by

Vipul Goyal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views89 pages

98-361 Exam - Free Actual Q&As, Page 1 - ExamTopics

The document contains a series of questions and answers related to the 98-361 exam, focusing on C# programming concepts and application types. Key topics include Windows Services, event-driven programming, inheritance, polymorphism, and exception handling. Each question is followed by the correct answer, providing a resource for exam preparation.

Uploaded by

Vipul Goyal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 89

9/30/2020 98-361 Exam – Free Actual Q&As, Page 1 | ExamTopics

- Expert Veri ed, Online, Free.

 Custom View Settings

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?

A. Windows Service application

B. Windows Forms application

C. DOS batch le

D. Terminate-and-stay-resident (TSR) program

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

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.

Correct Answer: D

Question #4 Topic 1

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)

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

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.

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

You create an object of type ANumber. The class is de ned as follows.

What is the value of _number after the code is executed?

A. Null

B. 0

C. 3

D. 7

Correct Answer: C

  DarnDarin 6 months, 3 weeks ago


what..............................................
upvoted 3 times

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

Question #10 Topic 1

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.

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

Question #11 Topic 1

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

  Django 1 year, 6 months ago


is this protected?
upvoted 7 times

  Jose 1 year, 2 months ago


Assuming I've understood the question properly (English is not my native language) you are right. It has to be protected because a private
variable could only be accesed in the class where it is declared.
upvoted 6 times

  Boruc 4 months, 2 weeks ago


Should be protected.
upvoted 6 times

  DamZ 1 month, 4 weeks ago


A private member ( i ) is only accessible within the same class as it is declared. A member with no access modifier ( j ) is only accessible within
classes in the same package. A protected member ( k ) is accessible within all classes in the same package and within subclasses in other packages.
upvoted 1 times

  Pomphard 3 weeks, 3 days ago


What you're thinking of is 'protected internal', which differs quite a lot from the default protected behaviour:
A protected internal member is accessible from the current assembly or from types that are derived from the containing class.
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/protected-internal
upvoted 1 times

  Pomphard 3 weeks, 3 days ago


The answer should be protected:
A protected member is accessible within its class and by derived class instances.
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/protected
upvoted 1 times

Question #12 Topic 1

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

Question #13 Topic 1

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

Question #14 Topic 1

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 rst-in, last-out (FILO) process.

Correct Answer: C

Question #15 Topic 1

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

Question #16 Topic 1

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

  Django 1 year, 6 months ago


answer should be 6.
upvoted 11 times

  seba1601 7 months, 1 week ago


The answer is 6
upvoted 2 times

  pauls 7 months ago


I also Have answer as 6
upvoted 2 times

  Boruc 4 months, 2 weeks ago


should be 6
upvoted 2 times

  Rakesh_Nalawade 2 months, 2 weeks ago


Yes answer should be 6
upvoted 2 times

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

Question #17 Topic 1

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.

Question #18 Topic 1

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

Correct Answer: D
A>B is false.

Question #19 Topic 1

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

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

Question #20 Topic 1

You execute the following code.

What will the variable result be?

A. 0

B. 1

C. 2

D. 3

Correct Answer: C

Question #21 Topic 1

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.

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

Question #22 Topic 1

You execute the following code.

How many times will the word Hello be printed?

A. 5

B. 6

C. 10

D. 12

Correct Answer: B

Question #23 Topic 1

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.

Question #24 Topic 1

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"

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

Question #25 Topic 1

In this XHTML code sample, what will cause an error?

A. All tags are not in uppercase.

B. The body tag is missing a background attribute.

C. The line break tag is incorrectly formatted.

D. The HTML tags do not read XHTML.

Correct Answer: C
In XHTML, the <br> tag must be properly closed, like this: <br />.

  JoelChuca 1 week ago


<br> does not generate any error
upvoted 1 times

Question #26 Topic 1

You create an application that uses Simple Object Access Protocol (SOAP).
Which technology provides information about the application's functionality to other applications?

A. Web Service Description Language (WSDL)

B. Extensible Application Markup Language (XAML)

C. Common Intermediate Language (CIL)

D. Universal Description, Discovery, and Integration (UDDI)

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

Question #27 Topic 1

Which language allows you to dynamically create content on the client side?

A. Extensible Markup Language (XML)

B. Cascading Style Sheets (CSS)

C. Hypertext Markup Language (HTML)

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.

Question #28 Topic 1

How should you con gure an application to consume a Web service?

A. Add the Web service to the development computer.

B. Add a reference to the Web service in the application.

C. Add a reference to the application in the Web service.

D. Add the Web service code to the application.

Correct Answer: B
Start by adding a Service Reference to the project. Right-click the ConsoleApplication1 project and choose "Add Service Reference":

Question #29 Topic 1

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

Question #30 Topic 1

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.

Question #31 Topic 1

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?

A. It reorders the records alphabetically.

B. It speeds up query execution.

C. It minimizes storage requirements.

D. It reorders the records numerically.

Correct Answer: B
Faster to access an index table.

Question #32 Topic 1

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

Question #33 Topic 1

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.

Question #34 Topic 1

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

Question #35 Topic 1

A data warehouse database is designed to:

A. Enable business decisions by collecting, consolidating, and organizing data.

B. Support a large number of concurrent users.

C. Support real-time business operations.

D. Require validation of incoming data during real-time business transactions.

Correct Answer: A

Question #36 Topic 1

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.

Question #37 Topic 1

Which type of application has the following characteristics when it is installed?


✑ Runs continuously in the background by default when the startup type is set to automatic
✑ Presents no user interface

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

Question #38 Topic 1

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

  simonere 1 year, 3 months ago


Why not Console-based?
Web based has a user interface, it seems wrong.
upvoted 10 times

  ccoutinho 7 months ago


I agree with simonere, I think the correct answer is Console-based
upvoted 3 times

  Boruc 4 months, 2 weeks ago


agree console-based
upvoted 1 times

  DamZ 1 month, 4 weeks ago


From what I found, both is correct:
Console applications are light weight programs run inside the command prompt (DOS) window. They are commonly used for test applications. ...
Microsoft word is an example of a Windows application. Web applications are programs that used to run inside some web server (e.g., IIS) to fulfill
the user requests over the http
upvoted 1 times

Question #39 Topic 1

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

Question #40 Topic 1

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.

Question #41 Topic 1

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

Question #42 Topic 1

In which order do the typical phases of the Software Development Life Cycle occur?

A. Development, design, requirements gathering, and testing

B. Design, requirements gathering, development, and testing

C. Design, development, requirements gathering, and testing

D. Requirements gathering, design, development, and testing

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

Question #43 Topic 1

You execute the following code.

What will the variable result be?

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

Question #44 Topic 1

You execute the following code.

How many times will the word Hello be printed?

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).

Question #45 Topic 1

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

Question #46 Topic 1

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.

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.

Question #47 Topic 1

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.

Precision: 15-16 digits -


Incorrect:
Not D: The oat keyword signi es a simple type that stores 32-bit oating-point values.
Precision: 7 digits

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

Question #48 Topic 1

Your database administrators will not allow you to write SQL code in your application.
How should you retrieve data in your application?

A. Script a SELECT statement to a le.

B. Query a database view.

C. Call a stored procedure.

D. Reference an index in the database.

Correct Answer: C
The SQL will only be inside the stored procedure.

Question #49 Topic 1

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.
)

Which term is used to describe the Customer component?

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

Question #50 Topic 1

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

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.

Question #51 Topic 1

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. Con gure the network routers to allow database connections.

B. Install the database on each client computer.

C. Create a routine that bypasses rewalls by using Windows Management Instrumentation (WMI).

D. Establish a connection to the database by using the appropriate data provider.

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

Question #52 Topic 1

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 ();

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.

  Difdoor 1 year, 3 months ago


Answer B seems more appropriate. The question states how should you access the "Truck class" implementation of the brake() method.
MyBase.brake() would access Vehicle.brake().
upvoted 5 times

  Hashino 8 months, 1 week ago


actually you can call "base.Brake()" inside Truck
upvoted 1 times

  Hashino 8 months, 1 week ago


nvm, read the question wrong.
in overriden methods called in the derived class that overrode the method
this.break() calls the implementation of the derived class
base.break() calls the implementations of the base class
upvoted 1 times

  ccoutinho 7 months ago


Is this VB.NET? I am a bit confused with this question
upvoted 2 times

  JoelChuca 1 week ago


Yes, this is in VB.Net
https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/program-structure/me-my-mybase-and-myclass
upvoted 1 times

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

Question #53 Topic 1

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.

  simonere 1 year, 2 months ago


An is-a relationship?
upvoted 4 times

  Hashino 9 months, 1 week ago


this question is talking about requirements for inheriting. the "is-a" relationship is something the derived class gains after the inheritance. if an
"is-a" relationship was required to inherit it would be impossible to inherit any class (besides System.Object)
upvoted 1 times

  Hashino 8 months, 1 week ago


also worth noting that a derived class can also inherit a protected attribute
upvoted 2 times

Question #54 Topic 1

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

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

Question #55 Topic 1

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

Correct Answer: F

Question #56 Topic 1

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

Question #57 Topic 1

How many parameters can a default constructor have?

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

Question #58 Topic 1

Which function does Simple Object Access Protocol (SOAP) provide when using Web services?

A. directory of registered Web services

B. communications protocol

C. security model

D. model for describing Web services

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.

Question #59 Topic 1

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.

Question #60 Topic 1

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

Question #61 Topic 1

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.

Question #62 Topic 1

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?

A. Use a Cascading Style Sheet (CSS).

B. Use inline styles.

C. Use an Extensible Markup Language (XML) schema.

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.

Question #63 Topic 1

Where must Internet Information Services (IIS) be installed in order to run a deployed ASP. NET application?

A. on the computer that you plan to deploy from

B. on the computer that hosts the application

C. on the Application Layer Gateway Service

D. on the client computers

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

Question #64 Topic 1

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

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.

Question #65 Topic 1

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

Question #66 Topic 1

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

Question #67 Topic 1

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.

XHTML 1.0 Transitional -


This DTD contains all HTML elements and attributes, INCLUDING presentational and deprecated elements (like font). Framesets are not
allowed. The markup must also be written as well-formed XML.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

  Toszi 3 months, 1 week ago


Should be B
upvoted 1 times

  atxsu 3 months, 1 week ago


And why would that be B rather than A?
upvoted 1 times

Question #68 Topic 1

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

Question #69 Topic 1

You need to debug a Windows Service application by using breakpoints.


What should you do?

A. Write all events to an event log.

B. Set the Windows Service status to Paused.

C. Implement the Console.WriteLine method throughout the Windows Service.

D. Use the Attach to Process menu in Microsoft Visual Studio.

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.

Question #70 Topic 1

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:

  musado 10 months, 1 week ago


swipping and appbar
upvoted 7 times

  samkaas 3 months, 1 week ago


swiping - appbar
upvoted 1 times

  JacobMTA 1 week, 5 days ago


swiping - appbar
upvoted 1 times

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

Question #71 Topic 1

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

Correct Answer: B
The Console.Error property gets the standard error output stream.

Question #72 Topic 1

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.

  rishian 1 week, 6 days ago


The default entry point for a console application is the "Class" method - answer is correct which is Main
upvoted 1 times

Question #73 Topic 1

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

Question #74 Topic 1

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:

The following code is used to display the result for a race:

The contents of the console must be as follows:


✑ 99 seconds
✑ 1.65 minutes
✑ 99
You need to implement the FootRace class.
Match the method declaration to the method body, (To answer, drag the appropriate declaration from the column on the left to its body on the
right. Each declaration may be used once, more than once, or not at all. Each correct match is worth one point.)
Select and Place:

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

Question #75 Topic 1

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

  Django 1 year, 6 months ago


should be this.break()
upvoted 6 times

  musado 10 months, 1 week ago


this.break() and base.break()
upvoted 2 times

  Hashino 8 months, 1 week ago


i'd say base.break(); is the better approach because the question specifically asks for the base class version of the method, and if the method
was overridden this.break(); would call the overridden version instead
upvoted 1 times

  Hashino 8 months, 1 week ago


again i read it wrong.
this.brake() for the Glass implementation (derived class)
base.brake() for the Window implementation (base class)
upvoted 3 times

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

Question #76 Topic 1

You are developing an application that tracks tennis matches. A match is represented by the following class:

A match is created by using the following code:

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

Currently there are no comments in this discussion, be the rst to comment!

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

Question #77 Topic 1

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:

Question #78 Topic 1

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:

  cdc 1 year, 4 months ago


The answer is: No, Yes, Yes
upvoted 7 times

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

Question #79 Topic 1

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

Question #80 Topic 1

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:

  cdc 1 year, 4 months ago


The answer is (1) satellite link (2) web application servers
upvoted 7 times

  Hashino 8 months, 1 week ago


(assuming cdc is right)i find this question weird, because normally a developer (this is a exam for developers) wouldn't have access to things like
satellites, internet routers and infrastructure stuff. the answer itself is right, but doesn't seem the thing the developer would have access to change
upvoted 2 times

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

Question #81 Topic 1

DRAG DROP -
You are developing an application that displays a list of race results. The race results are stored in the following class:

You need to implement the Add Race method.


Match the code segment to its location. (To answer, drag the appropriate code segment from the column on the left to its location on the right,
Each code segment may be used once, more than once, or not at all. Each correct match is worth one point.)
Select and Place:

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:

  ReDo 7 months, 1 week ago


Why is the second match Current.Slower?
upvoted 2 times

  ccoutinho 7 months ago


Makes no sense to me! If we are iterating the list until we find a smaller running time than the given parameter, we are thus going from the
longest running races until the smallest running races. That means we are iterating through faster records each time we proceed in the array,
thus it should be Current.Faster.
upvoted 1 times

  ccoutinho 7 months ago


I don't think this code is correct, besides being wrong, as stated by ReDo, it is oversimplistic. A possible implementation would be the following, I
believe:

public void AddRace(string raceName, double time)


{
var current = CurrentOlympicRecord;
var previous = CurrentOlympicRecord != null ? CurrentOlympicRecord.Slower : null;

while ( current != null && current.Time > time )


{
previous = current;
current = current.Faster;
}

var race = new RaceSpeedRecord


{
Race = raceName,
Time = time,
Faster = current,
Slower = previous
};

if (CurrentOlympicRecord == null)
CurrentOlympicRecord = race;
else
{
if (previous != null) previous.Faster = race;
if (current != null) current.Slower = race;
}
}
upvoted 1 times

  RobbyKrlos 5 months, 1 week ago


Thank you for the interest in this one - quite a headake it gave me. And I totally agree with you, the problem is simply bs. Without a given
initializaiton, the AddRace will fail. It is not known how the Double linked list is given (which is the Head - The slowest or the fastest) as ccoutinho
mentioned because of the " > time " it makes more sense to have the slowest in the Head of the linked list and therefore current.Faster has more
sense. Even so, if the right spot is found in between 2 races for our new Race, the options to set the Race.Faster and Race.Slower are not correct. If
the current position is on the "Faster" race in the list, it means that the new Race has to have Race.Faster = current AND Race.Slower =
current.slower. Evidently just "current" is not an option.
I'm puzzled how come this problem came as an exam point - I really hope it's somehting really really smart that we do not understand, 'cause
otherwise it's just stupid:)
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

Question #82 Topic 1

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.

You need to implement the Rankings() function.


Complete the function to meet the requirements. {To answer, drag the appropriate code segment from the column on the left to its location on the
right. Each code segment may be used once, more than once, or not at all. Each correct match is worth one point.)
Select and Place:

Correct Answer:

* You can use a yield break statement to end the iteration.

  cdc 1 year, 4 months ago


The correct answer is:
yield return
yield return
yield break
yield return
upvoted 3 times

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

Question #83 Topic 1

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:

  cdc 1 year, 4 months ago


The answer is: No, No, Yes
upvoted 5 times

  Hashino 8 months, 1 week ago


answer: No, Yes, No
because ImageInfo is not a value type, all of its information is stored in the heap
upvoted 2 times

  ReDo 7 months, 1 week ago


It is No, No, Yes
Bytes[] is not a known size, so is NOT stored on the stack
Length is an int, which is a known size, so is NOT stored on the heap
Id is a Guid, which is a known size, which IS stored on the stack
upvoted 2 times

  Boruc 4 months, 2 weeks ago


The key factor here is struct which behaves differently than class. - right answer is No,No, Yes
upvoted 1 times

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

Question #84 Topic 1

The following functions are de ned:

What does the console display after the following line?


Printer(2);

A. 210

B. 211

C. 2101

D. 2121

Correct Answer: B

Question #85 Topic 1

The throw keyword is used to perform which two actions? (Choose two.)

A. stop processing of the code

B. move error handling to a separate thread

C. raise exceptions

D. re-throw exceptions as a different type

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

Question #86 Topic 1

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:

  cdc 1 year, 4 months ago


C = 100, A = 70
upvoted 8 times

  kowalfms99 3 months ago


https://www.google.com/amp/www.briefmenow.org/microsoft/use-the-drop-down-menus-to-select-the-answer-choice-that-completes-each-
statement-2/amp/
upvoted 1 times

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

Question #87 Topic 1

Which three phrases are advantages of connection pooling? (Choose three.)

A. reduces time to create a connection

B. requires no con guration

C. reduces load on the server

D. improved scalability

E. improved performance

Correct Answer: ADE


E: In connection pooling, after a connection is created, it is placed in the pool and it is used over again so that a new connection does not have
to be established.
D: Connection pooling often improves application performance, concurrency and scalability.
A: Connection pooling also cuts down on the amount of time a user must wait to establish a connection to the database.

  ccoutinho 7 months ago


By using connection pooling, won't the load on the server be reduced?
upvoted 1 times

  therealstgo 1 month, 2 weeks ago


I think the correct answers are A, C, and E
upvoted 1 times

Question #88 Topic 1

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?

A. WHERE Students SELECT *

B. SELECT rstName, lastName, telephoneNumber FROM Students

C. SELECT rstName, lastName, telephoneNumber IN Students

D. SELECT * FROM Students

E. WHERE Students SELECT rstName, lastName, telephoneNumber

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

Question #89 Topic 1

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:

  cdc 1 year, 4 months ago


The answer is No, Yes, Yes
upvoted 6 times

  Hashino 8 months, 1 week ago


In the context of databases, cardinality refers to the uniqueness of data values contained in a column. High cardinality means that the column
contains a large percentage of totally unique values. Low cardinality means that the column contains a lot of “repeats” in its data range.

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

Question #90 Topic 1

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

B. succeeds or fails as a unit

C. nishes as quickly as possible

D. can be completed concurrently with other transactions

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

Question #91 Topic 1

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

Correct Answer: AD

  kozlu 10 months ago


Should be A and C. Theri is no important effect to decreasing space used when you follow the normalization rules but it prevents data
inconsistencies.
upvoted 2 times

  Hashino 8 months, 1 week ago


because normalization reduces redundancy (repeat of information) it also reduces space usage. so the answer is actually correct.
side note: normalization can actually increase the risk of corruption, since it consists (generally) of breaking tables into more tables related to
each other, deleting or updating on table and not the others may corrupt data
upvoted 3 times

  ReDo 7 months, 1 week ago


Normalization reduces disk space. If you have 50 tables that all have a column Address that can be 50 characters long, that will take more space
than having a table with Address and all those 50 tables referring to the Address table by id.

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

Question #92 Topic 1

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:

  cdc 1 year, 4 months ago


The answer is: Yes, Yes, No
upvoted 10 times

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

Question #93 Topic 1

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

Question #94 Topic 1

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 -

SET NOCOUNT ON;


SELECT FirstName, LastName, JobTitle, Department
FROM HumanResources.vEmployeeDepartment
WHERE FirstName = @FirstName AND LastName = @LastName;
GO

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

Question #95 Topic 1

You have a SQL Server database named MyDB that uses SQL Server Authentication.
Which connection string should you use to connect to MyDB?

A. Data Source=MyDB; UserID=username; Password=P@sswOrd; Initial Catalog=Sales

B. Data Source=MyDB; Integrated Security=SSPI; Initial Catalog=Sales

C. Data Source=MyDB; Integrated Security=True; Initial Catalog=Sales

D. Data Source=MyDB; Trusted_Connection=True; MultipleActiveResultSets=True; Initial Catalog=Sales

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.

Question #96 Topic 1

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?

A. Disable implicit transactions.

B. place the query into a stored procedure.

C. Create an index on the result table.

D. Add an AFTER UPDATE trigger on the result table to reject updates.

Correct Answer: B

Question #97 Topic 1

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

Question #98 Topic 1

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

B. computer that hosts the application

C. computer that you plan to deploy from

D. Application Layer Gateway Service

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.

Question #99 Topic 1

Which programming language is characterized as client-side, dynamic and weakly typed?

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

Question #100 Topic 1

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:

  cdc 1 year, 4 months ago


Controller; Route
upvoted 6 times

Question #101 Topic 1

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

Question #102 Topic 1

All objects in .NET inherit from which item?

A. the System.Object class

B. a value type

C. a reference type

D. the System.Type class

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.

Question #103 Topic 1

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

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

Question #104 Topic 1

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:

  cdc 1 year, 4 months ago


Yes, Yes, No
upvoted 2 times

  Hashino 8 months, 1 week ago


i believe the answer to the first one is Yes, although you could technically change the value after it had already been set, the intention of the
code is clearly for that to be impossible, and the technique pointed out by Difdoor (there may be others) seems too advanced for the scope of
this exam.

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

  Birdy 1 year, 4 months ago


Why the second statement is YES? Why MatchName method should throw an exception?
upvoted 4 times

  Difdoor 1 year, 3 months ago


On question 1, I think you could reset the Ranking but only if you initially called SetResult with an int and a null string which (I think) would throw
an exception after assigning the rank. You would need to catch this exception and then call SetResult with valid values resetting the values of rank
and name. (Very contrived but you almost always call SetResult in a try-catch.) So No for question 1.
upvoted 1 times

  Pomphard 3 weeks, 1 day ago


As for the first question, it is obviously meant to be impossible to set the ranking twice, however doing so multiple times is way easier than
Difdoor's suggesting: You just have to pass null as a name and don't need any exception handling to pass multiple rankings.

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.

Question 3 is a no-brainer, consts cannot be changed.

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

Question #105 Topic 1

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

Question #106 Topic 1

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

Correct Answer: BCD


A service can exist in one of three basic states: Running, Paused, or Stopped.

Question #107 Topic 1

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;

Question #108 Topic 1

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

Question #109 Topic 1

You run the following code:

What is the value of result when the code has completed?

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.

Question #110 Topic 1

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

D. folder and le names

Correct Answer: C

  ccoutinho 7 months ago


Why is it block size?
upvoted 1 times

  Pomphard 3 weeks, 1 day ago


It's not going to be the partition you should decrease, nor is it the file allocation table (you're probably not even dealing with a FAT-partition
anyway).

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

Question #111 Topic 1

You are designing a Windows Store application.


You need to design the application so that users can share content by connecting two or more devices by physically tapping the devices together.
Which user experience (UX) guideline for Windows Store applications should you use?

A. Share and data exchange

B. location-awareness

C. device-awareness

D. proximity gestures

Correct Answer: A

Question #112 Topic 1

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:

  cdc 1 year, 4 months ago


The answer is 1 and 5
upvoted 6 times

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

Question #113 Topic 1

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:

  cdc 1 year, 4 months ago


No, Yes, Yes
upvoted 7 times

Question #114 Topic 1

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?

A. in both the client-side code and the server-side code

B. in the client-side code only

C. in the Web.con g le

D. in the server-side code only

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.

  sniqq1 2 months, 4 weeks ago


i think B
upvoted 1 times

  kowalfms99 2 months, 4 weeks ago


You have to validate values on client site and on server site
upvoted 1 times

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

Question #115 Topic 1

Which service can host an ASP.NET application?

A. Internet Information Services

B. Cluster Services

C. Remote Desktop 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.

Question #116 Topic 1

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:

It is in rst normal form -


All non-key attributes are fully functional dependent on the primary key

  Pomphard 3 weeks, 1 day ago


As all attributes depend only on the primary key there can be no transitive dependency, right? So that'd mean the database automatically satisfies
the 3rd normal form as well.
I think the answer should be C
upvoted 1 times

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

Question #117 Topic 1

You have a table named ITEMS with the following elds:


✑ ID (integer, primary key, auto generated)
✑ Description (text)
✑ Completed (Boolean)
You need to insert the following data in the table:
"Cheese", False
Which statement should you use?

A. INSERT INTO ITEMS (ID, Description, Completed) VALUES (1, 'Cheese', 0)

B. INSERT INTO ITEMS (Description, Completed) VALUES ('Cheese', 1)

C. INSERT INTO ITEMS (10, Description, Completed) VALUES (NEWID(), 'Cheese', 6)

D. INSERT INTO ITEMS (Description, Completed) VALUES ('Cheese', 0)

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.

Question #118 Topic 1

Which three are valid SQL keywords? (Choose three.)

A. GET

B. WHAT

C. FROM

D. SELECT

E. WHERE

Correct Answer: CDE


Example:

SELECT * FROM Customers -


WHERE Country='Mexico';

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

Question #119 Topic 1

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

Question #120 Topic 1

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

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.

  ccoutinho 7 months ago


Isn't the C valid as well?
upvoted 2 times

Question #121 Topic 1

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

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

Question #122 Topic 1

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.

Question #123 Topic 1

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

Question #124 Topic 1

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:

  GHor 9 months ago


No,No,Yes
upvoted 4 times

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

Question #125 Topic 1

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

C. a database management system (DBMS)

D. metacontent

Correct Answer: A

Question #126 Topic 1

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

Question #127 Topic 1

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

Question #128 Topic 1

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

Question #129 Topic 1

Which three items are bene ts of encapsulation? (Choose three.)

A. maintainability

B. exibility

C. restricted access

D. inheritance

E. performance

Correct Answer: ABC


Encapsulation is the packing of data and functions into a single component.
In programming languages, encapsulation is used to refer to one of two related but distinct notions, and sometimes to the combination thereof:
* A language mechanism for restricting access to some of the object's components.
* A language construct that facilitates the bundling of data with the methods (or other functions) operating on that data.
Incorrect:
not D: Encapsulation is one of the four fundamental OOP concepts. The other three are inheritance, polymorphism, and abstraction.

Question #130 Topic 1

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

B. can be overridden with its own implementation by a derived class

C. must be overridden in any non-abstract class that directly inherits from that class

D. cannot be overridden with its own implementation by a derived 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

Question #131 Topic 1

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.

Question #132 Topic 1

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:

  cdc 1 year, 4 months ago


Yes, Yes, Yes
upvoted 7 times

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

Question #133 Topic 1

You have a Microsoft ASP.NET web application.


You need to store a value that can be shared across users on the server.
Which type of state management should you use?

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.

Question #134 Topic 1

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

D. meta http-equiv="refresh" tag

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

Question #135 Topic 1

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

Question #136 Topic 1

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:

  cdc 1 year, 4 months ago


Yes, Yes, Yes
upvoted 4 times

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

Question #137 Topic 1

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

D. Windows Store app

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

You execute the following code.

How many times will the word Hello be printed?

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

You execute the following code.

What will the variable result be?

A. 0

B. 1

C. 2

D. 3

Correct Answer: C

Question #3 Topic 2

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. 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

  cdc 1 year, 4 months ago


The answer is Protected
upvoted 6 times

  samkaas 3 months, 1 week ago


Protected
upvoted 2 times

Question #5 Topic 2

You create an object of type ANumber. The class is de ned as follows.

The code is executed as follows.


Dim mynumber As ANumber = new ANumber(3);
What is the value of _number after the code is executed?

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.

  ccoutinho 7 months ago


If we want to call the method implementation in the Truck class (derived class), shouldn't we call Me.break() instead?
upvoted 1 times

Question #8 Topic 2

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

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.

All methods have a protected scope.


Which methods does Class C have access to?

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

Question #10 Topic 2

You execute the following code.

How many times will the word Hello be printed?

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

Question #11 Topic 2

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

Question #12 Topic 2

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

Question #13 Topic 2

You execute the following code.

What will the variable result be?

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

Question #14 Topic 2

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

Question #15 Topic 2

The following functions are de ned:

What does the console display after the following line?


Printer(2)

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

Question #16 Topic 2

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.

You need to implement the Rankings() function.


Complete the function to meet the requirements. (To answer, drag the appropriate code segment from the column on the left to its location on the
right. Each code segment may be used once, more than once, or not at all. Each correct match is worth one point.)
Select and Place:

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

Question #17 Topic 2

How does a console-based application differ from a Windows Store app?

A. Windows Store apps do not provide a method for user input

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

C. Windows Store apps can access network resources.

D. Console-based applications require the XNA Framework to run.

Correct Answer: B

Question #18 Topic 2

You are developing an application that tracks tennis matches. A match is represented by the following class:

A match is created by using the following code:

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

Question #19 Topic 2

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:

The following code is used to display the result for a race:

The contents of the console must be as follows:


✑ 99 seconds
✑ 1.65 minutes
✑ 99
You need to implement the FootRace class.
Match the method declaration to the method body. (To answer, drag the appropriate declaration from the column on the left to its body on the
right. Each declaration may be used once, more than once, or not at all. Each correct match is worth one point.)
Select and Place:

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:

Question #20 Topic 2

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

  ccoutinho 7 months ago


It should be Me.break()
upvoted 1 times

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

Question #21 Topic 2

You run the following code:

What is the value of result when the code has completed?

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

Question #22 Topic 2

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:

  ora orabels 5 months ago


yes, yes, no
upvoted 3 times

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

Question #23 Topic 2

You create an object of type ANumber. The class is de ned as follows.

The code is executed as follows.

What is the value of number after the code is executed?

A. Null

B. 0

C. 3

D. 7

Correct Answer: D

Question #24 Topic 2

You have a table named ITEMS with the following elds:


✑ ID (integer, primary key. auto generated)
✑ Description (text)
✑ Completed (Boolean)
You need to insert the following data in the table:
"Cheese", False
Which statement should you use?

A. INSERT INTO ITEMS (Description, Completed) VALUES ('Cheese', 1)

B. INSERT INTO ITEMS (ID, Description, Completed) VALUES (NEWID(), 'Cheese', 0)

C. INSERT INTO ITEMS (ID, Description, Completed) VALUES (1, 'Cheese", 0)

D. INSERT INTO ITEMS (Description, Completed) VALUES ('Cheese', 0)

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

Question #25 Topic 2

You run the following code.

What will the value of the variable iResult be?

A. 1

B. 2

C. 3

D. 4

Correct Answer: C

Question #26 Topic 2

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

You might also like