Question 1 The logical OR operator can be compared to ____ in terms of precedenc
ID: 3622342 • Letter: Q
Question
Question 1
The logical
OR
operator can be compared to ____ in terms of precedence.
Answer
addition
subtraction
multiplication
division
Question 2
The ____ loop provides three actions in one compact statement.
Answer
for
while
do until
repeat
Question 3
When declaring a variable in languages such as C++, Java and C#, the ____ must be identified.
Answer
variable name only
variable data type only
variable name and data type
variable name, data type, and purpose
Question 4
____ is the process of paying attention to important properties while ignoring nonessential details.
Answer
Abstraction
Modularization
Reusability
Direction
Question 5
The last step in a loop is usually ____.
Answer
compare the variable to a value that determines if the loop stops or continues
initialize the variable
increment the variable
perform the loop action
Question 6
You can design a printed report on a ____.
Answer
printer layout space
print performance chart
print character layout
printer spacing chart
Question 7
Once a program enters the body of a structured loop, ____.
Answer
the entire loop must execute
the loop can be terminated with a break statement
the loop will execute indefinitely
a decision statement will be evaluated
Question 8
The statement
print questionCounter
will be executed ____ times.
num PARTS = 5
num QUESTIONS = 3
partCounter = 1
while partCounter <= PARTS
questionCounter = 1
while questionCounter <= QUESTIONS
print questionCounter
questionCounter = questionCounter + 1
endwhile
partCounter = partCounter + 1
endwhile
Answer
0
3
5
15
Question 9
Providing array values is called ____.
Answer
creating the array
declaring the array
accumulating the array
populating the array
Question 10
The pseudocode that produces the same result as the following is ____.
if customerAge >= 65 then
discount = 0.10
else
discount = 0
endif
Answer
if customerAge > 65 then
discount = 0.10
else
discount = 0
endif
if customerAge < 65 then
discount = 0.10
else
discount = 0
endif
if customerAge > 65 then
discount = 0
else
discount = 0.10
endif
if customerAge < 65 then
discount = 0
else
discount = 0.10
endif
Question 11
Assume that out of 1,000 salespeople, 900 sell more than three items in a pay period, and only 500 sell items valued at $1000 or more. How many total questions must be asked in the following pseudocode to evaluate bonuses for 1000 salespeople?
if itemsSold > 3 then
if valueSold >= 1000 then
bonusGiven = BONUS
endif
endif
Answer
100
900
1000
1900
Question 12
Some business reports list no individual detail records, just totals or other overall statistics such as averages. Such reports are called ____________________ reports.
Answer
Question 13
In a ____ loop, the body of the loop will always execute at least once.
Answer
for
while
do until
repeat
Question 14
When a program or module uses another module, you can refer to the main program as the ____ program.
Answer
director
calling
called
parent
Question 15
The statement that is true of step values is that ____.
Answer
the step value is always 1
the default step value in every programming language is 1
the step value is a number used to increase a loop control variable
a step value is specified when the loop control value should incremented by 1
Question 16
Which of the following is not a step that must occur in every loop?
Answer
Initialize a loop control variable.
Set the loop control value equal to a sentinel.
Compare the loop control value to a sentinel.
Alter the loop control variable.
Question 17
The following pseudocode is an example of ____.
do stepA
do stepB
if conditionC is true then
do stepD
else
do stepE
endif
while conditionF is true
do stepG
endwhile
Answer
nesting
stacking
single alternative structures
a posttest
Question 18
Suppose a program will read 100 data records, and you read the first data record in a statement that is separate from the other 99. This is called a ____ read.
Answer
nested
stacked
posttest
priming
Question 19
The following pseudocode is an example of a(n) ____ structure:
if firstNumber is bigger than secondNumber then
print firstNumber
else
print secondNumber
Answer
sequence
decision
loop
nested
Question 20
The heart of the programming process lies in planning the program’s ____________________.
Answer
Question 21
The following pseudocode is an example of a(n) ____ structure:
get firstNumber
get secondNumber
add firstNumber and secondNumber
print result
Answer
sequence
decision
loop
nested
Question 22
The ____ of documentation is typically written first.
Answer
input
output
internal program
external program
Question 23
In a structured loop, after the tasks execute within the loop, the flow of logic must return directly to the ____________________.
Answer
Question 24
The following pseudocode might be rewritten using a(n) ____ structure:
if class = "Freshman" then
tuitionFee = 75
else
if class = "Sophomore" then
tuitionFee = 50
else
if class = "Junior" then
tuitionFee = 30
else
tuitionFee = 10
endif
endif
endif
Answer
if-then-else
case
while
do while
Question 25
In a ____ loop, the loop body continues to execute as long as the answer to the controlling question is yes, or true.
Answer
do-then
do-when
do-until
do-while
.
Explanation / Answer
please rate - thanks
here is my best shot
Question 1
The logical
OR
operator can be compared to ____ in terms of precedence.
Answer
addition
subtraction
multiplication
division
precedence is NOT AND OR I'm not sure which it would be since it's the lowest, and in the above addition and subtraction are the lowesr
Question 2
The ____ loop provides three actions in one compact statement.
Answer
for
while
do until
repeat
Question 3
When declaring a variable in languages such as C++, Java and C#, the ____ must be identified.
Answer
variable name only
variable data type only
variable name and data type
variable name, data type, and purpose
Question 4
____ is the process of paying attention to important properties while ignoring nonessential details.
Answer
Abstraction
Modularization
Reusability
Direction
Question 5
The last step in a loop is usually ____.
Answer
compare the variable to a value that determines if the loop stops or continues
initialize the variable
increment the variable
perform the loop action
Question 6
You can design a printed report on a ____.
Answer
printer layout space
print performance chart
print character layout
printer spacing chart
Question 7
Once a program enters the body of a structured loop, ____.
Answer
the entire loop must execute
the loop can be terminated with a break statement
the loop will execute indefinitely
a decision statement will be evaluated
Question 8
The statement
print questionCounter
will be executed ____ times.
num PARTS = 5
num QUESTIONS = 3
partCounter = 1
while partCounter <= PARTS
questionCounter = 1
while questionCounter <= QUESTIONS
print questionCounter
questionCounter = questionCounter + 1
endwhile
partCounter = partCounter + 1
endwhile
Answer
0
3
5
15
Question 9
Providing array values is called ____.
Answer
creating the array
declaring the array
accumulating the array
populating the array
Question 10
The pseudocode that produces the same result as the following is ____.
if customerAge >= 65 then
discount = 0.10
else
discount = 0
endif
Answer
if customerAge > 65 then
discount = 0.10
else
discount = 0
endif
if customerAge < 65 then
discount = 0.10
else
discount = 0
endif
if customerAge > 65 then
discount = 0
else
discount = 0.10
endif
if customerAge < 65 then
discount = 0
else
discount = 0.10
endif
Question 11
Assume that out of 1,000 salespeople, 900 sell more than three items in a pay period, and only 500 sell items valued at $1000 or more. How many total questions must be asked in the following pseudocode to evaluate bonuses for 1000 salespeople?
if itemsSold > 3 then
if valueSold >= 1000 then
bonusGiven = BONUS
endif
endif
Answer
100
900
1000
1900
Question 12
Some business reports list no individual detail records, just totals or other overall statistics such as averages. Such reports are called ____________________ reports.
Answer
Question 13
In a ____ loop, the body of the loop will always execute at least once.
Answer
for
while
do until actually do ...while
repeat
Question 14
When a program or module uses another module, you can refer to the main program as the ____ program.
Answer
director
calling
called
parent
Question 15
The statement that is true of step values is that ____.
Answer
the step value is always 1
the default step value in every programming language is 1
the step value is a number used to increase a loop control variable---or decrease it
a step value is specified when the loop control value should incremented by 1
Question 16
Which of the following is not a step that must occur in every loop?
Answer
Initialize a loop control variable.
Set the loop control value equal to a sentinel.
Compare the loop control value to a sentinel.
Alter the loop control variable.
Question 17
The following pseudocode is an example of ____.
do stepA
do stepB
if conditionC is true then
do stepD
else
do stepE
endif
while conditionF is true
do stepG
endwhile
Answer
nesting
stacking
single alternative structures -- I think
a posttest
Question 18
Suppose a program will read 100 data records, and you read the first data record in a statement that is separate from the other 99. This is called a ____ read.
Answer
nested
stacked
posttest
priming
Question 19
The following pseudocode is an example of a(n) ____ structure:
if firstNumber is bigger than secondNumber then
print firstNumber
else
print secondNumber
Answer
sequence
decision
loop
nested
Question 20
The heart of the programming process lies in planning the program’s ____________________.
Answer
Question 21
The following pseudocode is an example of a(n) ____ structure:
get firstNumber
get secondNumber
add firstNumber and secondNumber
print result
Answer
sequence
decision
loop
nested
Question 22
The ____ of documentation is typically written first.
Answer
input
output
internal program
external program
Question 23
In a structured loop, after the tasks execute within the loop, the flow of logic must return directly to the ____________________.
Answer
Question 24
The following pseudocode might be rewritten using a(n) ____ structure:
if class = "Freshman" then
tuitionFee = 75
else
if class = "Sophomore" then
tuitionFee = 50
else
if class = "Junior" then
tuitionFee = 30
else
tuitionFee = 10
endif
endif
endif
Answer
if-then-else
case --only because it's non of the others -- I would say if...else if
while
do while
Question 25
In a ____ loop, the loop body continues to execute as long as the answer to the controlling question is yes, or true.
Answer
do-then
do-when
do-until
do-while
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.