Math and Boolean Expressions

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz 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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
CodeHS Python Unit 3 Flashcard Review

Flashcard
•
9th - 12th Grade
22 questions
CodeHS AP CSP Unit 3 Review

Flashcard
•
11th - 12th Grade
21 questions
P5.js Exam 1

Flashcard
•
9th - 12th Grade
25 questions
Python Data Types

Flashcard
•
9th - 12th Grade
25 questions
Understanding Programming Concepts and Logic

Flashcard
•
9th - 12th Grade
23 questions
Python - Conditional Statements

Flashcard
•
9th - 11th Grade
20 questions
Unit 3 Python TEST

Flashcard
•
11th - 12th Grade
23 questions
Intro to CS - Unit 3 Review (Functions)

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade