
Conditional Test
Authored by Donna Panter
Computers
9th - 12th Grade
Used 57+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Alat Proses
Quiz
•
9th Grade
19 questions
UNIT 1.2 MEMORY
Quiz
•
10th Grade
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
12 questions
Examen final algoritmo
Quiz
•
11th Grade
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
20 questions
1.1.3 Proses Penyelesaian Masalah
Quiz
•
11th Grade
16 questions
Acceptable Use Policy
Quiz
•
6th - 9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade