Computer Science Principles End-of-Year Exam

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Francisco Salazar
Used 9+ times
FREE Resource
28 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 3 pts
A student wrote the following code for a guessing game
While debugging the code, the student realizes that the loop never terminates. The student plans to insert the instruction win←true somewhere in the code. Where could win←true be inserted so that the code segment works as intended?
Between line 6 and line 7
Between line 9 and line 10
Between line 20 and 21
Between line 21 and 22
2.
MULTIPLE CHOICE QUESTION
2 mins • 3 pts
Participants in a survey were asked how many hours per day they spend reading, how many hours per day they spend using a smartphone, and whether or not they would be interested in a smartphone application that lets users share book reviews.
The data from the survey are represented in the graph below. Each × represents a survey participant who said he or she was interested in the application, and each O represents a participant who said he or she was not interested.
Which of the following hypotheses is most consistent with the data in the graph?
Participants who read more were generally more likely to say they are interested in the application.
Participants who read more were generally less likely to say they are interested in the application.
Participants who use a smartphone more were generally more likely to say they read more.
Participants who use a smartphone more were generally less likely to say they read more.
3.
MULTIPLE CHOICE QUESTION
2 mins • 3 pts
A musician is creating a song using audio samples. Which of the following actions will minimize the risk of a copyright violation when creating sample-based music?
Using samples found on popular music-streaming sites
Using samples found on peer-to-peer networks
Using samples from nondigital sound sources (vinyl records, tapes, etc.)
Using samples published with a no-rights-reserved Creative Commons license
4.
MULTIPLE CHOICE QUESTION
2 mins • 3 pts
The two code segments below are each intended to display the average of the numbers in the list numList. Assume that numList contains more than one value.
Code segment I displays the correct average, but code segment II does not.
Code segment II displays the correct average, but code segment I does not
Both code segments display the correct average, but code segment I requires more arithmetic operations than code segment II.
Both code segments display the correct average, but code segment II requires more arithmetic operations than code segment I
5.
MULTIPLE CHOICE QUESTION
2 mins • 3 pts
Internet protocol version 4 (IPv4) represents each IP address as a 32-bit binary number. Internet protocol version 6 (IPv6) represents each IP address as a 128-bit binary number. Which of the following best describes the result of using 128-bit addresses instead of 32-bit addresses?
4 times as many addresses are available.
96 times as many addresses are available.
2(4) times as many addresses are available.
2 (96) times as many addresses are available.
6.
MULTIPLE CHOICE QUESTION
2 mins • 3 pts
An online retailer uses an algorithm to sort a list of n items by price. The table below shows the approximate number of steps the algorithm takes to sort lists of different sizes.
The algorithm runs in reasonable time.
The algorithm runs, but not in reasonable time.
The algorithm attempts to solve an undecidable problem.
The algorithm attempts to find an approximate solution whenever it fails to find an exact solution.
7.
MULTIPLE CHOICE QUESTION
2 mins • 3 pts
A computer program uses 4 bits to represent nonnegative integers. Which of the following statements describe a possible result when the program uses this number representation?
I. The operation 4+8 will result in an overflow error.
II. The operation 7 + 10 will result in an overflow error.
III. The operation 12 + 3 will result in an overflow error.
I only
II only
II and III only
I, II, and III
Create a free account and access millions of resources
Similar Resources on Wayground
23 questions
Python Quiz

Quiz
•
6th - 9th Grade
25 questions
CSS

Quiz
•
10th - 11th Grade
23 questions
Year 11 Coding concepts

Quiz
•
10th Grade
23 questions
Unity Programming Certification

Quiz
•
12th Grade
23 questions
Topical Test : 3.0 Computer Ethics and Security

Quiz
•
12th Grade
25 questions
Python Class 9

Quiz
•
9th - 10th Grade
25 questions
VISUAL BASIC 6

Quiz
•
9th - 10th Grade
30 questions
CodeHS Tracy the Turtle Final Test

Quiz
•
6th - 10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade