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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
25 questions
Java Review
Quiz
•
9th Grade - University
23 questions
Introduction to Multimedia and Photography
Quiz
•
12th Grade
24 questions
CS-9 Chapter-4 Computer Hardware Part 1: Rabin Ghimire
Quiz
•
8th - 9th Grade
30 questions
TIK
Quiz
•
9th Grade
25 questions
Introducción a Microsoft OneDrive
Quiz
•
1st - 11th Grade
23 questions
Computer Science IT quiz WIP - IT Level 3 by MZH
Quiz
•
9th - 12th Grade
23 questions
Dasar Komputer
Quiz
•
10th Grade
25 questions
Post-Test Pengkabelan Jaringan LAN & Penerapan di Sharing Folder
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
