
Programming Logic and Design, 5th edition. Ch 1- 4
Authored by Oluwaseyi Fabumuyi
Other
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
168 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The main components of a computer are?
Hardware
Hardware and Software
Central Processing Unit (CPU) and Software
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a flag variable?
What is a flag variable?
A flag is a variable signal that sets to False
A flag is a variable that signals when some condition exists in the program.
A flag is a variable signal that sets to True
A flag is a variable that signals when some condition starts in the program
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What values can you store in a Boolean variable?
What values can you store in a Boolean variable?
True or False
Yes or No
Fact or Fiction
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You need to write a multiple alternative decision structure, but the language you are using will not allow you to perform the test you need in a Select Case statement. What can you do to achieve the same results?
the program jumps out of the structure.
the program will branch to the Case 1: section and execute the Display "Error: Invalid month" statement that immediately follows it.
the program branches to the Case statement
the program branches to the Default statement and executes the statements that immediately follow it.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the case structure test, in order to determine which set of statements to execute?
test If the testExpression does not match any of the Case values
test if there is one or more blocks of statements that begin with a Case statement.
test the value of a variable or an expression and then use that value to determine which statement or set of statements to execute.
tests if the model number can be stored in a variable
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write a multiple alternative decision structure in pseudocode?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does a dual alternative decision structure work?
How does a dual alternative decision structure work?
is an expression that can be evaluated to True or False using a relational operator (>, <, >=, <=, ==, !=)
one path is taken if a condition is true, and the other path is taken if the condition is false
One path is taken if the condition evaluates True, the other if the condition evaluates False. See the answer to 4.8. It's the same question!
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?