Math and Boolean Expressions
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

29 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the value of thisVariable after the code is executed?
myVariable ← 30
yourVariable ← 5
thisVariable ← yourVariable + myVariable / 10
Back
8
2.
FLASHCARD QUESTION
Front
What is displayed after the following code segment is executed?
A ← 100
B ← A - 25
C ← A - B
A ← A MOD 3
B ← B + 2
DISPLAY(A + B + C)
Back
103
3.
FLASHCARD QUESTION
Front
What is displayed after the following code segment is executed?
A ← 100
B ← A - 25
C ← A - B
A ← A MOD 3
B ← B + 2
DISPLAY(A + B + C)
Back
cucumber
tomato
4.
FLASHCARD QUESTION
Front
What is displayed when the code is run? Options: Best, Good, Okay, Good, Best, Okay
Back
Okay
Good
5.
FLASHCARD QUESTION
Front
Consider the following code segment.
DISPLAY("Z")
printLetters()
DISPLAY("W")
PROCEDURE printLetters()
{
DISPLAY("X")
DISPLAY("Y")
}
What is displayed to the screen when the code executes?
Back
Z
X
Y
W
X
Y
6.
FLASHCARD QUESTION
Front
Consider the following code.
num ← 5
other ← 4
largest()
PROCEDURE largest()
{
IF(<missing condition>)
{
DISPLAY(num + " is the larger number")
}
ELSE
{
DISPLAY(other + " is the larger number")
}
}
Which of the following should replace <missing condition> so that the code segment works as intended?
Options: other MOD num=0, num MOD other=0, num>other, num < other
Back
num>other
7.
FLASHCARD QUESTION
Front
Back
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
23 questions
HS USH Unit 1 Review
Flashcard
•
9th Grade - University
26 questions
English Questions on Numbers and Verbs
Flashcard
•
KG - University
27 questions
Biotechnology Review
Flashcard
•
10th Grade
18 questions
THE MERCHANT OF VENICE ACT 1
Flashcard
•
10th Grade
20 questions
Flashcard on G20
Flashcard
•
9th - 12th Grade
20 questions
Questões sobre ecologia - Lavínia, Leandro e Mariana
Flashcard
•
9th - 12th 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