Computer Science Principles End-of-Year Exam

Computer Science Principles End-of-Year Exam

9th - 12th Grade

28 Qs

quiz-placeholder

Similar activities

2.5 Languages & IDEs

2.5 Languages & IDEs

10th Grade

24 Qs

2.5 Programming Languages and IDEs

2.5 Programming Languages and IDEs

11th Grade

24 Qs

Basic Programming Concepts Quiz New

Basic Programming Concepts Quiz New

6th Grade - University

30 Qs

CSP CodeHS U8 8.2 & 8.2

CSP CodeHS U8 8.2 & 8.2

8th - 10th Grade

23 Qs

Code.org Discoveries 1-8

Code.org Discoveries 1-8

5th - 12th Grade

23 Qs

AP Computer Science Final Review

AP Computer Science Final Review

9th - 12th Grade

28 Qs

The First Programming Languages

The First Programming Languages

9th - 12th Grade

26 Qs

Computer Science Principles End-of-Year Exam

Computer Science Principles End-of-Year Exam

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Francisco Salazar

Used 9+ times

FREE Resource

28 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 3 pts

Media Image

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

Media Image

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

Media Image

 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

Media Image

 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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?