You have some explaining to do
Decisions Decisions
Chapter 4 Potpourri
Smooth Operator
Potpourri
100
Explain a sequence structure in programming; give an example.
It is the order of operations for a method; steps from beginning to end without deviation
100
Explain the basic concept of the If/Else structure.
If a, then jump for joy. Else, cry.
100
What symbol appears on the Boolean variable tile and what symbol appears on the string variable?
T/F, ABC
100
What are relational operators and when are they used?
They are used to measure the relationship between two items
100
How many Canadian provinces are there?
10
200
Explain what a decision structure is. Give an example.
A conditional statement; the use of If/Else drives what actions the programs should take.
200
How do you cause multiple things to happen if a condition is true?
Create multiple outcomes listed under the If statement
200
What are the three basic flowchart symbols and what does each represent?
oblong, diamond, rectangle
200
What are logical operators and when are they used?
test whether conditions are true or false
200
What is the largest state in America, in terms of land mass?
Alaska, with 571,951 square miles (more than twice the size of Texas!)...ironically, it has the lowest population density per square mile
300
Explain Boolean variables and their possible outcomes. Surprise! Use an example.
Only two values-true or false.
300
What is a nested If/Else statement?
An If/Else as a potential outcome for an If statement
300
What would the penguin say if the following code were executed? If 5 == 4 penguin say Yes Else penguin say No
no
300
What are the six common relational operators used in programming?
equal to, not equal to, greater than, greater than or equal to, less than, less than or equal to
300
What famous document begins with the phrase "When in the course of human events..."
The Declaration of Independence
400
Explain a single-alternative decision structure as compared to a dual-alternative decision structure. Hmm...yes, give an example!
That's really just too long to type :-)
400
Why would you want to create a nested If/Else statement? How do you do it?
Why are you looking here? You should know this stuff!
400
Assume that a = 1, b = 2, and c = 3. What is the value of the expression: both a < b and b > c?
false
400
What are the three common logical operators used in programming?
not a; both a and b; either a or b, or both
400
What is the largest state in terms of population?
California, with 38,000,000 (and #2 is Texas...hmmm...)
500
Explain the difference between a structure and a function, which can only be accomplished using examples!
That's also way too long to type
500
What are the outcomes of a Boolean operator? How are these expressed in flowcharting and in a decision structure?
True/False, as the two outcomes of a diamond, as the If and the Else outcomes
500
How do you create a decision structure that causes an object to take an action based on a property? And, what are some properties that can be used in such a statement? What does the latter depend on?
select the object, click properties tab, drag the tile into the If/Else, pick something to compare. color, opacity, brightness; depends on the object
500
Explain how the 'not a' operator works and yes...you need an example
I'm sure you got it right!
500
What is the name of the highest waterfall in the world?
Angel Waterfall in Venezuela (over 3,200 feet!)