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
25 questions
Data Types- Python

Quiz
•
7th - 11th Grade
28 questions
AP Computer Science Final Review

Quiz
•
9th - 12th Grade
24 questions
CS-9 Chapter-5 Computer Software Part2: Rabin Ghimire

Quiz
•
10th Grade
24 questions
Internet Basics Vocabulary

Quiz
•
9th Grade
25 questions
OCR H446 -term 1

Quiz
•
12th Grade - University
25 questions
Programming with Karel

Quiz
•
7th - 12th Grade
25 questions
2.3 Robust Programs

Quiz
•
9th - 11th Grade
23 questions
Unit 1 CodeHS Review

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade