
Programming 1 Quiz
Authored by James Behne
Computers
9th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
10 questions
Revision 1
Quiz
•
1st - 10th Grade
14 questions
Apple quiz
Quiz
•
5th Grade - University
10 questions
Introduction To Java: Hello World
Quiz
•
7th - 12th Grade
11 questions
Theme E Chapter 5
Quiz
•
9th Grade
10 questions
7.2 Knowledge check
Quiz
•
9th Grade
10 questions
STM BTEC DIT 3- 5. Maintenance, set-up, performance p152
Quiz
•
9th - 11th Grade
11 questions
ICT - Networks and communication
Quiz
•
9th Grade
10 questions
4Q Week3 Review Quiz (Who missed the Quiz ONLY))
Quiz
•
9th 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