Self Review Exercises 4 Flashcards

1
Q

SRE 4

_____ refer(s) to the task of ordering an app’s statements correctly.

a) Actions
b) Program Control
c) Control Structures
d) Visual Programming

A

b) Program Control

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

SRE 4

A(n) _____ is a plan for solving a problem in terms of the actions to be executed and the order in which these actions are to be executed.

a) chart
b) control structure
c) algorithm
d) ordered list

A

c) algorithm

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

SRE 4

_____ is an informal language that helps you develop algorithms

a) Pseudocode
b) VB-speak
c) Notation
d) None of the above

A

a) Pseudocode

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

SRE 4

Pseudocode _______

a) usually describes only declarations
b) is executed on computers
c) usually describes only executable lines of code
d) usually describes declarations and executable lines of code

A

c) usually describes only executable lines of code

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

SRE 4

All Visual Basic Apps can be written in terms of _____ types of control structures

a) one
b) two
c) three
d) four

A

c) three

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

SRE 4

The process of app statements executing one after another in the order in which they are written is called _____.

a) transfer of control
b) sequential execution
c) workflow
d) None of the above

A

b) sequential execution

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

SRE 4

Which of the following If… Then… statements correctly displays that a student received an A on an exam if the score was 90 or above?

a) If studentGrade 90 Then
displayLabel.Text = “Student received an A”
End If
b) If studentGrade > 90 Then
displayLabel.Text = “Student received an A”
End If
c) if studentGrade = 90 Then
displayLabel.Text = “Student received an A”
End If
d) if studentGrade >= 90 Then
displayLabel.Text = “Student received an A”
End If

A

d) if studentGrade >= 90 Then
displayLabel.Text = “Student received an A”
End If

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

SRE 4

The symbol ____ is not a visual basic operator

a) *
b) ^
c) %
d) <>

A

c) %

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

SRE 4

If… Then… Else is a ____ selection statement

a) single
b) double
c) triple
d) nested

A

b) double

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

SRE 4

Placing an If… Then… Else statement inside another If…Then… Else statement is an example of

a) nesting If… Then… Else statements
b) stacking If… Then… Else statements
c) creating sequential If… Then… Else statements
d) None of the above

A

a) nesting If… Then… Else statements

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

SRE 4

The *= operator _______

a) squares the value of the right operand and stores the result in the left operand
b) adds the value of the right operand to the value of the left operand and stores the result in the left operand
c) creates a new variable and assigns the value of the right operand to that variable
d) multiplies the value of the left operand by the value of the right operand and stores the result in the left operand

A

d) multiplies the value of the left operand by the value of the right operand and stores the result in the left operand

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

SRE 4

If number is initialized with the value 5, what value will number contain after the expression number -=3 executes?

a) 3
b) 5
c) 7
d) 2

A

d) 2

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

SRE 4

Method String.Format is used to _______

a) create constants
b) control how text is formatted
c) format Visual Basic statements
d) All of the above

A

b) control how text is formatted

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

SRE 4

An app enters break mode when _____

a) Debug > Start is selected
b) a breakpoint is reached
c) there is a syntax error
d) Non of the above

A

b) a breakpoint is reached

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

SRE 4

The body of a Do… While… Loop statement executes ______

a) at least once
b) never
c) while its condition is true
d) while it’s condition is false

A

c) while its condition is true

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

SRE 4

The UML represents both the merge symbol and the decision symbol as ______

a) rectangles with rounded sides
b) diamonds
c) small black circles
d) ovals

A

b) diamonds

17
Q

SRE 4

Statements in the body of a Do Until… Loop execute repeatedly for as long as the ______ remains False

a) loop-continuation condition
b) do-loop condition
c) loop-termination condition
d) until-loop condition

A

c) loop-termination condition

18
Q

SRE 4

Counter-controlled repetition is also called ____ because the number of repetitions is known before the loops beings executing

a) definite repetition
b) known repetition
c) sequential repetition
d) counter repetition

A

a) definite repetition

19
Q

SRE 4

True or False: It’s difficult to convert pseudocode into a Visual Basic Program

A

False. Pseudocode normally converts easily into visual basic code

20
Q

SRE 4

True or False: Sequential execution refers to statements in a program that execute one after another

A

true

21
Q

SRE 4

True or False: The If… Then statement is called a single-selection statement

A

true

22
Q

SRE 4

True or False: Pseudocode closely remembers actual Visual Basic code

A

true

23
Q

SRE 4

True or False: The Do While statement is terminated with the keywords End While

A

False. It’s terminated with the keyword Loop