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
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Other
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
13 questions
8th - Unit 1 Lesson 3

Quiz
•
9th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
21 questions
SPANISH GREETINGS REVIEW

Quiz
•
9th - 12th Grade
6 questions
PRIDE Always and Everywhere

Lesson
•
12th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade