What will print when the following code executes?

APCS Lesson 7.0-7.2 Review

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Erin Thompson
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
[1, 2, 3, 4, 5]
[1, 4, 2, 3, 5]
[1, 2, 4, 3, 5]
[1, 2, 4, 5]
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What will print when the following code executes?
["Anaya", "Sarah", "Layla", "Sharrie"]
["Anaya", "Layla", "Sharrie", "Sarah"]
["Sarah", "Anaya", "Layla", "Sharrie"]
["Anaya", "Layla", "Sarah", "Sharrie"]
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What will print when the following code executes?
[2, 3]
[1, 2, 3]
[1, 2]
[1, 3]
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What will print when the following code executes?
[2, 3]
[1, 2, 3]
[1, 2]
[1, 3]
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What will print when the following code executes?
[1, 2, 3, 4, 5]
[1, 2, 4, 5, 6]
[1, 5, 2, 4, 6]
[1, 2, 5, 4, 6]
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What will print when the following code executes?
["Sarah", "Destini", "Layla", "Sharrie"]
["Sarah", "Destini", "Anaya", "Layla", "Sharrie"]
["Anaya", "Sarah", "Sharrie"]
["Anaya", "Sarah", "Destini", "Sharrie"]
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What will print when the following code executes?
[1, 2, 3, 4, 5]
[1, 2, 4, 5, 6]
[1, 2, 5, 4, 6]
[1, 5, 2, 4, 6]
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Array

Quiz
•
10th - 12th Grade
10 questions
AP Computer Science A Quiz

Quiz
•
12th Grade
17 questions
CSA Array Unit Test

Quiz
•
9th Grade
20 questions
Unit 2.2 Programming Techniques MCQs L2

Quiz
•
10th Grade
15 questions
Array

Quiz
•
10th - 12th Grade
20 questions
AP CS A Unit 6 Exam PRACTICE

Quiz
•
9th - 12th Grade
18 questions
Y9 List Introduction

Quiz
•
9th Grade
15 questions
PCEP Section 3B: list methods: append(), insert(), index()

Quiz
•
12th Grade
Popular Resources on Quizizz
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
Discover more resources for Computers
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
10 questions
Right Triangles: Pythagorean Theorem and Trig

Quiz
•
11th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
24 questions
LSO - Virus, Bacteria, Classification - sol review 2025

Quiz
•
9th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade