Math and Boolean Expressions

Flashcard
•
Computers
•
9th - 12th Grade
•
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
Create a free account and access millions of resources
Similar Resources on Wayground
26 questions
Code.org: Unit 2 Lesson 1-13 Flashcard

Flashcard
•
9th - 12th Grade
25 questions
Javascript Final Review

Flashcard
•
9th - 12th Grade
20 questions
Python Basics & Syntax

Flashcard
•
10th - 12th Grade
25 questions
Robots in History and Intro to Micro:Bits

Flashcard
•
9th - 12th Grade
26 questions
lists in python

Flashcard
•
11th - 12th Grade
18 questions
Web Design Advanced HTML CSS

Flashcard
•
9th - 12th Grade
25 questions
Computer Science Discoveries Unit 3 Chapter 2 Mastery Check

Flashcard
•
9th - 12th Grade
23 questions
Unit 5: Post Test: Spreadsheets and Databases

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade