If (fish = "bass" OR length > 7) {
Catch <-- "Keep"; }
Else {
Catch <-- "Release"; }
In which situations will Catch be "Keep"?
Conditional Test
Quiz
•
Donna Panter
•
Computers
•
9th - 12th Grade
•
57 plays
•
Medium
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If (fish = "bass" OR length > 7) {
Catch <-- "Keep"; }
Else {
Catch <-- "Release"; }
In which situations will Catch be "Keep"?
When fish is "catfish" and length is 7.1
When fish is "catfish" and length is 6.9
When fish is "catfish" and length is 7
When fish is "catfish" and length is 4.0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the expected values of exercise if the given values of miles is 3 and 7?
if ( miles > 3 ) {
exercise <-- "fun" }
else {
exercise <-- "endurance" }
"fun"
"fun"
"fun"
"endurance"
"endurance"
"fun"
"fun"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of mile when x is 4 and y is 8?
7
3
10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The if statements are missing logical operators. Which operator should be used to make the below table true?
Clicks Color
1-5 Red
6-10 Yellow
11-15 Orange
==
<=
>
<
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A flow chart to show when Melissa can go to the movies. She must implement it in code using the variables time and action. Which code segment is correct?
If (time > 5)
action <-- true
else
action <-- false
If (time < 6)
action <-- true
else
action <-- false
If (time > 6)
action <-- false
else
action <-- true
If (time > 6)
action <--true
else
action <-- false
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following pseudo code output?
Hello
Goodbye
Hello
Goodbye
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output
A
A
B
B
A
B
C
C
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
28 in human years
4 in dog years
dogAge * 7 in human years
4 * 7 in human years
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Goodbye
Hello
syntax error
Hello Goodbye
10.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output?
var num = 10;
write(num < 20);
true
false
10
20
there is no output due to a syntax error
Explore all questions with a free account
17 questions
Python Conditionals
Quiz
•
9th - 11th Grade
20 questions
C++
Quiz
•
11th Grade
20 questions
Java Conditional Constructs
Quiz
•
9th - 10th Grade
15 questions
Intro to Java Loops
Quiz
•
9th - 12th Grade
16 questions
Python basics
Quiz
•
9th - 12th Grade
14 questions
C++ - Loops and Random Numbers
Quiz
•
9th - 12th Grade
15 questions
Selection in Python
Quiz
•
1st - 9th Grade
20 questions
Programming Quiz
Quiz
•
1st - 10th Grade
17 questions
CAASPP Math Practice 3rd
Quiz
•
3rd Grade
15 questions
Grade 3 Simulation Assessment 1
Quiz
•
3rd Grade
20 questions
math review
Quiz
•
4th Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2425sy
Quiz
•
5th Grade
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
21 questions
6th Grade Math CAASPP Practice
Quiz
•
6th Grade
13 questions
Cinco de mayo
Interactive video
•
6th - 8th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
45 questions
AP CSP Exam Review
Quiz
•
9th - 12th Grade
40 questions
AP Computer Science Principles Practice
Quiz
•
10th Grade
15 questions
AP Computer Science A Review 1
Quiz
•
10th - 12th Grade
60 questions
IBC Photoshop Certification Practice 2024
Quiz
•
9th Grade
50 questions
AP CSP Review
Quiz
•
9th - 12th Grade