UPDATED ACTUAL Exam Questions and
CORRECT Answers
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?
A.) 10
B.) 4
C.) 6
D.) 8 - CORRECT ANSWER - C.) 6
Dim beakerFull As Boolean = True
Dim flameOn As Boolean = False
Dim iResults 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 iResult be?
A.) 4
B.) 1
C.) 0
D.) 2 - CORRECT ANSWER - D.) 2
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
Which data type should you use?
A.) Single
B.) Decimal
C.) String
D.) Char - CORRECT ANSWER - A.) Single
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?
A.) Windows Forms application
B.) Windows Service application - CORRECT ANSWER - B.) Windows Service
application