1 |
What does a compound condition use to join two condition? |
Relational operator
Logical operator
Relational Results
Logical results
|
2 |
An if statement inside the true block of another if statement is called: |
A nested if statement
A branched if statement
A conditional operator
A relational operator
|
3 |
Which of the following is NOT part of an if statement? |
A condition that evaluates as a Boolean
A condition that evaluates as true or false
A true block
All of are part of an IF statement
|
4 |
The conditional portion of the If statement can contain: |
Any valid constant
Any expression that can be evaluated to a Boolean value
Any valid variable
Any valid constant or vairable
|
5 |
__________ refers to group of statements enclosed in opening and closing braces. |
Control structure
Compound statement
Sequence structure
Instruction
|
6 |
In if statement , true is represented by: |
0
1
2
3
|
7 |
In if statement, false is represented by : |
0
1
2
3
|
8 |
____________ is used to specify two different choices with "if" statement. |
Switch
Else
If
If-else
|
9 |
Which of the following statements is the simplest form of a decision structure? |
Select..case
If statement
Try..Catch..Finally
Nested if
|
10 |
When a relational expression is false, it has the value __________ |
0
1
<0
S
|
11 |
The operators to compare operands and decide if the relation is true or false are: |
Arithmetic operators
Logical operators
Syntax operators
Relational operators
|
12 |
You can use a decision statement to: |
Run a series of statements if a test fails
Test series of conditions
Test whether a condition is true or false
All of these
|
13 |
Relational operators allow you to _____________ numbers. |
Compare
Add
Multiply
Divide
|
14 |
An expression that uses a relational operator is known as: |
Operational
Sequential
Serial
Relational
|
15 |
Which programming structure makes a comparison? |
Relation
Decision
Sequence
Repitition
|
16 |
Another term for a computer making a decision is: |
Sequential
Selection
Repetition
Iteration
|
17 |
Which programming structure executes program statements in order? |
Relation
Decision
Sequence
Repition
|