Frage 1
Frage
What are the three basic states that a Windows service can be in? (Choose three.)
Antworten
-
halted
-
running
-
stopped
-
paused
-
starting
Frage 2
Frage
The following functions are defined:
Frage 3
Frage
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Frage 4
Frage
The purpose of the Catch section in an exception handler is to:
Antworten
-
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.
Frage 5
Frage
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?
Frage 6
Frage
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?
Antworten
-
Windows Forms
-
Windows Service
-
ASP. NET
-
Console-based
Frage 7
Frage
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Frage 8
Frage
In the life cycle of an ASP. NET Web page, which phase follows the SaveStateComplete phase?
Antworten
-
PostBack
-
Postlnit
-
Load
-
Render
Frage 9
Frage
The throw keyword is used to perform which two actions? (Choose two.)
Antworten
-
stop processing of the code
-
move error handling to a separate thread
-
raise exceptions
-
re-throw exceptions as a different type
Frage 10
Frage
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?
Antworten
-
uLong?
-
DateTime
-
SByte
-
DateTimeOffset?
Frage 11
Frage
Simulating the final design of an application in order to ensure that the development is progressing as expected is referred to as:
Antworten
-
Analyzing requirements
-
Prototyping
-
Software testing
-
Flowcharting
Frage 12
Frage
Which language uses Data Definition Language (DDL) and Data Manipulation Language (DML)?
Frage 13
Frage
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?
Antworten
-
It reorders the records alphabetically.
-
It speeds up query execution.
-
It minimizes storage requirements.
-
It reorders the records numerically.
Frage 14
Frage
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?
Antworten
-
Window.break();
-
Glass.break();
-
this.break();
-
base.break();
Frage 15
Frage
You are developing a web application. You need to create the following graphic by using Cascading Style Sheets (CSS):
Antworten
-
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;
Frage 16
Frage
You need to debug a Windows Service application by using breakpoints. What should you do?
Antworten
-
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.
Frage 17
Frage
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.
Antworten
-
No change is needed
-
Main
-
Program
-
Object
Frage 18
Frage
You are creating an application that presents the user with a Windows Form. Which event is triggered each time the Windows Form receives focus?
Antworten
-
Enter
-
Paint
-
Load
-
Activated
Frage 19
Frage
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.
Frage 20
Frage
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?
Antworten
-
Deactivate
-
Leave
-
FormClosed
-
FormClosing
Frage 21
Frage
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.
Frage 22
Frage
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?
Antworten
-
Console-based
-
Windows Forms
-
Windows Service
-
ClickOnce
Frage 23
Frage
The purpose of a constructor in a class is to:
Antworten
-
Initialize an object of that class.
-
Release the resources that the class holds.
-
Create a value type.
-
Inherit from the base class.
Frage 24
Frage
You need to create an application that processes data on a last-in, first-out (LIFO) basis. Which data structure should you use?
Frage 25
Frage
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?
Frage 26
Frage
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Frage 27
Frage
Which type of Windows application presents a parent window that contains child windows?
Antworten
-
Application programming interface (API)
-
Single-document interface (SDI)
-
Multiple-document interface (MDI)
-
Command-line interface (CLI)
Frage 28
Frage
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.
Antworten
-
No change is needed
-
succeeds or fails as a unit
-
finishes as quickly as possible
-
can be completed concurrently with other transactions
Frage 29
Frage
What are two advantages of normalization in a database? (Choose two)
Antworten
-
prevents data inconsistencies
-
reduces schema limitations
-
minimizes impact of data corruption
-
decreases space used on disk
Frage 30
Frage
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?
Antworten
-
Casting
-
Deploying
-
Hosting
-
Virtualization
Frage 31
Frage
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?
Frage 32
Frage
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?
Frage 33
Frage
What are two possible options for representing a Web application within Internet Information Services (IIS)? Each correct answer presents a complete solution. (Choose two. )
Antworten
-
Web site
-
Web directory
-
Virtual directory
-
Application server
-
Application directory
Frage 34
Frage
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?
Antworten
-
client-side
-
server-side
-
multithreaded
-
batch processing
Frage 35
Frage
The elements of an array must be accessed by:
Antworten
-
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.
Frage 36
Frage
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.
Antworten
-
No change is needed
-
merge
-
library
-
insertion
Frage 37
Frage
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?
Antworten
-
For
-
While
-
Do„While
-
For. „Each
Frage 38
Frage
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
Antworten
-
Windows Service
-
Windows Forms
-
Console-based
-
Batch file
Frage 39
Frage
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.)
Antworten
-
current.Time
-
1-current.Slower
-
1-current.Faster
-
current.Race
-
2-current.Slower
-
2-current.Faster
Frage 40
Frage
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.
Antworten
-
No change is needed
-
protocol
-
host header
-
port
Frage 41
Frage
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Frage 42
Frage
Which three phrases are advantages of connection pooling? (Choose three.)
Antworten
-
reduces time to create a connection
-
requires no configuration
-
reduces load on the server
-
improved scalability
-
improved performance
Frage 43
Frage
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?
Antworten
-
Session
-
ViewState
-
Application
-
Cookies
Frage 44
Frage
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.
Antworten
-
No change is needed
-
serialization
-
decoding
-
encoding
Frage 45
Frage
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?
Antworten
-
Encapsulation
-
Data modeling
-
Inheritance
-
Data hiding
Frage 46
Frage
Which type of function can a derived class override?
Antworten
-
a non-virtual public member function
-
a private virtual function
-
a protected virtual member function
-
a static function
Frage 47
Frage
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. )
Antworten
-
Field
-
Attribute
-
Property
-
Entity
Frage 48
Frage
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?
Antworten
-
only m3, m4
-
only m2, m3
-
only ml, m3
-
m1, m3, m3
-
m2, m3, m4
-
m1, m2, m3
Frage 49
Frage
Extensible Markup Language (XML)
Antworten
-
Extensible Markup Language (XML)
-
Cascading Style Sheets (CSS)
-
Hypertext Markup Language (HTML)
-
JavaScript (JS)
Frage 50
Frage
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?