Docsity

Certiport Software Development #4 Exam - Practice Questions and Answers, Exams of Advanced Education

Toggle sidebar
bg1
Certiport Software Development #4
Exam-Graded A
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 - 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 - 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?
pf3

Partial preview of the text

Download Certiport Software Development #4 Exam - Practice Questions and Answers and more Exams Advanced Education in PDF only on Docsity!

Certiport Software Development

Exam-Graded A

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 - 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 = Else iResult = 2 End if Else iResult = 3 End If What will the variable iResult be? A.) 4 B.) 1 C.) 0 D.) 2 - 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 - 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 - ANSWER-B.) Windows Service application 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? A.) structured B.) event driven - ANSWER-B.) event driven What are two methods that can be used to evaluate the condition of a loop at the start of each iteration? (Each correct answer presents a complete solution. Choose two. ) A.) For B.) While C.) If D.) Do...While - ANSWER-A.) For B.) While 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? A.) False B.) True - ANSWER-A.) False 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 A.) Windows Service B.) Windows Form - ANSWER-A.) Windows Service