wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AP CSP 300PT Quizizz 12-4

Total questions: 92

Worksheet time: 2hrs 50mins

Name
Class
Date
1.

How do computers represent data, numbers, letters, and images?

a)

They use binary ( a base 2 system)

b)

They use pictures and keyboard characters.

c)

They use a secret coding system filled with symbols.

d)

They use alphabets and decimal numbers.

2.

The binary system is represented by ( which numbers)

(a)  

3.

What does bit stand for?

a)

Build It Today

b)

Basic Information

c)

Binary Digit

d)

Billions in Tech

4.

True or Fales: A bit is always in one of two physical states on/off.

(a)  

5.

How many bits make up a byte?

a)

4

b)

16

c)

10

d)

8

6.

What is the number 255 in binary?

a)

11111111

b)

1010101010

c)

00001111

d)

1111000

7.

How would you represent the number 35 in binary?

a)

11110

b)

0001100

c)

100011

d)

1010101

8.

RGB stands for

a)

Ready, Backup, Gear

b)

Red, Blue, and Green

c)

Read, Believe, Grow

d)

Rest, Before, Golf

9.

_______ is a process for reducing the number of bits needed to represent something in which some of the information is lost and can not be reversed.

a)

Lossless Compression

b)

Lacking Compression

c)

Lossy Compression

d)

Limited Compression

10.

_______ is a process for reducing the number of bits needed to represent the information needed to represent something without losing any information. This process is reversible.

a)

Lossless Compression

b)

Lossy Compression

c)

Limited Compression

d)

Listed Compression

11.

Which compression is better for crime scene investigations or government intelligence operations?

a)

Lossy Compression

b)

Lucy Compression

c)

Lossless Compression

d)

Lucky Compression

12.

You need to send a picture to a friend and you are running out of data, which compression should you choose? The quality is not important.

a)

Photo Shrink Compression

b)

Lossy Compression

c)

Lossless Compression

d)

Lucky Compression

13.

True or Fales: When you use lossy compression to decompress a picture you can return your picture to the original state when you recompress it.

(a)  

14.

Digital images in computers are made of ___________.

a)

Tiny drops of color

b)

Colored squares

c)

Black and White Squares

d)

Pixels (bits)

15.

True or False: Videos are not made up of billions of bits that need to be compressed before we can watch them at home on our tv.

(a)  

16.

ASCII stands for

a)

Absolutely Standard Computer Information Interface

b)

All States Change Information Interstate

c)

American Standard Code for Information Interchange

d)

After School Computer Information Intiative

17.

How many values can a bit store?

a)

two values at a time

b)

one of two values

c)

one of ten values

d)

ten values at a time

18.

In the settings menu, what is the minimum number of bits needed to represent the options?

a)

2

b)

4

c)

1

d)

3

19.

There are 32 bits in 4 bytes

a)

True

b)

False

20.

A computer uses 4 bits to represent numbers, which of the following would result in overflow?

a)

1 + 15

b)

2 x 4

c)

8 x 3

d)

12 + 3

21.

How ASCII many characters are encoded in 0101101000110001

a)

1

b)

2

c)

3

d)

none

22.

This could represent?

a)

english characters

b)

characters in any language

c)

an image

d)

sound

23.

Which of these is the best description of analog data?

a)

Data that varies between positive and negative values.

b)

Data that changes smoothly over time.

c)

Data that changes in discrete intervals over time.

d)

Data that has been sampled by a computer.

24.

A group of interconnected computing devices capable of sending or receiving data.

a)

Computing Device

b)

Computing Network

c)

Computer

d)

Linked Computers

25.

Which of the following best describes the protocols used on the Internet?

a)

The protocols of the Internet are secret to maintain the privacy and security

b)

The protocols of the Internet are used by all devices connected to the network

26.

Which of the following best describes the purpose of an IP address?

a)

IP addresses help reorder a message that has been divided into many packets

b)

IP addresses provide a unique number for identifying devices on the Internet

27.

A protocol for sending packets that does error-checking to ensure all packets are received and properly ordered.

a)

Transmission Control Protocol (TCP)

b)

User Datagram Protocol (UDP)

28.

A squirrel chews through one of the wires in a network and the network immediately begins using a different path. This is an example of?

a)

Scalability

b)

Fault-Tolerance

29.

The maximum amount of data that can be sent in a fixed amount of time, usually measured in bits per second.

a)

Path

b)

Router

c)

Redundancy

d)

Bandwidth

30.

The unique number assigned to each device on the Internet.

a)

IP Address

b)

Internet Protocol

c)

Redundancy

d)

Routing

31.

What does HTTP stand for?

a)

Hyed Text Transfer Position

b)

HyperText Transfer Protocol

c)

Hyper Text Transition Protocol

32.

A system of linked pages, programs, and files

a)

Redundancy

b)

Internet

c)

World Wide Web

d)

Network

33.

Differing access to computing devices and the Internet

a)

Routing

b)

Digital Divide

c)

Fault Tolerant

d)

Bandwidth

34.

A protocol for sending packets quickly with minimal error-checking and no resending of dropped packets.

a)

Transmission Control Protocol (TCP)

b)

User Datagram Protocol (UDP)

35.

Messages are divided and are sent to their destination. Sometimes they travel together, sometimes apart; Sometimes they arrive in order and sometimes they do not. How they get there is considered what?

a)

Routing

b)

Path

c)

Packet

d)

DataStream

36.

The inclusion of extra components so that a system can continue to work even if individual components fail.

a)

Redundancy

b)

Protocol

c)

Internet Protocol

d)

Packet

37.

A computer network consisting of interconnected networks that use standardized, open (nonproprietary) communication protocols.

a)

Internet

b)

Protocol

c)

Internet Protocol (IP)

d)

Network

38.

What does DNS stand for?

a)

Divided Naming System

b)

Domain Name Sorting

c)

Domain Name System

d)

Distributed Naming System

39.

A sequence of direct connections

a)

computing device

b)

computing system

c)

computing network

d)

path

40.

Which of the following best describes the protocols used on the Internet?

a)

The protocols of the Internet are designed by government agencies to ensure they remain free to use

b)

The protocols of the Internet are secret to maintain the privacy and security of people using them

c)

Each device connected to the Internet will use a protocol designed by the company that manufactured it

d)

The protocols of the Internet are open and used by all devices connected to the network

41.

Jesse purchases a new smartphone and is immediately able to use it to send a photo over the Internet to a friend who lives in a different country. Which of the following is NOT necessary to make this possible?

a)

Both devices are using the same shared and open protocols

b)

A single direct connection is established between any two devices connected to the Internet

c)

The data of the image is routed through a sequence of directly connected devices before arriving at its destination.

d)

Both devices are directly connected to at least one part of the Internet

42.

This diagram shows a number of computing devices connected to the Internet with each line representing a direct connection. What is the MINIMUM number of paths that would need to be broken to prevent Computing Device A from connecting with Computing Device E?

a)

1

b)

2

c)

3

d)

4

43.

This diagram shows a number of computing devices connected to the Internet with each line representing a direct connection. Device A is attempting to send data over the Internet to Device E. Which of the following is true of how the data will travel through the network?

a)

The data will always travel through Device B as it is the shortest path

b)

The data will never be sent to Device G since there are other shorter paths available

c)

It is possible that the data travels through any of the devices in the network before arriving at device E

d)

If the data travels through Device D then it will not travel through Device B

44.

Which of the following is true of how the Internet has responded to the increasing number of devices now using the network?

a)

The Internet protocols are changed every year to adapt to the new devices that have been connected to the network

b)

While the number of devices connected to the Internet has grown, the network itself has not grown

c)

The protocols of the Internet were designed to scale as new devices are added

d)

The protocols of the Internet are no longer necessary thanks to the large number of devices now connected to the network

45.

Which of the following is true of how packets are sent through the Internet?

a)

Packet metadata is only included on important packets to indicate they should get access to faster paths through the network

b)

Packet metadata is used to route and reassemble information travelling through the Internet

c)

Information sent through the internet is only encapsulated in packets if the message is too large to be sent as a datastream

d)

Information sent through the internet is split into two packets, one which contains the message and another which contains the metadata

46.

Emilee is watching an online video. The video is being sent to her laptop by a server over the Internet which splits the video into packets and sends them in the order they appear in the video. Which of the following is true about how the packets will arrive at her computer?

a)

The packets will always be received in the order that they were sent

b)

Either every packet will reach her computer or none of them will.

c)

Packets that arrive out of order will be sent back to the server.

d)

The packets may arrive out of order

47.

Which of the following best describes the purpose of an IP address?

a)

IP addresses provide a unique number for identifying devices that send and receive information on the Internet

b)

IP addresses assist in the reconstruction of a message that has been divided into many packets

c)

IP addresses indicate the location where an internet-connected computing device was manufactured

d)

IP addresses indicate how many times an individual packet has been requested by a router

48.

Which of the following Internet protocols is MOST important in reassembling packets and requesting missing packets to form complete messages?

a)

Transmission Control Protocol (TCP)

b)

Internet Protocol (IP)

c)

User Datagram Protocol (UDP)

d)

HyperText Transfer Protocol (HTTP)

49.

Which of the following Internet protocols is used to request and send pages and files on the World Wide Web?

a)

Transmission Control Protocol (TCP)

b)

Internet Protocol (IP)

c)

User Datagram Protocol (UDP)

d)

HyperText Transfer Protocol (HTTP)

50.

Two devices are connected to the Internet and communicating with one another. A squirrel chews through one of the wires in the network that is currently being used by the devices to communicate. The network immediately begins using a different path through the network and communication continues as normal.

This situation best exemplifies which principle?

a)

fault-tolerance

b)

scalability

c)

protocol

d)

pathing

51.
Consider these three statements: I. Interviewing potential users of the app. II. Writing the entire program code before testing any parts of it. III. Observing users attempting to use the app. Which of the above actions would usually be helpful in designing and developing the app?
a)
I and II only
b)
I and III only
c)
II and III only
d)
I, II, and III
e)
None of these would usually be helpful
52.
Which of the following best describes the purpose of a design specification?
a)
Tracking errors that arise through user testing
b)
Documenting comments that will need to be added to a program
c)
Describing the requirements for how a program will work or users will interact with it
d)
Listing detailed questions that will be asked of users during interviews
53.

What will the “background-color” of the “bottomButton” be when the program is finished running?

a)
red
b)
orange
c)
blue
d)
green
54.

If the user DOES click the button what color will “topButton” be when this program finishes running?

a)
red
b)
blue
c)
green
d)
orange
55.

The following program is run. The user DOES NOT click the "topButton" button. What will be displayed in the console?

a)
cat bird dog
b)

cat dog

c)
cat dog bird
d)

dog cat

56.

The following program is run. Then the user clicks the “bottomButton” TWICE and DOES NOT click the “topButton”. What will be displayed in the console?

a)
cow pig chicken
b)

chicken cow cow

c)

chicken pig pig

d)
chicken pig cow
e)

bow chicka wow wow

57.
The following program is run. Then the user clicks the “bottomButton” TWO TIMES. What will be displayed in the console?
a)
apple banana cherry cherry dragon fruit
b)
banana dragon fruit cherry cherry
c)
banana dragon fruit apple apple
d)
banana cherry cherry dragon fruit
e)
chicken chicken chicken chicken chicken chicken chicken chicken chicken
58.
Which line of code in this program is MOST likely to result in an error?
a)
Line 1
b)
Line 2
c)
Line 3
d)
Line 4
e)
chicken chicken chicken chicken chicken chicken chicken chicken chicken
59.
Which of the following BEST describes the differences between sequential and event-driven programming? A) In sequential, commands run one at a time. In event-driven, all commands run at the same time. B) In sequential, commands run in the order they are written. In event-driven, some commands run in response to user interactions or other events. C) In sequential, each command is run many times in sequence. In event-driven, all commands are run a single time as an event. D) In sequential, commands run faster than in event-driven programming.
a)
A
b)
B
c)
C
d)
D
60.
Which of the following is NOT a reason to include comments in programs?
a)
Comments help the computer decide whether certain components of a program are important.
b)
Comments help programmers debug issues in their own code
c)
Comments help document how code was written for other programmers to use
d)
Comments enable programmers to track their work throughout the development process
61.
A company that develops apps wants to create/assemble a team of collaborative developers/coders from a variety of professional and cultural backgrounds to create a new app. Which of the following is NOT a likely benefit of creating such a team?
a)
It will eliminate the need to do testing of the app.
b)
It can help the team anticipate the needs of a variety of users.
c)
It can help the team avoid bias in the app.
d)
The team can reflect and utilize the strengths of the individual team members.
62.
a)
A
b)
B
c)
C
d)
D
63.
Which of the following actions are generally helpful in program development?
a)
I and II only
b)
I and III only
c)
II and III only
d)
I, II, and III
64.
Which of the following is needed for DineOutHelper to recommend a restaurant for the group? (Select ALL that apply.)
a)
Each group member's list of food allergies or dietary restrictions.
b)
Alejandra's geographic location.
c)
The usernames of the people in Brandon and Cynthia's contact lists.
65.
Which of the following is not provided by Alejandra but is necessary for DineOutHelper to recommend a restaurant for the group? (Select ALL that apply.)
a)
Brandon's contact list.
b)
Information about which restaurants Brandon and Cynthia have visited in the past.
c)
Information about which food allergies and dietary restrictions can be accommodated at different restaurants near Alejandra.
66.
Three students in different locations are collaborating on the development of an application. Which of the following stratagies is LEAST likely to faciliate collaboration among the students?
a)
A
b)
B
c)
C
d)
D
67.
a)
A
b)
B
c)
C
d)
D
68.
a)
A
b)
B
c)
C
d)
D
69.

What is the User Interface

a)

Elements of which the user controls

b)

Elements of which the coder controls

c)

An interface with code

d)

An interface with options

70.

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

a)

onEvent

b)

Bug

c)

Moth

d)

Fly in the Ointment

71.

What is output by line 6?

(a)  

72.

What is output by line 5?

(a)  

73.

What is output by the program?

a)

less than 10

b)

less than 20

c)

less than 30

d)

30 or more

74.

What is output by the program?

a)

Option A

b)

Option B

c)

Option C

d)

Option D

e)

Option E

75.

What is needed to complete the code?

(a)  

76.

What will the value of bags be at the end of the program?

(a)  

77.

What is it when a function is used within your code - this likely happens multiple times in a program?

a)

called

b)

declared

c)

created

d)

defined

78.

What is it called when you define a function?

a)

called

b)

declared

c)

created

d)

typed

79.

What is happening in this code?

a)

the variables are being created

b)

the function updateScreen is being declared

c)

the function updateScreen is being called

d)

the function updateScreen is being updated

80.

What is happening in this code?

a)

the variables are being created

b)

the function singChorus is being declared

c)

the function singChorus is being called

d)

the function singChorus is being updated

81.

What are the benefits of creating functions?
There is more than one answer.

a)

removing repeated code

b)

keeping code organized

c)

allowing programmers to be lazy

d)

making it harder for people to read your code

e)

makes it easier to update your code

82.

Categorize these items.

Categorize the following

a named group of programming instructions

also known as a procedure

a command that executes the code within a function

should only occur once

can be used multiple times in a program

holds one value

includes strings, numbers, and booleans

a named reference to a value that can be used repeatedly throughout a program

affects the flow of control by using different statements based on values of Boolean expressions

if-then-else statements

Functions
Function call
Variables
Conditionals
83.

You should only use var once per variable because otherwise it could cause errors in your program.

a)

True

b)

False

84.

You should create functions at the top of your program and variables at the bottom of your program.

a)

True

b)

False

85.

You should create variables outside of onEvents.

a)

True

b)

False

86.

Which part of this code could be made into a function? (There are two areas)

87.

It is best if you declare functions during code creation or before you write your program.

a)

True

b)

False

88.

What will be the order of the numbers printed in the console when this program is run?

a)

3 7 10 3 7 10

b)

3 10 7

c)

3 10 7 10 7

d)

3 7 10

89.

What is the output of the following JavaScript code segment?

a)

5hello

b)

5 + hello

c)

error on num + str: type mismatch

d)

result

90.

What is the output of the following JavaScript code segment?

a)

10

b)

error on str1 + str2: type mismatch

c)

55

d)

result

91.

Consider the following segment given in pseudo code. What will be displayed if grade is set to 70?

a)

You passed!

b)

Time to start studying again!

c)

You passed! and Time to start studying again!

d)

Nothing will be displayed

e)

An error will occur on line 7; you cannot have an IF inside an ELSE statement

92.

Consider the JavaScript code segment below. Which statement should be used in place of <missing code> such that the alarm is set to 9:00 am on weekends, and 6:30 am on weekdays.

a)

day == "Saturday"

b)

day == "Sunday"

c)

(day == "Saturday") || (day == "Sunday")

d)

(day == "Saturday") && (day == "Sunday")

e)

day != "Monday"