Deck 4: Decisions

ملء الشاشة (f)
exit full mode
سؤال
The operator And is a(n) ____________operator.

A) arithmetic
B) relational
C) logical
D) none of the above
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Which of the following is true?

A) "Cat" = "cat"
B) "Cat" < "cat"
C) "Cat" > "cat"
D) Relational operators are only valid for numeric values.
سؤال
Asc("A") is 65. What is displayed by txtBox.Text = Chr(65) & "BC"?

A) ABC
B) A BC
C) 656667
D) Not enough information is available.
سؤال
In Visual Basic, the letter j is considered to be greater than the letter y.
سؤال
Which value for x would make the following condition true: Not (x >= 5)

A) x is equal to 7
B) x is equal to 4
C) x is equal to 5.001
D) All of the above
سؤال
The And operator requires that both conditions be true for the compound condition to be true.
سؤال
The statement txtBox.Text = Chr(162) causes Visual Basic to display the cents symbol (ANSI 162) in the text box, regardless of the font in use.
سؤال
When using the logical operator "Or", what part of the expression must be true?

A) only the left part
B) only the right part
C) either the left or right part, but not both
D) either the left or right part
سؤال
The following two statements are equivalent.
Not (a < b)
a > b
سؤال
The condition "Y" = "y" is true.
سؤال
If two simple conditions are true, the compound condition created from them by the Or operator is also true.
سؤال
Asc("A") is 65. What is Asc("C")?

A) 66
B) 67
C) 68
D) "C"
سؤال
Which statement is false?

A) "Ford" >= "Ford"
B) "Chevy" <= "chevy"
C) "GMC" <= "GMC"
D) "Oldsmobile" < "Oldsmobile"
سؤال
Which value for x would make the following condition true: x >= 5

A) x is equal to 7
B) x is equal to 5
C) x is equal to 5.001
D) All of the above
سؤال
Which of the following is a valid Visual Basic conditional statement?

A) 2 < n < 5
B) 2 < n Or < 5
C) 2 < n Or 5
D) (2 < n) Or (n < 5)
سؤال
Which of the following expressions has as its value the words "Hello World" surrounded by quotation marks?

A) "Hello World"
B) Chr(34) & "Hello World"
C) Chr(34) & Hello World & Chr(34)
D) Chr(34) & "Hello World" & Chr(34)
سؤال
Which statement is true?

A) "Ford" < "Ford"
B) "Chevy" > "Chevy"
C) "GMC" <= "GMC"
D) "oldsmobile" < "Oldsmobile"
سؤال
The three main logical operators are____________ , _____________ , and ____________.

A) And, Or, Not
B) And, Not, If
C) Or, Not, If
D) False, And, True
سؤال
"1st Place" < "2nd Place"
سؤال
When is the expression "Not cond1" true?

A) when cond1 is false
B) when cond1 is true
C) when cond1 is either true or false
D) None of the above
سؤال
The following lines of code are correct.
If age >= 13 And < 20 Then
txtOutput.Text = "You are a teenager."
End If
سؤال
The value of "education".EndsWith("on") is True.
سؤال
Assume that A, B, and C are conditions, with A being true, B being true, and C being false. Give the truth value of (A And Not (B or C)).
سؤال
Given that x = 7, y = 2, and z = 4, the following If block will display "TRUE".
If (x > y) Or (y > z) Then txtBox.Text = "TRUE"
End If
سؤال
Assume that A, B, and C are conditions, with A being true, B being true, and C being false. Give the truth value of (Not (A And B)).
سؤال
Conditions can involve variables, operators, and functions.
سؤال
Given that x = 7, y = 2, and z = 4, the following If block will display "TRUE".
سؤال
Two strings are compared working from left to right, character by character, to determine which one should precede the other.
سؤال
The following condition evaluates to True.
"DOG" > "CAT") And ("CAT" > "BIRD") And ("BIRD" > "aardvark")
سؤال
The value of IsNumeric("$20.00") is True.
سؤال
Assume that A, B, and C are conditions, with A being true, B being true, and C being false. Give the truth value of (A And (Not B)).
سؤال
If two simple conditions are true, the compound condition created from them by the And operator is also true.
سؤال
Is the following condition True or False (assume a = 2, b = 3, and c = 3)? (a = c) Or (b = c)
سؤال
The value of IsNumeric("Twenty") is True.
سؤال
The value of "education".StartsWith("ED") is True.
سؤال
< and = are examples of relational operators.
سؤال
What will be the output of the following program when the button is clicked? Private Sub btnDisplay_Click(...) Handles btnDisplay.Click

Dim x,y,zx , y , z As Double
x=3x = 3
y=3y = 3
If x>yx > y Then
z=x+y\quad z = x + y
Else
z=yx\quad z = y - x
End If
txtBox. Text = CStr (z)( z )
End Sub

A) 6
B) 3
C) 0
D) No output
سؤال
What will be displayed by the following program when the button is clicked? Private Sub btnDisplay_Click (...) Handles btnDisplay.Click
Dim a,b,c,x\mathbf { a } , \mathbf { b } , \mathbf { c } , \mathbf { x } As Double
a=5\mathbf { a } = 5
b=3\mathbf { b } = 3
c=6\mathbf { c } = 6
If a>c\mathbf { a } > \mathrm { c } Then
x=1\quad \mathbf { x } = 1
Else
If b>c\mathbf { b } > \mathrm { c } Then
x=2\quad \mathbf { x } = 2
Else
x=3\quad \mathbf { x } = 3
\quad txtBox. Text = CStr (x)( \mathbf { x } )
End If
End If
End Sub

A) 1
B) 2
C) 3
D) None of the above
سؤال
When an If block has completed execution, the program instruction immediately following the If block is executed.
سؤال
The following lines of code are correct.
If (txtAge.Text >= 62) Then
txtOutput.Text = "You are elegible to collect Social Security."
End If
سؤال
No more than one ElseIf statement may occur in any one If block.
سؤال
No more than one Else statement may occur in any one If block.
سؤال
A variable declared inside an If block ceases to exist after the block is exited.
سؤال
The following line of code is valid.
سؤال
What will be displayed in the list box when the following code runs? SSelect Case num
Case 6, 7, 11
lstBox. Items . Add ("W")
Case Is <7< 7
lstBox. Items . Add ("X")
Case Is > 5
lstBox. Items . Add ("Y")
Case Else
ls tBox. Items . Add ("Z")
End Select

A) Z can never be displayed.
B) W, X and Y will be displayed if the value of num is 6.
C) W and Y will be displayed if the value of num is 7.
D) Z will always be displayed.
سؤال
One may use an If block within a Select Case block.
سؤال
In a Select Case block, if more than one Case clause matches the selector,

A) only the statements associated with the first matching Case clause will be executed.
B) all of the statements associated with each matching Case clause will be executed.
C) only the statements associated with the last matching Case clause will be executed.
D) the program will malfunction and stop.
سؤال
The Case Else part of a Select Case block is optional.
سؤال
A variable declared inside a Select Case block cannot be referred to by code outside of the block.
سؤال
Why is the following Select Case block invalid in Visual Basic? Select Case myName. Substring (0,1)( 0,1 )
Case myName << "D"
\quad txtBox. Text = "Your name starts with A, B, or C."
End Select

A) There should not be a standard conditional expression in a value list.
B) There are not enough Case statements.
C) There is no selector.
D) myName.Substring(0, 1) is not valid where it is.
سؤال
A single Case statement can contain multiple values.
سؤال
The following line of code is valid.
If 0 ? grade ? 100 Then
سؤال
One may use a Select Case block within an If block.
سؤال
Every Select Case block can be replaced by If blocks.
سؤال
Items in the value list must evaluate to a literal of the same type as the selector.
سؤال
Every If block must have a Then and an Else.
سؤال
What type of items are valid for use in the value list of a Case clause?

A) literals
B) variables
C) expressions
D) All of the above
سؤال
You can specify a range of values in a Case clause by using the To keyword.
سؤال
One may use a Select Case block within another Select Case block.
سؤال
Select Case choices are determined by the value of an expression called a selector.
سؤال
Which of the following techniques does NOT always toggle the checked and unchecked state of a check box control?

A) Click on the square or its caption with the mouse.
B) Press the spacebar when the square has the focus.
C) Press Alt+Access key (if an access key has been specified).
D) Set the Checked property equal to 1.
سؤال
A radio button named radButton is placed on a form, and the statement MessageBox.Show(radButton.Checked) is placed in its CheckedChanged event procedure. At run time, what result will be displayed in the message box when the user clicks on radButton?

A) 1
B) True
C) 2
D) False
سؤال
A collection of related radio buttons is usually placed in a_________ .

A) List box
B) Text box
C) Collection Editor
D) Group box
سؤال
Clicking on a checked check box unchecks the check box.
سؤال
What is the key difference between a group of check boxes attached to a group box and a group of radio buttons attached to a group box?

A) Only radio buttons can be toggled.
B) Only one radio button at a time can be checked.
C) Check boxes cannot be attached to a group box.
D) The only difference is the shape of the control.
سؤال
Clicking on a checked radio button unchecks the radio button.
سؤال
Which of the following statements turns on the radio button radButton?

A) radButton = True
B) radButton.On = True
C) radButton.Checked = True
D) radButton.Selected = True
سؤال
Which of the following techniques always toggles the "on" and "off" states of a radio button control?

A) Click on the circle or its caption with the mouse.
B) Press the spacebar when the circle has the focus.
C) Press on another radio button in the same group box.
D) Set the Checked property equal to True.
E) None of the above
سؤال
Which of the following is not commonly used to allow the user to select among several options?

A) a collection of radio buttons
B) a collection of check boxes
C) a list box
D) a collection of text boxes
سؤال
At design time, values can be placed into a list box via the _________.

A) String Editor
B) String Collection Editor
C) Collection Editor
D) Items Editor
سؤال
A check box control named chkFirst contains the following code in its CheckedChanged event procedure. Which of the following is true concerning the use of this control?
Dim message As String = "hello"
MessageBox.Show(message)

A) The message "hello" will appear when the user checks the control but not when it is unchecked.
B) The message "hello" will appear when the user unchecks the control but not when it is checked.
C) The message "hello" will appear when the user checks the control and again when it is unchecked.
D) The message "hello" will not appear using this code.
سؤال
The default event procedure for a list box is _________.

A) SelectedIndexChanged
B) Click
C) CheckedChanged
D) IndexChanged
سؤال
. The value of lstBox.Text is the currently selected item of the list box.
سؤال
Suppose there are four radio button controls attached to a group box control on a form. How many radio buttons can be selected (that is, be "on") at any given time?

A) 2
B) 1
C) 3
D) 4
سؤال
When the user clicks on a check box control at run time, which one of the following events is raised (in addition to the Click event)?

A) ControlAdded
B) Invalidated
C) StyleChanged
D) CheckedChanged
سؤال
The default event procedure for a check box is _________.

A) SelectedIndexChanged
B) Click
C) CheckedChanged
D) Checked
سؤال
When a check box is checked, the value of the Checked property will be

A) True.
B) False.
C) 1.
D) 0.
سؤال
The title (as seen by the user) for the group box control is set by which one of the following properties?

A) Text
B) Name
C) Tag
D) Anchor
سؤال
After several controls of the same type have been created, they can be moved inside a group box and thereby become attached to it.
سؤال
With a check box control, toggling the state of the small square raises the CheckChanged event.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/86
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 4: Decisions
1
The operator And is a(n) ____________operator.

A) arithmetic
B) relational
C) logical
D) none of the above
logical
2
Which of the following is true?

A) "Cat" = "cat"
B) "Cat" < "cat"
C) "Cat" > "cat"
D) Relational operators are only valid for numeric values.
B
3
Asc("A") is 65. What is displayed by txtBox.Text = Chr(65) & "BC"?

A) ABC
B) A BC
C) 656667
D) Not enough information is available.
A
4
In Visual Basic, the letter j is considered to be greater than the letter y.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
5
Which value for x would make the following condition true: Not (x >= 5)

A) x is equal to 7
B) x is equal to 4
C) x is equal to 5.001
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
6
The And operator requires that both conditions be true for the compound condition to be true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
7
The statement txtBox.Text = Chr(162) causes Visual Basic to display the cents symbol (ANSI 162) in the text box, regardless of the font in use.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
8
When using the logical operator "Or", what part of the expression must be true?

A) only the left part
B) only the right part
C) either the left or right part, but not both
D) either the left or right part
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
9
The following two statements are equivalent.
Not (a < b)
a > b
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
10
The condition "Y" = "y" is true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
11
If two simple conditions are true, the compound condition created from them by the Or operator is also true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
12
Asc("A") is 65. What is Asc("C")?

A) 66
B) 67
C) 68
D) "C"
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
13
Which statement is false?

A) "Ford" >= "Ford"
B) "Chevy" <= "chevy"
C) "GMC" <= "GMC"
D) "Oldsmobile" < "Oldsmobile"
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
14
Which value for x would make the following condition true: x >= 5

A) x is equal to 7
B) x is equal to 5
C) x is equal to 5.001
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
15
Which of the following is a valid Visual Basic conditional statement?

A) 2 < n < 5
B) 2 < n Or < 5
C) 2 < n Or 5
D) (2 < n) Or (n < 5)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
16
Which of the following expressions has as its value the words "Hello World" surrounded by quotation marks?

A) "Hello World"
B) Chr(34) & "Hello World"
C) Chr(34) & Hello World & Chr(34)
D) Chr(34) & "Hello World" & Chr(34)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
17
Which statement is true?

A) "Ford" < "Ford"
B) "Chevy" > "Chevy"
C) "GMC" <= "GMC"
D) "oldsmobile" < "Oldsmobile"
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
18
The three main logical operators are____________ , _____________ , and ____________.

A) And, Or, Not
B) And, Not, If
C) Or, Not, If
D) False, And, True
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
19
"1st Place" < "2nd Place"
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
20
When is the expression "Not cond1" true?

A) when cond1 is false
B) when cond1 is true
C) when cond1 is either true or false
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
21
The following lines of code are correct.
If age >= 13 And < 20 Then
txtOutput.Text = "You are a teenager."
End If
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
22
The value of "education".EndsWith("on") is True.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
23
Assume that A, B, and C are conditions, with A being true, B being true, and C being false. Give the truth value of (A And Not (B or C)).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
24
Given that x = 7, y = 2, and z = 4, the following If block will display "TRUE".
If (x > y) Or (y > z) Then txtBox.Text = "TRUE"
End If
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
25
Assume that A, B, and C are conditions, with A being true, B being true, and C being false. Give the truth value of (Not (A And B)).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
26
Conditions can involve variables, operators, and functions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
27
Given that x = 7, y = 2, and z = 4, the following If block will display "TRUE".
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
28
Two strings are compared working from left to right, character by character, to determine which one should precede the other.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
29
The following condition evaluates to True.
"DOG" > "CAT") And ("CAT" > "BIRD") And ("BIRD" > "aardvark")
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
30
The value of IsNumeric("$20.00") is True.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
31
Assume that A, B, and C are conditions, with A being true, B being true, and C being false. Give the truth value of (A And (Not B)).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
32
If two simple conditions are true, the compound condition created from them by the And operator is also true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
33
Is the following condition True or False (assume a = 2, b = 3, and c = 3)? (a = c) Or (b = c)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
34
The value of IsNumeric("Twenty") is True.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
35
The value of "education".StartsWith("ED") is True.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
36
< and = are examples of relational operators.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
37
What will be the output of the following program when the button is clicked? Private Sub btnDisplay_Click(...) Handles btnDisplay.Click

Dim x,y,zx , y , z As Double
x=3x = 3
y=3y = 3
If x>yx > y Then
z=x+y\quad z = x + y
Else
z=yx\quad z = y - x
End If
txtBox. Text = CStr (z)( z )
End Sub

A) 6
B) 3
C) 0
D) No output
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
38
What will be displayed by the following program when the button is clicked? Private Sub btnDisplay_Click (...) Handles btnDisplay.Click
Dim a,b,c,x\mathbf { a } , \mathbf { b } , \mathbf { c } , \mathbf { x } As Double
a=5\mathbf { a } = 5
b=3\mathbf { b } = 3
c=6\mathbf { c } = 6
If a>c\mathbf { a } > \mathrm { c } Then
x=1\quad \mathbf { x } = 1
Else
If b>c\mathbf { b } > \mathrm { c } Then
x=2\quad \mathbf { x } = 2
Else
x=3\quad \mathbf { x } = 3
\quad txtBox. Text = CStr (x)( \mathbf { x } )
End If
End If
End Sub

A) 1
B) 2
C) 3
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
39
When an If block has completed execution, the program instruction immediately following the If block is executed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
40
The following lines of code are correct.
If (txtAge.Text >= 62) Then
txtOutput.Text = "You are elegible to collect Social Security."
End If
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
41
No more than one ElseIf statement may occur in any one If block.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
42
No more than one Else statement may occur in any one If block.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
43
A variable declared inside an If block ceases to exist after the block is exited.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
44
The following line of code is valid.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
45
What will be displayed in the list box when the following code runs? SSelect Case num
Case 6, 7, 11
lstBox. Items . Add ("W")
Case Is <7< 7
lstBox. Items . Add ("X")
Case Is > 5
lstBox. Items . Add ("Y")
Case Else
ls tBox. Items . Add ("Z")
End Select

A) Z can never be displayed.
B) W, X and Y will be displayed if the value of num is 6.
C) W and Y will be displayed if the value of num is 7.
D) Z will always be displayed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
46
One may use an If block within a Select Case block.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
47
In a Select Case block, if more than one Case clause matches the selector,

A) only the statements associated with the first matching Case clause will be executed.
B) all of the statements associated with each matching Case clause will be executed.
C) only the statements associated with the last matching Case clause will be executed.
D) the program will malfunction and stop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
48
The Case Else part of a Select Case block is optional.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
49
A variable declared inside a Select Case block cannot be referred to by code outside of the block.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
50
Why is the following Select Case block invalid in Visual Basic? Select Case myName. Substring (0,1)( 0,1 )
Case myName << "D"
\quad txtBox. Text = "Your name starts with A, B, or C."
End Select

A) There should not be a standard conditional expression in a value list.
B) There are not enough Case statements.
C) There is no selector.
D) myName.Substring(0, 1) is not valid where it is.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
51
A single Case statement can contain multiple values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
52
The following line of code is valid.
If 0 ? grade ? 100 Then
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
53
One may use a Select Case block within an If block.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
54
Every Select Case block can be replaced by If blocks.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
55
Items in the value list must evaluate to a literal of the same type as the selector.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
56
Every If block must have a Then and an Else.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
57
What type of items are valid for use in the value list of a Case clause?

A) literals
B) variables
C) expressions
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
58
You can specify a range of values in a Case clause by using the To keyword.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
59
One may use a Select Case block within another Select Case block.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
60
Select Case choices are determined by the value of an expression called a selector.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
61
Which of the following techniques does NOT always toggle the checked and unchecked state of a check box control?

A) Click on the square or its caption with the mouse.
B) Press the spacebar when the square has the focus.
C) Press Alt+Access key (if an access key has been specified).
D) Set the Checked property equal to 1.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
62
A radio button named radButton is placed on a form, and the statement MessageBox.Show(radButton.Checked) is placed in its CheckedChanged event procedure. At run time, what result will be displayed in the message box when the user clicks on radButton?

A) 1
B) True
C) 2
D) False
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
63
A collection of related radio buttons is usually placed in a_________ .

A) List box
B) Text box
C) Collection Editor
D) Group box
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
64
Clicking on a checked check box unchecks the check box.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
65
What is the key difference between a group of check boxes attached to a group box and a group of radio buttons attached to a group box?

A) Only radio buttons can be toggled.
B) Only one radio button at a time can be checked.
C) Check boxes cannot be attached to a group box.
D) The only difference is the shape of the control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
66
Clicking on a checked radio button unchecks the radio button.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
67
Which of the following statements turns on the radio button radButton?

A) radButton = True
B) radButton.On = True
C) radButton.Checked = True
D) radButton.Selected = True
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
68
Which of the following techniques always toggles the "on" and "off" states of a radio button control?

A) Click on the circle or its caption with the mouse.
B) Press the spacebar when the circle has the focus.
C) Press on another radio button in the same group box.
D) Set the Checked property equal to True.
E) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
69
Which of the following is not commonly used to allow the user to select among several options?

A) a collection of radio buttons
B) a collection of check boxes
C) a list box
D) a collection of text boxes
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
70
At design time, values can be placed into a list box via the _________.

A) String Editor
B) String Collection Editor
C) Collection Editor
D) Items Editor
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
71
A check box control named chkFirst contains the following code in its CheckedChanged event procedure. Which of the following is true concerning the use of this control?
Dim message As String = "hello"
MessageBox.Show(message)

A) The message "hello" will appear when the user checks the control but not when it is unchecked.
B) The message "hello" will appear when the user unchecks the control but not when it is checked.
C) The message "hello" will appear when the user checks the control and again when it is unchecked.
D) The message "hello" will not appear using this code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
72
The default event procedure for a list box is _________.

A) SelectedIndexChanged
B) Click
C) CheckedChanged
D) IndexChanged
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
73
. The value of lstBox.Text is the currently selected item of the list box.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
74
Suppose there are four radio button controls attached to a group box control on a form. How many radio buttons can be selected (that is, be "on") at any given time?

A) 2
B) 1
C) 3
D) 4
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
75
When the user clicks on a check box control at run time, which one of the following events is raised (in addition to the Click event)?

A) ControlAdded
B) Invalidated
C) StyleChanged
D) CheckedChanged
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
76
The default event procedure for a check box is _________.

A) SelectedIndexChanged
B) Click
C) CheckedChanged
D) Checked
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
77
When a check box is checked, the value of the Checked property will be

A) True.
B) False.
C) 1.
D) 0.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
78
The title (as seen by the user) for the group box control is set by which one of the following properties?

A) Text
B) Name
C) Tag
D) Anchor
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
79
After several controls of the same type have been created, they can be moved inside a group box and thereby become attached to it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
80
With a check box control, toggling the state of the small square raises the CheckChanged event.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 86 في هذه المجموعة.