Pages From Microsoft - 98-361
Pages From Microsoft - 98-361
Pages From Microsoft - 98-361
We guarantee you can pass any IT certification exam at your first attempt with just 10-12 hours
study of our guides.
Our study guides contain latest actual exam questions that you will see word to word same on
your actual test; accurate answers verified by experts with detailed explanation (wherever available)
and all graphics and drag-n-drop exhibits shown just as on the real test.
To test the quality of our guides, you can download the one-fourth portion of any guide from
http://www.certificationking.com absolutely free. You can also download the guides for retired
exams that you might have taken in the past.
For other payment options and any further query, feel free to mail us at
[email protected]
Topic
No. of Questions
Topic 1: C#
137
Topic 2: VB
139
www.CertificationKing.com
Answer:
For each of the following statements, select Yes if the statement is true. Otherwise, select
No. Each correct selection is worth one point.
www.CertificationKing.com
Question No : 3 - (Topic 1)
All objects in .NET inherit from which item?
Question No : 4 - (Topic 1)
Which language was designed for the primary purpose of querying data, modifying data,
and managing databases in a Relational Database Management System?
www.CertificationKing.com
Question No : 5 - (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?
Question No : 6 - (Topic 1)
Your database administrators will not allow you to write SQL code in your application.
www.CertificationKing.com
Question No : 7 - (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.
Question No : 8 - (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 file. 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.
A. Directx
B. Windows Service
C. console-based
D. Windows Store app
www.CertificationKing.com
Question No : 9 - (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
Answer: A
Explanation: Need a string to store characters.
Question No : 10 - (Topic 1)
Simulating the final design of an application in order to ensure that the development is
progressing as expected is referred to as:
A. Analyzing requirements
B. Prototyping
C. Software testing
D. Flowcharting
www.CertificationKing.com
For each of the following statements, select Yes if the statement is true. Otherwise, select
No. Each correct selection is worth one point.
www.CertificationKing.com
Question No : 12 - (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.
A. decimal
B. double
C. byte
D. float
Answer: B
Explanation: The double keyword signifies a simple type that stores 64-bit floating-point
values.
Precision: 15-16 digits
www.CertificationKing.com
10
Question No : 13 - (Topic 1)
The throw keyword is used to perform which two actions? (Choose two.)
Question No : 14 - (Topic 1)
You execute the following code.
www.CertificationKing.com
11
A. 49
B. 50
C. 51
D. 100
Answer: B
Explanation: The % operator computes the remainder after dividing its first operand by its
second. All numeric types have predefined remainder operators.
In this case the reminder will be nonzero 50 times (for i with values 1, 3, 5,..,99).
Question No : 15 - (Topic 1)
The purpose of the Catch section in an exception handler is to:
Question No : 16 - (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 field 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?
www.CertificationKing.com
12
Incorrect:
DateTime: Defines 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.
Question No : 17 - (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. )
A. Field
B. Attribute
www.CertificationKing.com
13
Question No : 18 - (Topic 1)
Which language allows you to dynamically create content on the client side?
Question No : 19 - (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
Answer: B
www.CertificationKing.com
14
Question No : 20 - (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
Answer: C
Explanation: The Execute method calls an .asp file, 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 file to a second .asp file.
Question No : 21 - (Topic 1)
You are creating a routine that will perform calculations by using a repetition structure. You
www.CertificationKing.com
15
A. For
B. While
C. DoWhile
D. For. Each
Answer: C
Explanation: In a Do..While loop the test is at the end of the structure, so it will be
executed at least once.
Question No : 22 - (Topic 1)
Which three phrases are advantages of connection pooling? (Choose three.)
Question No : 23 - (Topic 1)
This question requires that you evaluate the underlined text to determine if it is correct.
www.CertificationKing.com
16
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
Answer: B
Explanation: 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 specifications.
UAT is one of the final 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.
Question No : 24 - (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 configured 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
Answer: B
Explanation: MSMQ is a messaging protocol that allows applications running on separate
www.CertificationKing.com
17
Question No : 25 - (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
Answer: B
Explanation: A customer can have many orders.
Question No : 26 - (Topic 1)
Class C and Class D inherit from Class B. Class B inherits from Class A. The classes have
www.CertificationKing.com
18
A. only m3, m4
B. only m2, m3
C. only ml, m3
D. m1, m3, m3
E. m2, m3, m4
F. m1, m2, m3
Answer: F
Question No : 27 - (Topic 1)
This question requires that you evaluate the underlined text to determine if it is correct.
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
Answer: A
www.CertificationKing.com
19
Question No : 28 - (Topic 1)
You need to debug a Windows Service application by using breakpoints.
* 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.
www.CertificationKing.com
20
Use the drop-down menus to select the answer choice that answers each question. Each
correct selection is worth one point.
www.CertificationKing.com
21
Answer:
Question No : 30 - (Topic 1)
You execute the following code.
www.CertificationKing.com
22
A. 1
B. 2
C. 3
D. 4
Answer: B
www.CertificationKing.com
23
Answer:
Question No : 32 - (Topic 1)
How many parameters can a default constructor have?
A. 0
www.CertificationKing.com
24
Question No : 33 - (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.
A. Console-based
B. Windows Forms
C. Windows Service
D. ClickOnce
Answer: B
Explanation: Use Windows Forms when a GUI is needed.
Question No : 34 - (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
www.CertificationKing.com
25
Question No : 35 - (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 first-in, last-out (FILO) process.
Answer: C
Question No : 36 - (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
Answer: C,D
Explanation: For and While constructs check at the start of each iteration.
Question No : 37 - (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 ().
www.CertificationKing.com
26
Question No : 38 - (Topic 1)
You have a table named ITEMS with the following fields:
ID (integer, primary key, auto generated)
Description (text)
Completed (Boolean)
You need to insert the following data in the table:
"Cheese", False
Incorrect:
Not A, not C: ID is autogenerated and should not be specified.
www.CertificationKing.com
27
Answer:
www.CertificationKing.com
28
Question No : 40 - (Topic 1)
You need to allow a consumer of a class to modify a private data member.
Note: The private keyword is a member access modifier. 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;
www.CertificationKing.com
29
Question No : 41 - (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.
A. Return
B. Get
C. Set
D. Let
Answer: B
Question No : 42 - (Topic 1)
How does a console-based application differ from a Windows Forms application?
Question No : 43 - (Topic 1)
You are creating a database for a student directory. The Students table contains the
following fields:
www.CertificationKing.com
30
Which statement will retrieve only the first name, last name, and telephone number for
every student listed in the directory?
Question No : 44 - (Topic 1)
Which programming language is characterized as client-side, dynamic and weakly typed?
A. JavaScript
B. HTML
C. ASP.NET
D. C#
Answer: A
Explanation: JavaScript is characterized as a dynamic, weakly typed, prototype-based
language with first-class functions. It is primarily used in the form of client-side JavaScript
for the development of dynamic websites.
www.CertificationKing.com
31
Use the drop-down menus to select the answer choice that completes each statement.
Each correct selection is worth one point.
Answer:
www.CertificationKing.com
32
A. Windows Forms
B. Windows Service
C. ASP. NET
D. Console-based
Answer: C
Answer:
www.CertificationKing.com
33
Question No : 48 - (Topic 1)
This question requires that you evaluate the underlined text to determine if it is correct.
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
Answer: B
Explanation: Arguments are passed to console applications as a String Array object.
Question No : 49 - (Topic 1)
In the application life cycle, the revision of an application after it has been deployed is
referred to as:
www.CertificationKing.com
34
Question No : 50 - (Topic 1)
You are developing an application that tracks tennis matches. A match is represented by
the following class:
How many times is the Location property on the newly created Match class assigned?
A. 0
B. 1
C. 2
D. 3
Answer: C
www.CertificationKing.com
35
Question No : 52 - (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
Answer: B
Explanation: 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.
www.CertificationKing.com
36
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
Answer: B
Explanation: 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 reflects all changes.
Question No : 54 - (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?
www.CertificationKing.com
37
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
Answer: A
Question No : 56 - (Topic 1)
You have a SQL Server database named MyDB that uses SQL Server Authentication.
Incorrect:
not C: Windows Authentication (Integrated Security = true) remains the most secure way to
log in to a SQL Server database.
www.CertificationKing.com
38
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
Answer: B
Explanation: 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.
Question No : 58 - (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 file
C. a proxy
D. a .disco file
Answer: B,D
Explanation: A .wsdl file that references the Web service is created, together with
supporting files, such as discovery (.disco and .discomap) files, that include information
about where the Web service is located.
www.CertificationKing.com
39
Use the drop-down menus to select the answer choice that answers each question. Each
correct selection is worth one point.
www.CertificationKing.com
40
Question No : 60 - (Topic 1)
You need to ensure the data integrity of a database by resolving insertion, update, and
deletion anomalies.
A. Isolation
B. Normalization
C. Integration
D. Resolution
Answer: B
Explanation: Database normalization is the process of organizing the fields and tables of a
relational database to minimize redundancy. Normalization usually involves dividing large
tables into smaller (and less redundant) tables and defining relationships between them.
The objective is to isolate data so that additions, deletions, and modifications of a field can
be made in just one table and then propagated through the rest of the database using the
defined relationships.
www.CertificationKing.com
41
Answer:
The application must display the race results twice. The first 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.
www.CertificationKing.com
42
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.)
Answer:
www.CertificationKing.com
43
Question No : 63 - (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.
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
www.CertificationKing.com
44
Question No : 64 - (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"
Answer: D
Question No : 65 - (Topic 1)
You are creating an application that presents the user with a Windows Form. You need to
configure the application to display a message box to confirm that the user wants to close
the form.
A. Deactivate
B. Leave
C. FormClosed
D. FormClosing
Answer: D
Explanation: The Closing event occurs as the form is being closed.
Question No : 66 - (Topic 1)
www.CertificationKing.com
45
Question No : 67 - (Topic 1)
You need to create a stored procedure that passes in a person's name and age.
www.CertificationKing.com
46
Question No : 68 - (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
Answer: A,C
Explanation: * 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
www.CertificationKing.com
47
Question No : 69 - (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
Answer: C
Explanation: You host web applications.
Question No : 70 - (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 file
www.CertificationKing.com
48
For each of the following statements, select Yes if the statement is true. Otherwise, select
No. Each correct selection is worth one point.
Answer:
www.CertificationKing.com
49
Question No : 72 - (Topic 1)
How should you configure an application to consume a Web service?
Question No : 73 - (Topic 1)
Which three items are benefits of encapsulation? (Choose three.)
A. maintainability
B. flexibility
C. restricted access
D. inheritance
E. performance
www.CertificationKing.com
50
Incorrect:
not D: Encapsulation is one of the four fundamental OOP concepts. The other three are
inheritance, polymorphism, and abstraction.
Question No : 74 - (Topic 1)
What is displayed when you attempt to access a Web service by using a Web browser?
www.CertificationKing.com
51
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.)
www.CertificationKing.com
52
Answer:
www.CertificationKing.com
53
Answer:
Question No : 77 - (Topic 1)
This question requires that you evaluate the underlined text to determine if it is correct.
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
www.CertificationKing.com
54