Deck 4: The Selection Structure
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
العب
ملء الشاشة (f)
Deck 4: The Selection Structure
1
The And operator always checks both conditions, while the AndAlso operator is not required to check both conditions.
True
2
The ToUpper() and ToLower() methods will temporarily convert a string to uppercase or lowercase respectively.
True
3
Comparison operators are always evaluated after arithmetic operators in a conditional expression.
True
4
The selection structure is used when you wish a program to make a decision or comparison in a program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
The value of the following expression 9 * 2 - 8 > 5 + 2 / 2 is true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
When coding a selection instruction in Visual Basic .NET the code that follows the Else statement are those instructions that will be executed when the condition is true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
A programmer must write the selection structure in such a way as to have either a true or false answer.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
The Not operator would make a True statement False, but would not make a False statement evaluate True.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
The oval symbol is used in a flowchart to represent the start and stop point.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
The conditional expression 3 + 3 < = 12 / 4 + 3 evaluates to false.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
An Xor logical operator is true if both conditions are true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
The conditional expression 4 * 6 / 2 > = 3 * 5 + 9 evaluates to false.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
The parallelogram is used in a flowchart for decision activities.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
The rectangle is used in a flowchart to represent both Input and Output activities.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
The conditional expression 9 * 2 / 6 > 12 / 3 / 2 evaluates to true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
An If selection structure contains two sets of instructions to be executed, one for the true condition and one for the false condition.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
The data validation process means that the data that has been validated and is within an acceptable range.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
When coding a selection instruction in Visual Basic .NET the code that follows the Then statement are those instructions that will be executed when the condition is false.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
The diamond symbol is used in a flowchart for a calculation task.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
The Or operator always checks both conditions, while the OrElse operator is not required to check both conditions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
Consider the expression 3 * 2 ^ 2 15 - 3. Which operation is performed second?
A) ^
B) /
C) *
D) +
A) ^
B) /
C) *
D) +
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
The following condition 2 * 3 + 1 > 1 * 2 + 3 OR 7 + 2 < 4 + 1 is false.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
The following expression 6 * 5 / 10 > 4 * 8 - 35 XOR 3 * 9 - 30 > 2 * 5 - 15 is true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
What is the value of the following expression: 9 * 2 - 8 > 5 + 2 / 2?
A) 10
B) 6
C) False
D) True
A) 10
B) 6
C) False
D) True
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
Consider the expression 3 * 2 ^ 2 15 - 3. Which operation is performed last?
A) ^
B) <
C) >
D) AndAlso
A) ^
B) <
C) >
D) AndAlso
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
Which of the following standard flowchart symbols is used for calculations?
A) Oval
B) Rectangle
C) Parallelogram
D) Diamond
A) Oval
B) Rectangle
C) Parallelogram
D) Diamond
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
Consider the expression 3 * 2 ^ 2 15 - 3. Which operation is performed first?
A) ^
B) /
C) *
D) +
A) ^
B) /
C) *
D) +
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
You can use the Catch statement to catch (or trap) an exception when it occurs in a program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
The method that will cause a message box to display on the screen is the ____ method.
A) Display
B) Visible
C) Show
D) Prompt
A) Display
B) Visible
C) Show
D) Prompt
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
The following expression 6 * 5 / 10 > 4 * 8 - 35 AND 3 * 9 - 30 > 2 * 5 - 15 is true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
To make a decision in the logic of a program you would use which of the following programming structures?
A) Sequence
B) Selection
C) Repetition
D) Control
A) Sequence
B) Selection
C) Repetition
D) Control
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
Which of the following operators is evaluated last in the following expression: 9 * 2 - 8 > 5 + 2 / 2?
A) -
B) +
C) >
D) *
A) -
B) +
C) >
D) *
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
Which of the following operators is evaluated first in the following expression: 9 * 2 - 8 > 5 + 2 / 2?
A) -
B) +
C) >
D) *
A) -
B) +
C) >
D) *
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
If a letter grade of "B" or "A" on a test is determined based upon the following grading scale, which expression would identify an individual earning a "B" or "A" based upon a variable score? 90-100 A 80- B 70- C 60- D 0- F
A) score = 80 Or score > 90
B) score > 80 And score >=90
C) score >= 80
D) score =80
A) score = 80 Or score > 90
B) score > 80 And score >=90
C) score >= 80
D) score =80
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
If a letter grade of "B" on a test is determined based upon the following grading scale, which of the following expressions would identify an individual earning a "B" based upon a variable score? 90-100 A 80- B 70- C 60- D 0- F
A) score = 80 Or score < 90
B) score > 80 And score <=90
C) score >= 80 And score < 90
D) score =80
A) score = 80 Or score < 90
B) score > 80 And score <=90
C) score >= 80 And score < 90
D) score =80
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
Which of the following standard flowchart symbols is used to mark the beginning and end of a flowchart?
A) Oval
B) Rectangle
C) Parallelogram
D) Diamond
A) Oval
B) Rectangle
C) Parallelogram
D) Diamond
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
Which of the following standard flowchart symbols is used to represent both selection and repetition?
A) Oval
B) Rectangle
C) Parallelogram
D) Diamond
A) Oval
B) Rectangle
C) Parallelogram
D) Diamond
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
The conditional expression 28 / 4 + 2 < ( 13 - 7) / 6 evaluates to false.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
Which of the following is used to express inequality?
A) >
B) <>
C) >=
D) <=
A) >
B) <>
C) >=
D) <=
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
Which of the following standard flowchart symbols is used for input/output activities?
A) Oval
B) Rectangle
C) Parallelogram
D) Diamond
A) Oval
B) Rectangle
C) Parallelogram
D) Diamond
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
When using the Visual Basic .NET Financial.Pmt function, Financial.Pmt(Rate, NPer, PV[,FV, Due]), which of the following is correct for a 7%, $10,000, 5 year loan with annual payments?
A) Financial.Pmt(.07, 5, 10000, 0, DueDate.EndOfPeriod)
B) Financial.Pmt(.07, 5, 10000, 0, DueDate.BegOfPeriod)
C) Financial.Pmt(.07/12, 5*12, 10000, 0, DueDate.EndOfPeriod)
D) Financial.Pmt(7, 5*12, 10000, 0, DueDate.EndOfPeriod)
A) Financial.Pmt(.07, 5, 10000, 0, DueDate.EndOfPeriod)
B) Financial.Pmt(.07, 5, 10000, 0, DueDate.BegOfPeriod)
C) Financial.Pmt(.07/12, 5*12, 10000, 0, DueDate.EndOfPeriod)
D) Financial.Pmt(7, 5*12, 10000, 0, DueDate.EndOfPeriod)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
The MessageBox.Show(text, caption, buttons, icon[, default button]) method displays a message box at runtime on your form. Which of the above arguments controls the words appearing in the message box?
A) text
B) caption
C) buttons
D) icons
A) text
B) caption
C) buttons
D) icons
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
The MessageBox.Show(text, caption, buttons, icon[, default button]) method displays a message box at runtime on your form. Which of the above arguments controls the words appearing on the message box title bar?
A) text
B) caption
C) buttons
D) icons
A) text
B) caption
C) buttons
D) icons
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
When using the Visual Basic .NET Financial.Pmt function, Financial.Pmt(Rate, NPer, PV[,FV, Due]), which of the following is correct for a 7%, $10,000, 5 year loan with monthly payments?
A) Financial.Pmt(.07, 5, 10000, 0, DueDate.EndOfPeriod)
B) Financial.Pmt(.07, 5, 10000, 0, DueDate.BegOfPeriod)
C) Financial.Pmt(.07/12, 5*12, 10000, 0, DueDate.EndOfPeriod)
D) Financial.Pmt(7, 5*12, 10000, 0, DueDate.EndOfPeriod)
A) Financial.Pmt(.07, 5, 10000, 0, DueDate.EndOfPeriod)
B) Financial.Pmt(.07, 5, 10000, 0, DueDate.BegOfPeriod)
C) Financial.Pmt(.07/12, 5*12, 10000, 0, DueDate.EndOfPeriod)
D) Financial.Pmt(7, 5*12, 10000, 0, DueDate.EndOfPeriod)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
The MessageBox.Show(text, caption, buttons, icon[, default button]) method displays a message box at runtime on your form. Which of the above arguments controls the symbol appearing in the message box?
A) text
B) caption
C) buttons
D) icon
A) text
B) caption
C) buttons
D) icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
The ____ property controls the placement of the text in a label control.
A) TextAlign
B) Centered
C) RightAdjust
D) LeftAdjust
A) TextAlign
B) Centered
C) RightAdjust
D) LeftAdjust
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
Which of the following events occurs when the control has focus and the user presses a key?
A) PressEnter
B) KeyEnter
C) KeyPress
D) FocusPress
A) PressEnter
B) KeyEnter
C) KeyPress
D) FocusPress
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
To prevent a text box from accepting inappropriate characters, you first use the e parameter's ____ property to determine the key that the user pressed.
A) KeyStruck
B) KeyEnter
C) KeyChar
D) KeyPress
A) KeyStruck
B) KeyEnter
C) KeyChar
D) KeyPress
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
In Visual Basic .NET, an error that occurs while a program is running is called a(n) ____.
A) logical error
B) exception
C) syntax error
D) constant
A) logical error
B) exception
C) syntax error
D) constant
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
You want to save for a world cruise when you retire. You will need $20,000, interest rates are 6%, and you plan on retiring in 20 years. Using the Visual Basic .NET Financial.Pmt function, Financial.Pmt(Rate, NPer, PV [,FV, Due]), which is correct for annual payments due today?
A) Financial.Pmt(.06, 20, 0, 20000, DueDate.EndOfPeriod)
B) Financial.Pmt(.06, 20, 0, 20000, DueDate.BegOfPeriod)
C) Financial.Pmt(.06.12, 20*12, 0, 20000, DueDate.EndOfPeriod)
D) Financial.Pmt(.06.12, 20*12, 0, 20000, DueDate.BegOfPeriod)
A) Financial.Pmt(.06, 20, 0, 20000, DueDate.EndOfPeriod)
B) Financial.Pmt(.06, 20, 0, 20000, DueDate.BegOfPeriod)
C) Financial.Pmt(.06.12, 20*12, 0, 20000, DueDate.EndOfPeriod)
D) Financial.Pmt(.06.12, 20*12, 0, 20000, DueDate.BegOfPeriod)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck