Questão 1
Questão
What are the three basic states that a Windows service can be in? (Choose three.)
Responda
-
halted
-
running
-
stopped
-
paused
-
starting
Questão 2
Questão
The following functions are defined:
Questão 3
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 4
Questão
The purpose of the Catch section in an exception handler is to:
Responda
-
Break out of the error handler.
-
Conclude the execution of the application.
-
Execute code only when an exception is thrown.
-
Execute code regardless of whether an exception is thrown.
Questão 5
Questão
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?
Questão 6
Questão
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?
Responda
-
Windows Forms
-
Windows Service
-
ASP. NET
-
Console-based
Questão 7
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 8
Questão
In the life cycle of an ASP. NET Web page, which phase follows the SaveStateComplete phase?
Responda
-
PostBack
-
Postlnit
-
Load
-
Render
Questão 9
Questão
The throw keyword is used to perform which two actions? (Choose two.)
Responda
-
stop processing of the code
-
move error handling to a separate thread
-
raise exceptions
-
re-throw exceptions as a different type
Questão 10
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?
-
DateTime
-
SByte
-
DateTimeOffset?
Questão 11
Questão
Simulating the final design of an application in order to ensure that the development is progressing as expected is referred to as:
Responda
-
Analyzing requirements
-
Prototyping
-
Software testing
-
Flowcharting
Questão 12
Questão
Which language uses Data Definition Language (DDL) and Data Manipulation Language (DML)?
Questão 13
Questão
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?
Responda
-
It reorders the records alphabetically.
-
It speeds up query execution.
-
It minimizes storage requirements.
-
It reorders the records numerically.
Questão 14
Questão
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?
Responda
-
Window.break();
-
Glass.break();
-
this.break();
-
base.break();
Questão 15
Questão
You are developing a web application. You need to create the following graphic by using Cascading Style Sheets (CSS):
Responda
-
linear-gradient(to top,green, black);
-
linear-gradient(to bottom,green, black);
-
radial-gradient(green, black);
-
repeating-linear-gradient(green, black);
-
10px;
-
10px, 10px, 10px;
-
inherit;
-
initial;
Questão 16
Questão
You need to debug a Windows Service application by using breakpoints. What should you do?
Responda
-
Write all events to an event log.
-
Set the Windows Service status to Paused.
-
Implement the Console.WriteLine method throughout the Windows Service.
-
Use the Attach to Process menu in Microsoft Visual Studio.
Questão 17
Questão
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.
Responda
-
No change is needed
-
Main
-
Program
-
Object
Questão 18
Questão
You are creating an application that presents the user with a Windows Form. Which event is triggered each time the Windows Form receives focus?
Responda
-
Enter
-
Paint
-
Load
-
Activated
Questão 19
Questão
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.
Questão 20
Questão
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. Which event should you handle?
Responda
-
Deactivate
-
Leave
-
FormClosed
-
FormClosing
Questão 21
Questão
You are reviewing the following code that saves uploaded images.
struct ImageInfo
{
public byte[] Data;
public int Length;
public Guid Id;
}
void Post()
{
var uploaded = PostedImage();
var newImage = new ImageInfo();
newImage.Data = uploaded;
newImage.Length = uploaded.Length;
newImage.Id = Guid.NewGuid();
}
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 22
Questão
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?
Responda
-
Console-based
-
Windows Forms
-
Windows Service
-
ClickOnce
Questão 23
Questão
The purpose of a constructor in a class is to:
Responda
-
Initialize an object of that class.
-
Release the resources that the class holds.
-
Create a value type.
-
Inherit from the base class.
Questão 24
Questão
You need to create an application that processes data on a last-in, first-out (LIFO) basis. Which data structure should you use?
Questão 25
Questão
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?
Questão 26
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 27
Questão
Which type of Windows application presents a parent window that contains child windows?
Responda
-
Application programming interface (API)
-
Single-document interface (SDI)
-
Multiple-document interface (MDI)
-
Command-line interface (CLI)
Questão 28
Questão
This question requires that you evaluate the underlined text to determine if it is correct.
The benefit 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.
Responda
-
No change is needed
-
succeeds or fails as a unit
-
finishes as quickly as possible
-
can be completed concurrently with other transactions
Questão 29
Questão
What are two advantages of normalization in a database? (Choose two)
Responda
-
prevents data inconsistencies
-
reduces schema limitations
-
minimizes impact of data corruption
-
decreases space used on disk
Questão 30
Questão
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?
Responda
-
Casting
-
Deploying
-
Hosting
-
Virtualization
Questão 31
Questão
You execute the following code.
for (int i = 0; i <= 100; i++)
{
if (i % 2 != 0)
{
Console.WriteLine("Hello");
}
}
How many times will the word Hello be printed?
Questão 32
Questão
bool beakerFull = true;
bool flameOn = false;
int iResult = 0;
if (beakerFull)
{
if (flameOn)
{
iResult = 1;
}
else
{
iResult = 2;
}
}
else
{
iResult = 3;
}
What will the variable result be?
Questão 33
Questão
What are two possible options for representing a Web application within Internet Information Services (IIS)? Each correct answer presents a complete solution. (Choose two. )
Responda
-
Web site
-
Web directory
-
Virtual directory
-
Application server
-
Application directory
Questão 34
Questão
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?
Responda
-
client-side
-
server-side
-
multithreaded
-
batch processing
Questão 35
Questão
The elements of an array must be accessed by:
Responda
-
Calling the item that was most recently inserted into the array.
-
Calling the last item in the memory array.
-
Using an integer index.
-
Using a first-in, last-out (FILO) process.
Questão 36
Questão
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.
Responda
-
No change is needed
-
merge
-
library
-
insertion
Questão 37
Questão
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?
Responda
-
For
-
While
-
Do„While
-
For. „Each
Questão 38
Questão
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
Responda
-
Windows Service
-
Windows Forms
-
Console-based
-
Batch file
Questão 39
Questão
You are developing an application that displays a list of race results. The race results are stored in the following class:
public class RaceSpeedRecord
{
public RaceSpeedRecord Faster;
public RaceSpeedRecord Slower;
public string Race;
public double Time;
}
The code that manages the list as follows:
pubic class Results
{
pubic Results()
{
CurrentOlympicRecord = new RaceSpeedRecord();
}
public RaceSpeedRecord CurrentOlympicRecord;
public void AddRace(string raceName, double time)
{
}
}
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.)
Responda
-
current.Time
-
1-current.Slower
-
1-current.Faster
-
current.Race
-
2-current.Slower
-
2-current.Faster
Questão 40
Questão
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.
Responda
-
No change is needed
-
protocol
-
host header
-
port
Questão 41
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 42
Questão
Which three phrases are advantages of connection pooling? (Choose three.)
Responda
-
reduces time to create a connection
-
requires no configuration
-
reduces load on the server
-
improved scalability
-
improved performance
Questão 43
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
-
ViewState
-
Application
-
Cookies
Questão 44
Questão
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.
Responda
-
No change is needed
-
serialization
-
decoding
-
encoding
Questão 45
Questão
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?
Responda
-
Encapsulation
-
Data modeling
-
Inheritance
-
Data hiding
Questão 46
Questão
Which type of function can a derived class override?
Responda
-
a non-virtual public member function
-
a private virtual function
-
a protected virtual member function
-
a static function
Questão 47
Questão
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. )
Responda
-
Field
-
Attribute
-
Property
-
Entity
Questão 48
Questão
Class C and Class D inherit from ClassB.
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?
Responda
-
only m3, m4
-
only m2, m3
-
only ml, m3
-
m1, m3, m3
-
m2, m3, m4
-
m1, m2, m3
Questão 49
Questão
Extensible Markup Language (XML)
Responda
-
Extensible Markup Language (XML)
-
Cascading Style Sheets (CSS)
-
Hypertext Markup Language (HTML)
-
JavaScript (JS)
Questão 50
Questão
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?