Programming Logic and Design, 5th edition. Ch 1- 4

Quiz
•
Other
•
12th Grade
•
Medium
Oluwaseyi Fabumuyi
Used 1+ times
FREE Resource
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?
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?
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?
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!
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade