Unit 5 AP CSP Code.org
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Sara Kazemi
Used 1K+ times
FREE Resource
About this resource
This quiz covers fundamental programming concepts in computer science, specifically focusing on JavaScript programming and computational thinking skills appropriate for grades 9-12. The questions assess essential programming constructs including variable assignment and manipulation, string operations, Boolean expressions and logical operators, conditional statements (if/else structures), loops (particularly while loops), and basic array operations with indexing. Students need to understand how variables store and modify data, how to trace through code execution step-by-step, the difference between assignment and comparison operators, how Boolean logic works with AND/OR operations, and how control structures like conditionals and loops affect program flow. The quiz also tests debugging skills through algorithm analysis and requires students to predict program output by mentally executing code segments, which demonstrates computational thinking and code comprehension at the high school level. Created by Sara Kazemi, a Computers teacher in US who teaches grade 9-12. This quiz serves as an excellent formative assessment tool for AP Computer Science Principles students, particularly during Unit 5 which focuses on programming fundamentals and algorithmic thinking. Teachers can use this as a warm-up activity to gauge student understanding before diving into more complex programming projects, as homework to reinforce concepts learned in class, or as review material before summative assessments. The varied question types make it ideal for identifying specific areas where students need additional support, whether in variable manipulation, logical reasoning, or code tracing skills. This assessment aligns with Common Core mathematical practices in problem-solving and reasoning, as well as CSTA K-12 Computer Science Standards 3A-AP-13 (creating prototypes), 3A-AP-15 (justifying program choices), and 3A-AP-17 (decomposing tasks), supporting the development of computational thinking skills essential for success in computer science coursework.
See more
Enhance your content in a minute
33 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jasmine is writing a shopping app. She has created a variable to keep track of the number of items in the shopping cart. Every time someone clicks the "addItemButton", she would like the variable to increase by 1.
What code should Jasmine insert where it says <missing code> in order for her app to work?
cart total = 1;
cartTotal + 1;
cartTotal = cartTotal +1;
var cartTotal = cartTotal + 1;
var cartTotal + 1;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jose is writing a reply function for a text messaging app. He'd like to swap the sender and receiver so that the value currently in variable From ends up as the value in To and To ends up in From
Which of the following code segments will correctly swap the values as described?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A programmer wrote an essay for his history class, and realized he has confused the names of Benjamin Franklin and Alexander Graham Bell. Instead of going through the whole paper and changing the names, he used the following incorrect algorithm in an attempt replace every occurrence of "Benjamin Franklin" with "Alexander Graham Bell" and vise versa:
First, change all occurrences of "Benjamin Franklin" to "apple" Then, change all occurrences of "apple" to "Alexander Graham Bell". Then, change all occurrences of "Alexander Graham Bell" to "Benjamin Franklin".
Here is an example of one of the sentences from the paper:
Alexander Graham Bell was born 141 years before Benjamin Franklin, so he was never able to telephone his neighbors.
Which of the following is the result of running the described incorrect algorithm on the sentence above?
Benjamin Franklin was born 141 years before Alexander Graham Bell, so he was never able to telephone his neighbors.
apple was born 141 years before Benjamin Franklin, so he was never able to telephone his neighbors.
Alexander Graham Bell was born 141 years before apple, so he was never able to telephone his neighbors.
Benjamin Franklin was born 141 years before Benjamin Franklin, so he was never able to telephone his neighbors.
Alexander Graham Bell was born 141 years before Alexander Graham Bell, so he was never able to telephone his neighbors.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following images is the most likely outcome of the drawing?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is displayed by the console.log statement after the following code segment executes?
value is: 2
value is: 2.3333333
value is: 3
value is: 4
value is: c
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A student decides to draw a series of three dots (sort of like a snowman) as shown in the diagram. She wants each dot to be half the radius of the previous dot, and for the center to be on the edge of the dot below it. She writes the following code segment to do it.
Create a free account and access millions of resources
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
30 questions
EMPOWERMENT TECHNOLOGIES WEEK 3 LONG QUIZ
Quiz
•
11th Grade
36 questions
PARTS OF COMPUTER TEST
Quiz
•
12th Grade
30 questions
Bin O - Y8 (Remember to answer correctly, not fast)
Quiz
•
3rd - 10th Grade
28 questions
4QICT12 - Current and Future Trends of Media and Information
Quiz
•
11th - 12th Grade
35 questions
EmTech Q1 Reviewer
Quiz
•
11th Grade
30 questions
GCSE Computer Science: Topic 3 Consolidation
Quiz
•
10th - 11th Grade
31 questions
Robotics 9 and 10
Quiz
•
9th - 12th Grade
28 questions
AZ-900 Module 5
Quiz
•
KG - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
