Questions
Question 1 Multiple Choice (Single Answer)
The End If statement is required:
- in all If...Then statements.
- in all Multi-line statements with Else.
- in Single Line statements.
- Both a and b.
- All of the above.
Question 2 Multiple Choice (Single Answer)
Which selection process is an example of multiple branches from a single expression?
- If...Then
- Select Case
- Do...Loop
- For...Next
- All of the above.
Question 3 Multiple Choice (Single Answer)
How many times is the test expression of a Select Case evaluated?
- 1
- 2
- Once for each Case.
- It depends on the value of the test expression.
Question 4 Multiple Choice (Single Answer)
Which is not a type of Select Case test construct?
- simple value
- complex value
- relational value with Is
- range of values with To
- All of the above are types of test constructs.
Question 5 Multiple Choice (Single Answer)
What happens in a Select Case construct when a test value matches the test expression?
- The corresponding block of statements is run.
- The next Case test value is checked.
- The Case Else statement is run.
- The Select Case construct is exited.
- An error is generated.
Question 6 Multiple Choice (Single Answer)
Do...Loop is an iterative statement because it:
- selects a block of statements to run.
- runs the same block of statements repeatedly.
- selects a block of statements and runs it repeatedly.
- selects a block of statements and runs it a specified number of times.
- All of the above.
Question 7 Multiple Choice (Single Answer)
Which is true of a Do...Loop?
- The While condition goes after the Do keyword.
- The Until condition goes after the Do keyword.
- The While condition goes after the Loop keyword.
- The Until condition goes after the Loop keyword.
- All of the above.
Question 8 Multiple Choice (Single Answer)
Which Do...Loop statement should be used to process test scores where a test score over 100 is a signal to stop the processing?
- Do While Score > 100
- Do Until Score > 100
- Loop While Score > 100
- Loop Until Score > 100
- All of the above are valid for this situation.
Question 9 Multiple Choice (Single Answer)
In the For...Next statement the default value for the Step is:
- -1
- 1
- 2
- There is no default for the step value.
Question 10 Multiple Choice (Single Answer)
The For...Next Loop is used when:
- a choice is made based on a Boolean condition.
- a block of statements is executed an unknown number of times.
- a block of statements is executed a known number of times.
- Both a and b.
- All of the above.