Lesson 3: Conditional Construct Flashcards

(12 cards)

1
Q

This is an important part of programming because it can solve practical problems intelligently and provide useful output to the user

A

Decision Making

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

are powerful tools that resemble mathematical operators. These operators allow a VB2010 program to compare data values and then decide what actions to take.

A

Conditional Operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

to execute an event or terminate an event. They are also known as __________.

A

Numerical Comparison Operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Sometimes we might need to make more than one comparisons. In this case, using numerical comparison operators alone is not sufficient, we need to use the ______ operators

A

Logical / Logical Operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Give examples of logical operators: (4)

A
  • And
  • Or
  • Xor
  • Not
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

When you use either the ___ operator or the ____operator to combine two subconditions, the resulting compound condition evaluates to True only when both subconditions are True.

A

And, AndAlso

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

the ____ operator or the ____ operator, the compound condition evaluates to True when either one or both of the subconditions is True. The compound condition evaluates to False only when both sub conditions are False.

A

Or, OrElse

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

We use this to effectively control the Visual Basic Program Flow. We should this control structure together with the conditional operators operators and logical operators.

A

If Control Structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the three types of If Control Structure?

A
  • If Then
  • If Then Else
  • If Then Elself
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

This is the simplest control structure which asks the computer to perform a certain action specified by the Visual Basic 2010 expression if the condition is true. However, when the condition is false, no action will be performed.

A

If Then Statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Using only If….Then the statement is not very useful in programming and it does not provide choices for the users. In order to provide a choice, we can use the _______ Statement.

A

If Then Else

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

If there are more than two alternative choices, using jus If….Then….Else statement will not be enough. In order to provide more choices, we can use the________ Statement. executed. The syntax for the if…then.. Else statement is

A

If Then Elself

How well did you know this?
1
Not at all
2
3
4
5
Perfectly