
Codehs Practice Test
Authored by Thomas Martinez
Computers
9th - 12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Evaluate the mathematical expression: 18 ÷ 3 + 3 × 3 – 8
2
4
5
7
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
If x represents the area of the number line colored blue, which inequality accurately reflects the value of x?
x < 8
x > 8
x ≥ 8
x ≤ 8
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Melissa will only drink a cup of coffee if she has slept less than 8 hours or she had to wake up before 6 am.
In which of the following cases does Melissa not drink a cup of coffee?
Melissa sleeps for 8 hours and wakes up at 7 am
Melissa sleeps for 7 hours and wakes up at 8 am
Melissa sleeps for 9 hours and wakes up at 5:30 am
Melissa sleeps for 7 hours and wakes up at 6 am
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Karel the Dog is instructed to move forward two spaces. Then, if Karel is standing on a ball, Karel will turn left and move forward two spaces. Otherwise, Karel will move forward two spaces. Given the starting point below, where will Karel end up?
Starting Point:
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
II only
I only
I and III only
I, II and IIIAnswered I, II and III
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
x has a value of y
y has a value of temp
x has a value of 5
y has a value of 8
x has a value of 8
y has a value of 5
x and y have a value of 5
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
You’re building an e-commerce website. You create a class called Transaction to represent a single purchase on the site.
Which of these would not make sense as an instance variable in the Transaction class?
private int totalTransactionsToday
private double price
private String purchaserEmail
private String productName
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?