
Programming 1 Quiz

Quiz
•
Computers
•
9th Grade
•
Medium
James Behne
Used 1+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The variable age is to be used to represent a person’s age, in years. Which of the following is the most appropriate data type for age?
Boolean
number
string
list
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The variable isOpen is to be used to indicate whether or not a store is currently open. Which of the following is the most appropriate data type for isOpen?
Boolean
number
string
list
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Let n be an integer value. Which of the following expressions evaluates to true if and only if n is a two-digit integer (i.e., in the range from 10 to 99, inclusive)?
n = (n MOD 100)
(n ≥ 10) AND (n < 100)
(n < 10) AND (n ≥ 100)
(n > 10) AND (n < 99)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment. x ← 23 z ← x MOD y Which of the following initial values of the variable y would result in the variable z being set to 2 after the code segment is executed?
1
2
3
4
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What is displayed as a result of executing the code segment?
10 20 30 40
21 30 40 50
21 40 30 40
21 40 30 50
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.:
x ← 25
y ← 50
z ← 75
x ← y
y ← z
z ← x
Which of the variables have the value 50 after executing the code segment?
x only
y only
x and z only
x, y, and z
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the blank: To find the distance between num1 and num2, you should ________ the absolute values of num1 and num2.
Add
Subtract
Multiply
Divide
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A teacher is writing a code segment that will use variables to represent a student’s name and whether or not the student is currently absent. Which of the following variables are most appropriate for the code segment?
A string variable named s and a Boolean variable named a
A string variable named s and a numeric variable named n
A string variable named studentName and a Boolean variable named isAbsent
A string variable named studentName and a numeric variable named numAbsences
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To attend a particular camp, a student must be either at least 13 years old or in grade 9 or higher, but must not yet be 18 years old. Let age represent a student’s age and let grade represent the student’s grade level. Which of the following expressions evaluates to true if the student is eligible to attend the camp and evaluates to false otherwise?
((age ≥ 13) OR (grade ≥ 9)) AND (age ≤ 18)
((age ≥ 13) OR (grade ≥ 9)) AND (age < 18)
((age ≥ 13) OR (grade ≥ 9)) OR (age ≤ 18)
((age ≥ 13) OR (grade ≥ 9)) OR (age < 18)
Similar Resources on Wayground
10 questions
Strings & Integers

Quiz
•
6th - 9th Grade
14 questions
Data types and Input

Quiz
•
7th - 9th Grade
10 questions
Year 8 - Unit 2: Small Basic Programming Terminology

Quiz
•
9th Grade
10 questions
Programming Fundamentals

Quiz
•
9th - 10th Grade
12 questions
CMU CS Academy 2.3.3 Cookie Cutter and Scotty Dog

Quiz
•
9th - 12th Grade
14 questions
Python Syntax

Quiz
•
6th - 12th Grade
10 questions
SQL and databases

Quiz
•
KG - 12th Grade
10 questions
Pseudocode Input

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade