Questão 1
Questão
You create an application that uses Simple Object Access Protocol (SOAP).
Which technology provides information about the application's functionality to other applications?
Responda
-
Web Service Description Language (WSDL)
-
Extensible Application Markup Language (XAML)
-
Common Intermediate Language (CIL)
-
Universal Description, Discovery, and Integration (UDDI)
Questão 2
Questão
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?
Questão 3
Questão
Which of the following must exist to inherit attributes from a particular class?
Responda
-
Public properties
-
A has-a relationship
-
An is-a relationship
-
Static members
Questão 4
Questão
What does the Console.Error property do within a console-based application?
Responda
-
sets the standard error input stream
-
gets the standard error output stream
-
gets the standard error input stream
-
sets the standard error output stream
Questão 5
Questão
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?
Responda
-
Connection timeouts
-
Named pipes
-
Normalization
-
Connection pooling
Questão 6
Questão
Which term is used to describe small units of text that are stored on a client computer and retrieved to maintain state?
Responda
-
trace
-
cookie
-
server transfer
-
cross-page post
Questão 7
Questão
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?
Responda
-
Windows Forms
-
Windows Service
-
Web-based
-
Console-based
Questão 8
Questão
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Questão 9
Questão
Your database administrators will not allow you to write SQL code in your application. How should you retrieve data in your application?
Questão 10
Questão
You are creating a Windows Store application that uses the following gesture:
Responda
-
moving
-
pushing
-
sliding
-
swiping
-
app bar
-
canvas
-
charms
-
context menu
Questão 11
Questão
How does a console-based application differ from a Windows Forms application?
Responda
-
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.
Questão 12
Questão
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?
Responda
-
Windows Service application
-
Windows Forms application
-
DOS batch file
-
Terminate-and-stay-resident (TSR) program
Questão 13
Questão
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.
Responda
-
No change is needed
-
User acceptance
-
System
-
Integration
Questão 14
Questão
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;
}
Questão 15
Questão
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?
Questão 16
Questão
You have the following flowchart:
Responda
-
20
-
100
-
300
-
400
-
20
-
30
-
70
-
330
Questão 17
Questão
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?
Responda
-
Functional
-
Service oriented
-
Structured
-
Event driven
Questão 18
Questão
In the application life cycle, the revision of an application after it has been deployed is referred to as:
Responda
-
Unit testing
-
Integration
-
Maintenance
-
Monitoring
Questão 19
Questão
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?
Responda
-
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)
Questão 20
Questão
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?
Questão 21
Questão
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?
Responda
-
polymorphism
-
encapsulation
-
superclassing
-
overloading
Questão 22
Questão
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?
Responda
-
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.
Questão 23
Questão
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?
Responda
-
Internal
-
Protected
-
Private
-
Public
Questão 24
Questão
The ASP.NET MVC page lifecycle is shown in the following graphic:
Responda
-
View
-
Route
-
Controller
-
HTTP Handler
-
View
-
Route
-
Controller
-
HTTP Handler
Questão 25
Questão
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.
Responda
-
No change is needed
-
branching
-
merging
-
splitting
Questão 26
Questão
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.
Responda
-
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
Questão 27
Questão
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.
Responda
-
No change is needed
-
file allocation table
-
block size
-
folder and file names
Questão 28
Questão
You have a SQL Server database named MyDB that uses SQL Server Authentication.
Which connection string should you use to connect to MyDB?
Responda
-
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
Questão 29
Questão
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.
Questão 30
Questão
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.
Responda
-
No change is needed
-
computer that hosts the application
-
computer that you plan to deploy from
-
Application Layer Gateway Service
Questão 31
Questão
When a web service is referenced from a client application in Microsoft Visual Studio, which two items are created? (Choose two.)
Responda
-
a stub
-
a.wsdl file
-
a proxy
-
a .disco file
Questão 32
Questão
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.
Responda
-
No change is needed
-
joins
-
grouping
-
ordering
Questão 33
Questão
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.
Responda
-
No change is needed
-
downcasting
-
interfacing
-
flexing
Questão 34
Questão
You open the Internet Information Services 7.5 Manager console as shown in the following exhibit:
Questão 35
Questão
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?
Responda
-
Isolation
-
Normalization
-
Integration
-
Resolution
Questão 36
Questão
Which function does Simple Object Access Protocol (SOAP) provide when using Web services?
Questão 37
Questão
Which three items are benefits of encapsulation? (Choose three.)
Responda
-
maintainability
-
flexibility
-
restricted access
-
inheritance
-
performance
Questão 38
Questão
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.
Responda
-
No change is needed
-
User acceptance
-
System
-
Integration
Questão 39
Questão
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.
Responda
-
No change is needed
-
branching
-
merging
-
splitting
Questão 40
Questão
Which three are valid SQL keywords? (Choose three.)
Responda
-
GET
-
FROM
-
SELECT
-
WHAT
-
WHERE
Questão 41
Questão
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?
Questão 42
Questão
How should you configure an application to consume a Web service?
Responda
-
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.
Questão 43
Questão
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?
Questão 44
Questão
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Questão 45
Questão
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?
Responda
-
Windows Forms application
-
DOS batch file
-
Terminate-and-stay-resident (TSR) program
-
Windows Service application
Questão 46
Questão
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?
Responda
-
Option A
-
Option B
-
Option C
-
Option D
Questão 47
Questão
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?
Questão 48
Questão
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?
Responda
-
uLong?
-
DateTimeOffset?
-
SByte
-
Date
Questão 49
Questão
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?
Questão 50
Questão
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?
Responda
-
session
-
application
-
cookies
-
ViewState