NEW
Font size
WorksheetsQuiz 2 DFP4013
Total questions: 10
Worksheet time: 13mins
Write an If clause that determines whether the value in the dblPay variable is at least 10.45.
If dblPay >= 10.45 Then
If dblPay > 10.45 Then
If dblPay >> 10.45 Then
If dblPay = 10.45 Then
Write an If clause that determines whether the blnIsInsured variable contains the keyword True.
If blnIsInsured.enable = True Then
If blnIsInsured = True Then
If blnIsInsured = 'True' Then
If blnIsInsured == True Then
Which flowchart symbol represents the condition in a multiple-alternative selection structure?
Diamond
Arrow
Rectangle
Oval
If the intCode variable is used as the selectorExpression in a Select Case statement, which of the following is a valid Case clause?
Case 1, 2, 3
Case "1", "2", "3"
Case 1 Through 3
Case 1 To 3
Write a Case clause that specifies all numbers less than 0.
Case Is less than 0
Case Is 'Negatif'
Case Is > 0
Case Is < 0
If the loop’s For clause is For intX = 2 To 8 Step 2, how many times will the loop instructions be processed?
1
2
4
8
What will the following code display in the lblAsterisks control?
For intX As Integer = 1 To 2
For intY As Integer = 1 To 3
lblAsterisks.Text = lblAsterisks.Text & "*"
Next intY
lblAsterisks.Text = lblAsterisks.Text & ControlChars.NewLine
***
***
**
**
**
**
**
***
***
***
What will the following code display in the lblSum control?
Dim intSum As Integer
Dim intY As Integer
Do While intY < 3
For intX As Integer = 1 To 4
intSum += intX
Next intX
intY += 1
Loop
lblSum.Text = intSum.ToString
5
8
15
30
Using the While keyword, write a Loop clause that processes the loop body as long as the value in the intAge variable is greater than 21.
Loop While intAge > 21
Loop While intAge >= 21
Loop Until intAge > 21
Loop Until intAge >= 21
Using the Until keyword, write a Loop clause that stops the loop when the value in the strContinue variable contains the letter N (in either uppercase or lowercase).
Loop While strContinue.ToUpper = "N"
Loop While strContinue = "N"
Loop Until strContinue.ToUpper = "N"
Loop Until strContinue= "N"
