Deck 4: Introduction to Problem Solving and Control Statements

Full screen (f)
exit full mode
Question
Which of the following is true?

A)Pseudocode is used to specify the variables needed by the program.
B)Pseudocode compiles into machine code.
C)Pseudocode is used to describe executable statements that will eventually be translated by the programmer into a program.
D)Pseudocode is executed on a computer.
Use Space or
up arrow
down arrow
to flip the card.
Question
Pseudocode must be written in an editor capable of understanding it and the language to which it pertains.
Question
What kind of language is pseudocode?

A)a hybrid language of all .NET languages
B)an informal language used to develop algorithms
C)a language used to translate from C++ to Visual Basic
D)None of the above.
Question
A transfer of control occurs when:

A)a program changes from input to output,or vice versa
B)a logic error occurs in a program
C)a statement other than the next sequential one in the program executes
D)None of the above.
Question
Program control is best defined as:

A)the degree of control a program has over the computer on which it's executed
B)the line of code that is executing at a given time
C)the order in which a series of statements is executed
D)None of the above.
Question
The three types of selection statements are:

A)If…Then,For…Next and Select…Case
B)If…Then,For…Next and Select…Case
C)If…Then,If…Then…Else and While
D)If…Then,If…Then…Else and Select…Case
Question
With sequential execution,statements execute one after the other in the order in which they appear in the program.
Question
Pseudocode is most comparable to which of the following languages?

A)Visual Basic
B)C#
C)Java
D)English
Question
Pseudocode helps you conceptualize a program during the design process.
Question
Which of the following is a double-selection control statement?

A)Do While…Loop
B)For…Next
C)If…Then…Else
D)If…Then
Question
An algorithm specifies only the order in which to solve a problem.
Question
Programs can be written,compiled and executed with pseudocode.
Question
Control statements cannot be placed inside other control statements.
Question
The order of actions in an algorithm is irrelevant.
Question
Which of the following is not an algorithm?

A)a recipe
B)the instructions for assembling a bicycle.
C)a textbook index
D)shampooing instructions (lather,scalp message,rinse)
Question
Which of the following is a type of control structure?

A)declaration structure
B)repetition structure
C)flow structure
D)All of the above.
Question
What is an algorithm?

A)a specification of a series of actions and the order in which those actions should be performed to solve a particular problem
B)an English description of a problem to be solved
C)the process of converting between data types
D)None of the above.
Question
Which of the following are examples of control statements?

A)If…Then
B)If…Then…Else
C)While…End While
D)All of the above
Question
Pseudocode normally describes only executable statements.
Question
Which statement is false?

A)Unless directed otherwise,the computer executes statements one after the other in the order in which they're written.
B)UML activity diagrams normally show the Visual Basic code that implements the activity.
C)Like pseudocode,activity diagrams help programmers develop and represent algorithms.
D)The arrows in the activity diagram represent transitions,which indicate the order in which the actions represented by the action states occur.
Question
A decision symbol in an activity diagram takes the shape of a ________.

A)diamond
B)rectangle
C)circle
D)question mark
Question
Which of the following loop-continuation conditions would cause a While…End While statement to stop executing?

A)3 <= 11
B)7 > 14
C)6 <> 9
D)All of the above.
Question
None of the guard conditions associated with a decision symbol may be false.
Question
A While…End While statement allows the programmer to specify that an action should repeat while:

A)a specific condition remains False
B)a specific condition remains True
C)a specific condition remains either True or False
D)None of the above.
Question
A Do Until…Loop structure allows you to specify that an action should repeat until:

A)a specific condition becomes true
B)a specific condition becomes false
C)a specific condition becomes either true or false
D)None of the above
Question
The If…Then statement is a single-repetition statement.
Question
If…Then…Else selection statement allows you to specify that a different action (or sequence of actions)be performed when the condition is true than when the condition is false.
Question
The Do While…Loop statement behaves like a While…End While statement except _________.

A)The Do While…Loop statement will execute the body once before checking the condition.
B)The Do While…Loop statement will execute the body once more after the loop terminates.
C)a and b
D)nothing (there is no difference)
Question
What is output in the GUI by the following Visual Basic code segment? <strong>What is output in the GUI by the following Visual Basic code segment?  </strong> A)This porridge is too hot. B)This porridge is too cold. C)This porridge is just right! D)None of the above. <div style=padding-top: 35px>

A)This porridge is too hot.
B)This porridge is too cold.
C)This porridge is just right!
D)None of the above.
Question
What marks the end of a Do While…Loop repetition statement?

A)End While
B)End Do While
C)Loop
D)End Loop
Question
If…Then…Else statements may be stacked but not nested.
Question
In an activity diagram,the merge symbol has the same shape as what other symbol?

A)decision symbol
B)action symbol
C)transition arrows
D)initial state
Question
Which of the following is not included in an activity diagram for a control structure?

A)transition arrows
B)attributes
C)action states
D)decision symbols
Question
Failure to provide the body of a Do Until…Loop structure with an action that eventually causes the condition to become false creates an infinite loop.
Question
If…Then is a _________ statement.

A)restricted
B)selection
C)repetition
D)unrestricted
Question
What capability does the If…Then…Else statement provide that the If…Then statement does not?

A)the ability to execute different actions when the condition is True or False
B)the ability to nest structures
C)the ability to stack structures
D)None of the above.
Question
A repetition statement allows you to specify that an action should be repeated,depending on the value of:

A)a statement
B)a variable
C)a control structure
D)a condition
Question
The If…Then selection statement performs an action if a condition is true or skips the action if the condition is false
Question
What marks the end of the Do Until repetition statement?

A)End Until
B)End Do Until
C)Loop
D)End Loop
Question
What is output in the GUI by the following Visual Basic code segment? <strong>What is output in the GUI by the following Visual Basic code segment?  </strong> A)This porridge is too cold! This porridge is just right! B)This porridge is too hot! This porridge is just right! C)This porridge is just right! D)None of the above. <div style=padding-top: 35px>

A)This porridge is too cold! This porridge is just right!
B)This porridge is too hot! This porridge is just right!
C)This porridge is just right!
D)None of the above.
Question
What does the expression x \= 10 do?

A)Multiplies 10 by the value of x,and stores the result in x.
B)Divides x by 10 and stores the remainder in x.
C)Divides x by 10 and stores the integer result in x.
D)None of the above.
Question
The Do While…Loop statement behaves differently than the While…End While statement.
Question
Placing a space character between the symbols that compose an abbreviated arithmetic assignment operator improves readability.
Question
If a While…End While statement's condition is initially false,the body statement(s)are not performed.
Question
To place a new item in a ListBox,call the Items property's Add method.
Question
a - = 3 can also be represented by the expression a = a - 3.
Question
For a ListBox,calling the Items property's __________ method removes all the items in the ListBox.

A)Clear
B)Empty
C)Remove
D)Delete
Question
The expression d *= 4 is an abbreviation for:

A)d = 4d
B)d * 4 = d
C)d = d * 4
D)d * d = 4
Question
Which statement is true?

A)Dividing two integers results in an integer answer.
B)With integer division,any fractional part of the calculation is lost.
C)With integer division of float values,the numerator and denominator are rounded before the calculation.
D)All of the above.
Question
A ListBox's __________ property keeps track of the values in the ListBox.

A)Items
B)Values
C)Entries
D)List
Question
Because the condition of a While…End While statement is before the body,the body is executed only once after the condition becomes false.
Question
A Form's default Button is the one that will be pressed when the user presses the Enter key and is specified by setting the Form's __________ property to the appropriate Button.

A)DefaultButton
B)SetButton
C)AcceptButton
D)EnterButton
Question
Variables that store totals should typically be initialized to zero before being used in a program.
Question
When the number of repetitions is known before a loop begins executing,it is most appropriate to use____________________ .

A)definite repetition
B)infinite repetition
C)total repetition
D)None of the above.
Question
Which of the following correctly represents the expression a = a + 3?

A)3a
B)a += 3
C)a + 3
D)None of the above.
Question
How many times is the body of the loop below executed? <strong>How many times is the body of the loop below executed?  </strong> A)19 B)20 C)21 D)0 <div style=padding-top: 35px>

A)19
B)20
C)21
D)0
Question
A__________________ can be used in a repetition structure to control the number of times a set of statements will execute.

A)declaration
B)counter
C)controller
D)None of the above.
Question
Counter-controlled repetition is also known as:

A)definite repetition
B)indefinite repetition
C)multiple-repetition structure
D)double-repetition structure
Question
The Do Until…Loop repetition structure tests a condition for falsity for repetition to continue.
Question
Calling a control's Activate method makes the control the active control-the one that will respond to the user's interactions.
Question
Local variables must be ________.

A)initialized when they are declared.
B)initialized before their values are used in an expression.
C)declared and initialized in two steps.
D)declared at the top of the method.
Question
Using top-down,stepwise refinement properly results in pseudocode that can be naturally evolved into a Visual Basic program.
Question
To execute a program one statement at a time without entering the code of a called method,use the debugger's__________ command.

A)Step Under
B)Step Over
C)Step Into
D)Step Out Of
Question
Integer division may yield a non-integer result.
Question
The off-by-one syntax error is frequently caused by using an incorrect relational operator in a loop's condition.
Question
When you know how many times a loop will execute in advance,a _______ loop should be used.

A)sentinel
B)infinite
C)counter-controlled
D)None of the above.
Question
Logic errors prevent a program from compiling successfully and can cause a running program to produce incorrect results.
Question
Which of the following is not a debugger feature?

A)examining and setting variable values
B)watching the values of variables and expressions
C)viewing the order in which methods are called
D)locating syntax errors
Question
Having many levels of nesting improves program readability.
Question
The phrase nested control statement refers to a control statement:

A)above a control statement
B)within a control statement
C)below a control statement
D)beside a control statement
Question
Counter-controlled repetition is often called definite repetition because the number of repetitions is known before the loop begins executing.
Question
What is typically the most difficult part of solving a problem on a computer?

A)deciding what problem needs to be solved
B)developing the algorithm for the solution
C)producing a program from the algorithm
D)None of the above.
Question
Which statement is true?

A)An If…Then statement cannot be nested inside a While statement.
B)An If…Then statement cannot be nested inside an If…Then statement.
C)A While statement cannot be nested inside an If…Then statement.
D)None of the above.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/73
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 4: Introduction to Problem Solving and Control Statements
1
Which of the following is true?

A)Pseudocode is used to specify the variables needed by the program.
B)Pseudocode compiles into machine code.
C)Pseudocode is used to describe executable statements that will eventually be translated by the programmer into a program.
D)Pseudocode is executed on a computer.
C
2
Pseudocode must be written in an editor capable of understanding it and the language to which it pertains.
False
3
What kind of language is pseudocode?

A)a hybrid language of all .NET languages
B)an informal language used to develop algorithms
C)a language used to translate from C++ to Visual Basic
D)None of the above.
B
4
A transfer of control occurs when:

A)a program changes from input to output,or vice versa
B)a logic error occurs in a program
C)a statement other than the next sequential one in the program executes
D)None of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
5
Program control is best defined as:

A)the degree of control a program has over the computer on which it's executed
B)the line of code that is executing at a given time
C)the order in which a series of statements is executed
D)None of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
6
The three types of selection statements are:

A)If…Then,For…Next and Select…Case
B)If…Then,For…Next and Select…Case
C)If…Then,If…Then…Else and While
D)If…Then,If…Then…Else and Select…Case
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
7
With sequential execution,statements execute one after the other in the order in which they appear in the program.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
8
Pseudocode is most comparable to which of the following languages?

A)Visual Basic
B)C#
C)Java
D)English
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
9
Pseudocode helps you conceptualize a program during the design process.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
10
Which of the following is a double-selection control statement?

A)Do While…Loop
B)For…Next
C)If…Then…Else
D)If…Then
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
11
An algorithm specifies only the order in which to solve a problem.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
12
Programs can be written,compiled and executed with pseudocode.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
13
Control statements cannot be placed inside other control statements.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
14
The order of actions in an algorithm is irrelevant.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following is not an algorithm?

A)a recipe
B)the instructions for assembling a bicycle.
C)a textbook index
D)shampooing instructions (lather,scalp message,rinse)
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following is a type of control structure?

A)declaration structure
B)repetition structure
C)flow structure
D)All of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
17
What is an algorithm?

A)a specification of a series of actions and the order in which those actions should be performed to solve a particular problem
B)an English description of a problem to be solved
C)the process of converting between data types
D)None of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
18
Which of the following are examples of control statements?

A)If…Then
B)If…Then…Else
C)While…End While
D)All of the above
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
19
Pseudocode normally describes only executable statements.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
20
Which statement is false?

A)Unless directed otherwise,the computer executes statements one after the other in the order in which they're written.
B)UML activity diagrams normally show the Visual Basic code that implements the activity.
C)Like pseudocode,activity diagrams help programmers develop and represent algorithms.
D)The arrows in the activity diagram represent transitions,which indicate the order in which the actions represented by the action states occur.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
21
A decision symbol in an activity diagram takes the shape of a ________.

A)diamond
B)rectangle
C)circle
D)question mark
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
22
Which of the following loop-continuation conditions would cause a While…End While statement to stop executing?

A)3 <= 11
B)7 > 14
C)6 <> 9
D)All of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
23
None of the guard conditions associated with a decision symbol may be false.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
24
A While…End While statement allows the programmer to specify that an action should repeat while:

A)a specific condition remains False
B)a specific condition remains True
C)a specific condition remains either True or False
D)None of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
25
A Do Until…Loop structure allows you to specify that an action should repeat until:

A)a specific condition becomes true
B)a specific condition becomes false
C)a specific condition becomes either true or false
D)None of the above
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
26
The If…Then statement is a single-repetition statement.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
27
If…Then…Else selection statement allows you to specify that a different action (or sequence of actions)be performed when the condition is true than when the condition is false.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
28
The Do While…Loop statement behaves like a While…End While statement except _________.

A)The Do While…Loop statement will execute the body once before checking the condition.
B)The Do While…Loop statement will execute the body once more after the loop terminates.
C)a and b
D)nothing (there is no difference)
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
29
What is output in the GUI by the following Visual Basic code segment? <strong>What is output in the GUI by the following Visual Basic code segment?  </strong> A)This porridge is too hot. B)This porridge is too cold. C)This porridge is just right! D)None of the above.

A)This porridge is too hot.
B)This porridge is too cold.
C)This porridge is just right!
D)None of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
30
What marks the end of a Do While…Loop repetition statement?

A)End While
B)End Do While
C)Loop
D)End Loop
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
31
If…Then…Else statements may be stacked but not nested.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
32
In an activity diagram,the merge symbol has the same shape as what other symbol?

A)decision symbol
B)action symbol
C)transition arrows
D)initial state
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
33
Which of the following is not included in an activity diagram for a control structure?

A)transition arrows
B)attributes
C)action states
D)decision symbols
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
34
Failure to provide the body of a Do Until…Loop structure with an action that eventually causes the condition to become false creates an infinite loop.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
35
If…Then is a _________ statement.

A)restricted
B)selection
C)repetition
D)unrestricted
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
36
What capability does the If…Then…Else statement provide that the If…Then statement does not?

A)the ability to execute different actions when the condition is True or False
B)the ability to nest structures
C)the ability to stack structures
D)None of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
37
A repetition statement allows you to specify that an action should be repeated,depending on the value of:

A)a statement
B)a variable
C)a control structure
D)a condition
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
38
The If…Then selection statement performs an action if a condition is true or skips the action if the condition is false
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
39
What marks the end of the Do Until repetition statement?

A)End Until
B)End Do Until
C)Loop
D)End Loop
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
40
What is output in the GUI by the following Visual Basic code segment? <strong>What is output in the GUI by the following Visual Basic code segment?  </strong> A)This porridge is too cold! This porridge is just right! B)This porridge is too hot! This porridge is just right! C)This porridge is just right! D)None of the above.

A)This porridge is too cold! This porridge is just right!
B)This porridge is too hot! This porridge is just right!
C)This porridge is just right!
D)None of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
41
What does the expression x \= 10 do?

A)Multiplies 10 by the value of x,and stores the result in x.
B)Divides x by 10 and stores the remainder in x.
C)Divides x by 10 and stores the integer result in x.
D)None of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
42
The Do While…Loop statement behaves differently than the While…End While statement.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
43
Placing a space character between the symbols that compose an abbreviated arithmetic assignment operator improves readability.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
44
If a While…End While statement's condition is initially false,the body statement(s)are not performed.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
45
To place a new item in a ListBox,call the Items property's Add method.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
46
a - = 3 can also be represented by the expression a = a - 3.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
47
For a ListBox,calling the Items property's __________ method removes all the items in the ListBox.

A)Clear
B)Empty
C)Remove
D)Delete
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
48
The expression d *= 4 is an abbreviation for:

A)d = 4d
B)d * 4 = d
C)d = d * 4
D)d * d = 4
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
49
Which statement is true?

A)Dividing two integers results in an integer answer.
B)With integer division,any fractional part of the calculation is lost.
C)With integer division of float values,the numerator and denominator are rounded before the calculation.
D)All of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
50
A ListBox's __________ property keeps track of the values in the ListBox.

A)Items
B)Values
C)Entries
D)List
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
51
Because the condition of a While…End While statement is before the body,the body is executed only once after the condition becomes false.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
52
A Form's default Button is the one that will be pressed when the user presses the Enter key and is specified by setting the Form's __________ property to the appropriate Button.

A)DefaultButton
B)SetButton
C)AcceptButton
D)EnterButton
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
53
Variables that store totals should typically be initialized to zero before being used in a program.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
54
When the number of repetitions is known before a loop begins executing,it is most appropriate to use____________________ .

A)definite repetition
B)infinite repetition
C)total repetition
D)None of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
55
Which of the following correctly represents the expression a = a + 3?

A)3a
B)a += 3
C)a + 3
D)None of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
56
How many times is the body of the loop below executed? <strong>How many times is the body of the loop below executed?  </strong> A)19 B)20 C)21 D)0

A)19
B)20
C)21
D)0
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
57
A__________________ can be used in a repetition structure to control the number of times a set of statements will execute.

A)declaration
B)counter
C)controller
D)None of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
58
Counter-controlled repetition is also known as:

A)definite repetition
B)indefinite repetition
C)multiple-repetition structure
D)double-repetition structure
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
59
The Do Until…Loop repetition structure tests a condition for falsity for repetition to continue.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
60
Calling a control's Activate method makes the control the active control-the one that will respond to the user's interactions.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
61
Local variables must be ________.

A)initialized when they are declared.
B)initialized before their values are used in an expression.
C)declared and initialized in two steps.
D)declared at the top of the method.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
62
Using top-down,stepwise refinement properly results in pseudocode that can be naturally evolved into a Visual Basic program.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
63
To execute a program one statement at a time without entering the code of a called method,use the debugger's__________ command.

A)Step Under
B)Step Over
C)Step Into
D)Step Out Of
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
64
Integer division may yield a non-integer result.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
65
The off-by-one syntax error is frequently caused by using an incorrect relational operator in a loop's condition.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
66
When you know how many times a loop will execute in advance,a _______ loop should be used.

A)sentinel
B)infinite
C)counter-controlled
D)None of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
67
Logic errors prevent a program from compiling successfully and can cause a running program to produce incorrect results.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
68
Which of the following is not a debugger feature?

A)examining and setting variable values
B)watching the values of variables and expressions
C)viewing the order in which methods are called
D)locating syntax errors
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
69
Having many levels of nesting improves program readability.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
70
The phrase nested control statement refers to a control statement:

A)above a control statement
B)within a control statement
C)below a control statement
D)beside a control statement
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
71
Counter-controlled repetition is often called definite repetition because the number of repetitions is known before the loop begins executing.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
72
What is typically the most difficult part of solving a problem on a computer?

A)deciding what problem needs to be solved
B)developing the algorithm for the solution
C)producing a program from the algorithm
D)None of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
73
Which statement is true?

A)An If…Then statement cannot be nested inside a While statement.
B)An If…Then statement cannot be nested inside an If…Then statement.
C)A While statement cannot be nested inside an If…Then statement.
D)None of the above.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 73 flashcards in this deck.