Question 1
Question
You create an application that uses Simple Object Access Protocol (SOAP).
Which technology provides information about the application's functionality to other applications?
Answer
-
Web Service Description Language (WSDL)
-
Extensible Application Markup Language (XAML)
-
Common Intermediate Language (CIL)
-
Universal Description, Discovery, and Integration (UDDI)
Question 2
Question
You execute the following code:
for (int i = 0; i <=10; i+= 2)
{
Console.WriteLine ("Hello");
}
How many times will the word Hello be printed?
Question 3
Question
Which of the following must exist to inherit attributes from a particular class?
Answer
-
Public properties
-
A has-a relationship
-
An is-a relationship
-
Static members
Question 4
Question
What does the Console.Error property do within a console-based application?
Answer
-
sets the standard error input stream
-
gets the standard error output stream
-
gets the standard error input stream
-
sets the standard error output stream
Question 5
Question
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?
Answer
-
Connection timeouts
-
Named pipes
-
Normalization
-
Connection pooling
Question 6
Question
Which term is used to describe small units of text that are stored on a client computer and retrieved to maintain state?
Answer
-
trace
-
cookie
-
server transfer
-
cross-page post
Question 7
Question
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?
Answer
-
Windows Forms
-
Windows Service
-
Web-based
-
Console-based
Question 8
Question
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Question 9
Question
Your database administrators will not allow you to write SQL code in your application. How should you retrieve data in your application?
Question 10
Question
You are creating a Windows Store application that uses the following gesture:
Answer
-
moving
-
pushing
-
sliding
-
swiping
-
app bar
-
canvas
-
charms
-
context menu
Question 11
Question
How does a console-based application differ from a Windows Forms application?
Answer
-
Console-based applications require the XNA Framework to run.
-
Windows Forms applications do not provide a method for user input.
-
Windows Forms applications can access network resources.
-
Console-based applications do not display a graphical interface.
Question 12
Question
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?
Answer
-
Windows Service application
-
Windows Forms application
-
DOS batch file
-
Terminate-and-stay-resident (TSR) program
Question 13
Question
This question requires that you evaluate the underlined text to determine if it is correct.
Unit testing is the final set of tests that must be completed before a feature or product can be considered finished.
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.
Answer
-
No change is needed
-
User acceptance
-
System
-
Integration
Question 14
Question
You run the following code:
int a = 10;
int b = 20;
int c = 30;
int result = 0;
if (a <= b || c > a)
{
result = 10;
}
else if (a <= b || c <= a)
{
result = 20;
}
else
{
result = 30;
}
Question 15
Question
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?
Question 16
Question
You have the following flowchart:
Answer
-
20
-
100
-
300
-
400
-
20
-
30
-
70
-
330
Question 17
Question
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?
Answer
-
Functional
-
Service oriented
-
Structured
-
Event driven
Question 18
Question
In the application life cycle, the revision of an application after it has been deployed is referred to as:
Answer
-
Unit testing
-
Integration
-
Maintenance
-
Monitoring
Question 19
Question
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
Which statement should you use?
Answer
-
INSERT INTO ITEMS (ID, Description, Completed) VALUES (1, 'Cheese', 0)
-
INSERT INTO ITEMS (Description, Completed) VALUES ('Cheese', 1)
-
INSERT INTO ITEMS (10, Description, Completed) VALUES (NEWID(), 'Cheese', 6)
-
INSERT INTO ITEMS (Description, Completed) VALUES ('Cheese', 0)
Question 20
Question
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?
Question 21
Question
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?
Answer
-
polymorphism
-
encapsulation
-
superclassing
-
overloading
Question 22
Question
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?
Answer
-
Disable implicit transactions.
-
place the query into a stored procedure.
-
Create an index on the result table.
-
Add an AFTER UPDATE trigger on the result table to reject updates.
Question 23
Question
You are designing a class for an application. You need to restrict the availability of the member variable accessCount to the base class and to any classes that are derived from the base class.
Which access modifier should you use?
Answer
-
Internal
-
Protected
-
Private
-
Public
Question 24
Question
The ASP.NET MVC page lifecycle is shown in the following graphic:
Answer
-
View
-
Route
-
Controller
-
HTTP Handler
-
View
-
Route
-
Controller
-
HTTP Handler
Question 25
Question
This question requires that you evaluate the underlined text to determine if it is correct.
The duplication of code so that modifications 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.
Answer
-
No change is needed
-
branching
-
merging
-
splitting
Question 26
Question
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.
Answer
-
No change is needed
-
can be overridden with its own implementation by a derived class
-
must be overridden in any non-abstract class that directly inherits from that class
-
cannot be overridden with its own implementation by a derived class
Question 27
Question
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 files, 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.
Answer
-
No change is needed
-
file allocation table
-
block size
-
folder and file names
Question 28
Question
You have a SQL Server database named MyDB that uses SQL Server Authentication.
Which connection string should you use to connect to MyDB?
Answer
-
Data Source=MyDB; UserID=username; Password=P@sswOrd; Initial Catalog=Sales
-
Data Source=MyDB; Integrated Security=SSPI; Initial Catalog=Sales
-
Data Source=MyDB; Integrated Security=True; Initial Catalog=Sales
-
Data Source=MyDB; Trusted_Connection=True; MultipleActiveResultSets=True; Initial Catalog=Sales
Question 29
Question
You are reviewing the following class that is used to manage the results of a 5K race:
public class Player
{
private string _name;
public const string key = "player";
public bool MatchName(string searchTerm)
{
return _name.ToLower() == searchTerm;
}
public void SetResult(int rank, string name)
{
if (_name != null)
{
return ;
}
Ranking = rank;
_name = name;
}
public int Ranking { get; private set; }
}
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Question 30
Question
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.
Answer
-
No change is needed
-
computer that hosts the application
-
computer that you plan to deploy from
-
Application Layer Gateway Service
Question 31
Question
When a web service is referenced from a client application in Microsoft Visual Studio, which two items are created? (Choose two.)
Answer
-
a stub
-
a.wsdl file
-
a proxy
-
a .disco file
Question 32
Question
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.
Answer
-
No change is needed
-
joins
-
grouping
-
ordering
Question 33
Question
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.
Answer
-
No change is needed
-
downcasting
-
interfacing
-
flexing
Question 34
Question
You open the Internet Information Services 7.5 Manager console as shown in the following exhibit:
Question 35
Question
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?
Answer
-
Isolation
-
Normalization
-
Integration
-
Resolution
Question 36
Question
Which function does Simple Object Access Protocol (SOAP) provide when using Web services?
Question 37
Question
Which three items are benefits of encapsulation? (Choose three.)
Answer
-
maintainability
-
flexibility
-
restricted access
-
inheritance
-
performance
Question 38
Question
This question requires that you evaluate the underlined text to determine if it is correct.
Unit testing is the final set of tests that must be completed before a feature or product can be considered finished.
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.
Answer
-
No change is needed
-
User acceptance
-
System
-
Integration
Question 39
Question
This question requires that you evaluate the underlined text to determine if it is correct.
The duplication of code so that modifications 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.
Answer
-
No change is needed
-
branching
-
merging
-
splitting
Question 40
Question
Which three are valid SQL keywords? (Choose three.)
Answer
-
GET
-
FROM
-
SELECT
-
WHAT
-
WHERE
Question 41
Question
You execute the following code:
For i = 0 to 10 Step 2
Console.WriteLine ("Hello")
Next
How many times will the word Hello be printed?
Question 42
Question
How should you configure an application to consume a Web service?
Answer
-
Add the Web service to the development computer.
-
Add a reference to the application in the Web service.
-
Add a reference to the Web service in the application.
-
Add the Web service code to the application.
Question 43
Question
You execute the following code:
Dim beakerFull As Boolean = True
Dim flameOn As Boolean = False
Dim iResult As Integer
Select Case beakerFull
Case True
Select Case flameOn
Case True
iResult = 1
Case False
iResult = 2
End Select
Case False
Select Case flameOn
Case False
iResult = 3
Case True
iResult = 4
End Select
End Select
What will the variable result be?
Question 44
Question
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Question 45
Question
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?
Answer
-
Windows Forms application
-
DOS batch file
-
Terminate-and-stay-resident (TSR) program
-
Windows Service application
Question 46
Question
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?
Answer
-
Option A
-
Option B
-
Option C
-
Option D
Question 47
Question
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?
Question 48
Question
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?
Answer
-
uLong?
-
DateTimeOffset?
-
SByte
-
Date
Question 49
Question
You execute the following code:
Dim beakerFull As Boolean = True
Dim flameOn As Boolean = False
Dim iResult As Integer = 0
if beakerFull = True Then
if flameOn = True Then
iResult = 1
else
iResult = 2
End if
Else
iResult = 3
End if
What will the variable result be?
Question 50
Question
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?
Answer
-
session
-
application
-
cookies
-
ViewState