
Chapter 4 (Decision Structures)

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Is this code segment correct?
if(quizScore == 10)
System.out.println("Perfect score");
Back
Yes
2.
FLASHCARD QUESTION
Front
WHICH TYPE OF DECISION STRUCTURE IS THIS?
Back
Nested If
3.
FLASHCARD QUESTION
Front
What decision structure works best if you have more than two possible answers (multiple choice) to a question, and those answers can be integer or character based?
Back
A Switch statement
4.
FLASHCARD QUESTION
Front
Of the following if statements, which one correctly executes three instructions if the condition is true?
Options: if (x < 0)
a = b * 2;
y = x;
z = a – y;
, {
if (x <0)
a = b*2;
y=x;
z=a-y;
}, if { (x < 0)
a = b * 2;
y = x;
z = a – y;
}, if (x <0)
{
a = b*2;
y = x;
z = a - y;
Back
if (x <0)
{
a = b*2;
y = x;
z = a - y;
5.
FLASHCARD QUESTION
Front
Which of the sets of statements below will add 1 to x if x is positive and subtract 1 from x if x is negative but leave x alone if x is 0? Options: if (x > 0) x++;
else x--;
, if (x > 0) x++;
else if (x < 0) x--;
, if (x > 0) x++;
if (x < 0) x--;
else x = 0;
, if (x == 0) x = 0;
else x++;
x--;
Back
if (x > 0) x++;
else if (x < 0) x--;
6.
FLASHCARD QUESTION
Front
How would you check for inequality?
Back
!=
7.
FLASHCARD QUESTION
Front
Is this code segment correct?
if(quizScore == 10);
System.out.println("Perfect score");
Back
No
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
kindergarten Math

Flashcard
•
KG
15 questions
Graphs of Polynomials Review

Flashcard
•
9th - 12th Grade
15 questions
Counting Objects(up to 20)

Flashcard
•
KG
15 questions
FST 2.5-2.7 Practice Flashcard

Flashcard
•
9th - 12th Grade
15 questions
Scientific Notation and Significant Figures

Flashcard
•
9th - 12th Grade
15 questions
Math Counting

Flashcard
•
KG
15 questions
Fundamental Counting Principle

Flashcard
•
9th - 12th Grade
15 questions
I Can Count by Tens!

Flashcard
•
KG
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)

Quiz
•
9th Grade
15 questions
MLA Formatting

Quiz
•
9th Grade
20 questions
Typing Practice

Quiz
•
7th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Google Sheets Quiz

Quiz
•
9th Grade