wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AP CSP Semester 1 Midterm

Total questions: 62

Worksheet time: 47mins

Name
Class
Date
1.

This term is a contraction for "Binary Digit." It's a single unit of information in a computer typically represented by 0 or 1.

a)

Binary

b)

Bit

c)

Digit

d)

Widget

2.

The term for a set of 8 bits, usually written for ease of reading as 4 bits space 4 bits.

a)

Bit

b)

Byte

c)

Kilobyte

d)

Binary Digit

3.

A set of rules governing the exchange or transmission of data between devices

a)

Injunction

b)

Protocol

c)

Bandwidth

d)

Conduit

4.

This is the maximum rate of data transfer measured in bit rate.

a)

TCP

b)

Bandwidth

c)

Bit Rate

d)

Ping

5.

The time it takes for a bit to travel from its sender to the receiver.

a)

Bandwidth

b)

Ping

c)

Latency

d)

Broadband

6.

A number assigned to any item that is connected to the internet

a)

DNS

b)

MAC Address

c)

IP Address

d)

TCP Address

7.

A computer that receives messages travelling across a network and redirects them towards their intended destinations based on the addressing information included with the message

a)

Metadata

b)

Switch

c)

Router

d)

Mapper

8.

Small chunks of information that have been carefully formed from larger chunks of information. Typically broken up into parts to be sent over the internet.

a)

Bits

b)

Bytes

c)

Packets

d)

Routers

9.

Provides reliable, ordered, and error checked deliver of a stream of packets on the Internet. TCP is tightly linked with IP and is usually seen as TCP/IP in writing

a)

Internet Protocol

b)

Transmission Control Protocol

c)

User Datagram Protocol

d)

Hyper Text Transfer Protocol

10.

This internet system converts the alphabetic names of websites into their Internet Protocol addresses

a)

Internet Protocol

b)

Transmission Control Protocol

c)

Domain Name System

d)

Hypertext Transfer Protocol

11.

The protocol used by the World Wide Web. It describes how the messages are formatted and interchanged, and how web servers respond to commands.

a)

Hyper Text Transfer Protocol

b)

Internet Protocol

c)

Transmission Control Protocol

d)

Domain Name System

12.

A basic Internet program that allows a user to verify that a particular IP address exists and can accept requests

a)

Ping

b)

Pong

c)

DNS

d)

IP

13.

A protocol for routing packets to the receiver. This protocol ensures all packets are received and that they are in order.

a)

Transmission Control Protocol

b)

User Datagram Protocol

c)

Internet Protocol

d)

Packet Protocol

14.

A company or organization which provides internet to users.

a)

Ethernet

b)

Everyday Internet Users

c)

Internet Service Provider (ISP)

15.

A capability of a computer system, electronic system or network to deliver uninterrupted service, despite one or more of its components failing

a)

Fault Tolerant Networking

b)

Domain Name System

c)

Hyper Text Markup Langauge

d)

HTTP

16.
Which of the following statements is true:
a)
DNS is at the same level of abstraction as the IP layer
b)
The IP layer is a higher level than the TCP layer. 
c)
The TCP layer is independent of  the IP layer
d)
The TCP layer is below the DNS layer
17.
What is the number 45 as a binary number?
a)
10011111
b)
00001100
c)
00101101
d)
10101010
18.
What does Protocol mean?
a)
Security
b)
Rules
c)
Orders
d)
Services
19.
How many bits are in an IPV6 address?
a)
32
b)
64
c)
128
d)
256
20.
Which of the following statements is true:
a)
TCP is a protocol that ensures that internet traffic is routed in the most efficient manner possible.  
b)
TCP ensures that all packets are received in the correct order.  
c)
The TCP protocol takes into consideration that packets can be lost. 
d)
TCP resends packets multiple times to ensure that they are received by the requester.  
21.
The HTTP protocol: 
a)
The GET request results in all of the page data being displayed. 
b)
Data sent by the server is sent in one file, broken up into various packets.
c)
Data sent by the server is sent in several files broken up into packets.  
d)
Data sent by the server arrives at the client in the order it is sent. 
22.
According to Vint Cerf the internet: 
a)
Must be affordable
b)
Must be unrestricted and uncensored.
c)
Must be protected by Government legislation to keep connections free. 
d)
Must be complex to ensure it meets all the requirements for growth.
23.

Which unit is the largest?

a)

Megabyte

b)

Terabyte

c)

Gigabyte

d)

Kilobyte

24.
Which unit is the smallest?
a)
Megabyte
b)
Kilobyte
c)
Gigabyte
d)
Terabyte
25.

Approximately how much bigger (how many more bytes) is a megabyte than a kilobyte?

a)

1,000 times bigger

b)

100,000 times bigger

c)

1,000,000 times bigger

d)

1,000,000,000 times bigger

26.

Which of the following is a reason to use lossy compression?

a)

You want the compressed file to be larger than the original.

b)

You want the highest quality audio file possible, with no modifications.

c)

You want the highest quality image file possible, with no modifications.

d)

You want to save space and are not concerned if the file is the highest quality possible.

27.

Which of the following is irreversible?

a)

lossy compression

b)

lossless compression

c)

abstraction

d)

RLI

28.

Which of the file types is an audiofile type?

a)

jpg

b)

mp3

c)

png

d)

csv

29.

How many bits are needed to represent 8 colors?

a)

8 bits

b)

24 bits

c)

1 hex digit

d)

3 bits

30.

Lil’ Nibble, a local Soundcloud rapper, has recorded a new mixtape called “Half-a-byte,” produced by “Mibikibi and the Teraflops.” The mixtape has several audio files that have been compressed into a .ZIP file so they can be transferred easily and a separate .ZIP file containing album artwork and liner notes. If the mixtape .ZIP file takes up 800 MB and the artwork .ZIP file is 300 MB, what size flash drive do you need in order to transfer the files?

a)

512 MB

b)

1.0 GB

c)

4 KB

d)

2.0 GB

31.

Internet Protocol

a)

Protocol that breaks data down into packets and addresses them with source and destination information

b)

A DNS attack in which numerous pings are made to the same IP, causing it to crash

c)

Protocol used by the World Wide Web. It describes how messages are formatted and interchanged, and how web servers respond to commands.

d)

Protocol that provides reliable, ordered, and error-checked delivery of a stream of packets on the internet

32.
What does HTTP stand for?
a)
Hyper Text Transfer Protocol
b)
Nothing, it's supposed to be HTML
c)
Head To This Page
d)
Hyper Tense Tall Penguins
33.
According to the domain name system (DNS), which of the following is a subdomain of the domain code.org?
a)
educate.code.org
b)
code.com
c)
code.org/apcsp/lesson10
d)
code.co.uk
34.
Which of the following statements about IP addresses is NOT true?
a)
Each IP address has a network previx and may have various subnet and interface IDs
b)
Each of the octets in an address can be any number between 0 and 255
c)
There are no rules or guidelines for creating a new IP address
d)
IP addresses may have prefixes to identify which routers or subnets the address belongs to
35.
A ____ HTTP request is used when the user requests information, but does not enter anything into the page.
a)
Get
b)
Post
c)
Send
d)
Fetch
36.

An internet dilemma dealing with the amount of and types of content on the internet that some people believe should be blocked

a)

Internet Censorship

b)

The Digital Divide

c)

Net Neutrality

d)

Adding the Internet to the Bill of Rights

37.

An internet dilemma dealing with the division between people who have access to the internet and those who don't.

a)

Internet Censorship

b)

The Digital Divide

c)

Net Neutrality

d)

Adding the Internet to the Bill of Rights

38.

An internet dilemma dealing with the current freedom of bandwidth between sites that require larges amounts of bandwidth and those that do not need as much.

a)

Internet Censorship

b)

The Digital Divide

c)

Net Neutrality

d)

Adding the Internet to the Bill of Rights

39.

Simply this is data about data. Computers use ___________ to understand file types and sizes.

a)

Ping

b)

Latency

c)

Metadata

d)

Datagrams

40.

A communications protocol that is primarily used for establishing low-latency and loss-tolerating connections between applications on the internet. It speeds up transmissions by enabling the transfer of data before an agreement is provided by the receiving party.

a)

Transmission Control Protocol

b)

User Datagram Protocol

c)

Internet Protocol

d)

Hyper Text Transfer Protocol

41.

Any programming language that lets users create programs by manipulating “blocks” or graphical programming elements, rather than writing code using text.

a)

Command

b)

Run Program

c)

Algorithm

d)

Block-based programming language

42.

A sequence of steps written in a programming language that can be followed to solve a problem, especially by a computer.

a)

Debug

b)

Event

c)

Algorithm

d)

Computer Program

43.

An error in a program that prevents the program from running as expected

a)

onEvent

b)

Bug

c)

Moth

d)

Fly in the Ointment

44.

Statements that should only run upon a specific user action should be placed

a)

inside an onAction block

b)

below an onEvent command

c)

after the first programming statement

d)

within an onEvent programming statement

45.

Finding and fixing problems in an algorithm or program

a)

Debugging

b)

Event Driven Programming

c)

Run Programs

d)

Algorithms

46.

Cause the computer to execute the commands you've written in your program

a)

console.log

b)

Run Program

c)

Debug

d)

onEvent

47.

A single instruction for the computer. Put many together and you get algorithms and computer programs.

a)

Algorithm

b)

onEvent

c)

console.log

d)

Command

48.

A set of steps you can follow in order to solve a problem or achieve a result often written down in regular spoken language.

a)

Debugging

b)

Event

c)

Algorithm

d)

Computer Program

49.

When the user hovers their mouse over the hawk, the

a)

both birds will appear only in the middle of the screen

b)

The sparrow will be confined to the upper right and the hawk to the upper left

c)

The sparrow will be confined to the lower right and the hawk to the upper left

d)

The sparrow will be confined to the lower left and the hawk to the upper right

50.

Choose all the correct options. When debugging, you should

a)

run the program over and over, staring really hard at it

b)

add some console.log statements to see what is going on

c)

describe your program and the odd behavior to a friend

d)

reduce the amount of code and see if the behavior improves

51.

This type of variable is temporary and can only be used where it was created.

a)

local

b)

global

c)

var

d)

universal

52.

What will output to the console?

a)

25

b)

50

c)

75

d)

100

e)

125

53.

What will output to the console?

a)

"C"

b)

"hug"

c)

"D"

d)

"hawks"

54.

What will output to the console?

a)

"hug"

b)

4

c)

100

d)

112

55.

This type of variable is permanent and can be used anywhere in your code.

a)

local

b)

global

c)

var

d)

universal

56.

What will output to the console log?

a)

"hawks"

b)

19

c)

"hug"

d)

35

57.

A variable is a name reference that can store one value at a time.

a)

true

b)

false

58.
JavaScript uses the _______ keyword to define variables.
a)
vrb
b)
var
c)
vari
d)
va
59.

What data type is defined below?


var myFavDay = "Friday"

a)

number

b)

string

c)

character

d)

float

60.

What data type is defined below?


var myFavNumber = "9"

a)

number

b)

string

c)

character

d)

float

61.

What data type is defined below?


var myFavNumber = 9;

a)

number

b)

string

c)

character

d)

float

62.

What will the variable beep hold when the program ends?

a)

5

b)

11

c)

-5

d)

-6