What is the value of thisVariable after the code is executed?
myVariable ← 30
yourVariable ← 5
thisVariable ← yourVariable + myVariable / 10
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
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 Quizizz
20 questions
Unit 4 - Variables, Conditionals, Functions

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

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

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

Flashcard
•
9th - 12th Grade
16 questions
AP CSP Unit 5 List Pseudocode Flashcard 2

Flashcard
•
9th - 12th Grade
20 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

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

Flashcard
•
9th - 11th Grade
28 questions
Python If Else Statements

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University