
Practice AP Computer Science Sem. Exam 2021
Authored by Awesome Pence
Computers
10th Grade
Used 35+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Given: var myNumbers = [32, 64, 33, 0, 15, 26, 31]
What will the value be for index:
myNumbers[4]
15
32
0
16
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be displayed after this code segment is run?
"opal"
"saphirre"
"garnet"
"emerald"
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be displayed in the console when this program runs?
_________________________________________
var numList = [10,20,30];
console.log(numList[numList.length-1]);
2
3
20
30
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Given: var myNumbers = [32, 64, 33, 0, 15, 26, 31]
What will the value be for index:
myNumbers[0]
15
32
0
64
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be displayed after this code segment is run?
Perfect Game!
You Win!
You Lose!
Nothing will be displayed
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Given: var myNumbers = [32, 64, 33, 0, 15, 26, 31]
What will the value be for index:
myNumbers[3]
15
32
0
64
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is stored in studentScores after running the program code?
[82, 0, 0, 97, 91]
[5, 0, 0, 5, 5]
[0, 37, 50, 0, 0]
[77, 37, 50, 92, 86]
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?
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade