Given: var myNumbers = [32, 64, 33, 0, 15, 26, 31]
What will the value be for index:
myNumbers[4]
Practice AP Computer Science Sem. Exam 2021
Quiz
•
Computers
•
10th Grade
•
Hard
Awesome Pence
Used 35+ times
FREE Resource
Student preview
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]
15 questions
Multiplication Facts
Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
15 questions
June Review Quiz
Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade
65 questions
MegaQuiz v2 2025
Quiz
•
9th - 12th Grade
10 questions
GPA Lesson
Lesson
•
9th - 12th Grade
15 questions
SMART Goals
Quiz
•
8th - 12th Grade