wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

APCSP All Questions

Total questions: 112

Worksheet time: 2hrs 11mins

Name
Class
Date
1.
This number system has a symbol to represent each of the values 0-15?
a)
Binary Number System
b)
Decimal Number System
c)
Hexadecimal Number System
d)

Octal Number System

2.

Which of the following is TRUE regarding lossless and lossy compressions?

a)

An example of lossless compression is a .jpg file

b)

Lossless uses inexact approximations while lossy does not·

c)

You can completely reconstruct lossless but not lossy compression ·

d)

You can completely reconstruct lossy but not lossless compression

3.
What color is 00FF00?
a)
Green
b)
Red
c)
Blue
d)
Yellow
4.
How many bits are in a byte?
a)
2
b)
8
c)
16
d)
128
5.

Which of the following is FALSE regarding file sizes?

a)

1 Terabyte = 1,000 kilobytes

b)

1 Petabyte = 1,000 Terabytes

c)

1 Megabyte = 1,000 bytes

d)

1 Terabyte = 1,000 gigabytes

6.

Your best friend has 50 small images to send to you; each of which is 500 KB. How much space do they take up overall in MB?

a)

25 MB

b)

250 MB

c)

2.5 MB

d)

25,000 MB

7.

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

a)

1,000 times bigger

b)

10,000 times bigger

c)

100,000 times bigger

d)

1,000,000 times bigger

8.
How you would alter the RGB settings to brighten it?
a)
increase the RGB values
b)
decrease the RGB values
9.
What is the purpose of DNS?
a)
It assigns a unique address to every device on the Internet.
b)
It returns the IP address given the name of a website.
c)
It forwards a message from one machine to another.
d)
It has more bits so you can make a longer, unique address.
10.
What is the purpose of a router?
a)
It assigns a unique address to every device on the Internet.
b)
It returns the IP address given the name of a website.
c)
It forwards a message from one machine to another.
d)
It has more bits so you can make a longer, unique address.
11.
Why is IP v4 going to be replaced by IP v6?
a)
IP v6 is easier to use.
b)
IP v4 does not work on old hardware.
c)
IP v4 was not encrypted.
d)
We are running out of IP v4 addresses.
12.
Given the following network diagram, what is the minimum number of connections that must be broken or removed before computer E can no longer communicate with computer B?
a)
1
b)
2
c)
3
d)
4
13.
Which of the following protocols is primarily used to establish a secure connection between browsers and servers so that no data is lost?
a)
HTTP
b)
SMTP
c)
SSL/TLS
d)
TCP/IP
14.
"A software application that allows people to access, retrieve and view information on the internet." This well describe ...
a)
Web browser
b)
Search Engine
c)
Internet
d)
World Wide Web
15.
"An information system on the Internet that allows documents to be connected to other documents by hypertext links" This well describe for ....
a)
Internet
b)
Web browsers
c)
Search Engine
d)
World Wide Web
16.
Chunks of data sent over the internet are known as...
a)
packets
b)
protocol
c)
port
d)
message
17.
A distributed database that links computer names and their IP addresses
a)
DNS (Domain Name Service)
b)
ISP (Internet Service Provider)
c)
MAC address
d)
modem numbers
18.
To change the domain name to an IP address the ISP uses a _______________
a)
DNS server
b)
Switch
c)
Web server
d)
Protocol
19.
_________ are the rules for communication used by computers.
a)
Protocols
b)
Layers
c)
DNS
d)
Virtual networks
20.
An ISP provides access to the __________ infrastructure for the users.
a)
Internet
b)
Protocols
c)
Router
d)
Layers
21.

____________ are used in the place of IP address because they are easier to remember by humans.

a)

Domain names

b)

Protocols

c)

Routers

d)

Hosts

22.

How does the Internet know where to send data?

a)

IP

b)

TCP

c)

ISP

d)

none of these

23.

Which IP addressing system has more addresses?

a)

IPv4

b)

IPv5

c)

IPv6

d)

IPv7

24.

How many bits are in an IPV4 address?

a)

32

b)

64

c)

128

d)

256

25.
How many bits are in an IPV6 address?
a)
32
b)
64
c)
128
d)
256
26.

Routers do not monitor current network conditions in determining the fastest route for packets to take in reaching their destinations.

a)

True

b)

False

27.

When a packet arrives at a destination computer, an acknowledgement is sent to the sender by the __________, letting them know they don’t need to resend that packet.

a)

DNS

b)

TCP

c)

IP

d)

HTML

28.

In the Lesson 11 activity with the Internet Simulator, you sent 8-ASCII-characters worth of data across to another person. What types of challenges did this present (answer two of the following)?

a)

Packets have a maximum size

b)

You could only send letters of the alphabet and not numbers

c)

Some percentage of packets were dropped no matter what

d)

Packets have a minimum size

29.

According to the domain name system (DNS), which of the following is a subdomain of the domain titanpride.com?

a)

about.titanpride.com

b)

titanpride.co.uk

c)

titanpride.com.org

d)

titanpride.org

30.

Which is NOT a benefit in splitting up messages into packets?

a)

It guarantees that the message will arrive in order to it's destination

b)

It's easier to reroute individual packets if a faster route opens up

c)

Lesser change the lines get clogged up with a single large message

d)

Only a small amount of data would need to be resent if a small packet is corrupted or dropped

31.
The equality operator is used to compare two values, and returns a Boolean (true/false). 
a)
=
b)
==
c)
<=
d)
>=<
32.
A precise sequence of instructions for processes that can be executed by a computer
a)
Abstraction
b)
Algorithm
c)
Aggregation
d)
ASCII
33.
The universally recognized raw text format that any computer can understand.
a)
ASCII
b)
API
c)
JAVA
d)
Python
34.
In programming, an expression that evaluates to True or False. 

a)
Abstraction
b)
Boolean Expression
c)
Aggregate Expression
d)
None of the above
35.
A variable with local scope is one that can only be seen, used and updated by code within the same scope. Typically this means the variable was declared (created) inside a function -- includes function parameter variables. 
a)
Local variable
b)
Home variable
c)
Common variable
d)
Global variable
36.
Any sequence of characters between quotation marks (ex: "hello", "42", "this is a string!").
a)
Selection
b)
String
c)
Summary
d)
Protocol
37.
On-screen objects, like buttons, images, text boxes, pull down menus, screens and so on.
a)
UI Elements
b)
Type Elements
c)
Control Elements
d)
All of the above
38.
The visual elements of an program through which a user controls or communications the application. Often abbreviated UI.
a)
Unlimited Internet
b)
User Interface
c)
Universal Images
d)
User Images
39.
Dictates what portions of the code can "see" or use a variable, typically derived from where the variable was first created. (See Global v. Local)
a)
Variable Scope
b)
Variable View
c)
Variable Protocol
d)
Variable Interface
40.
A placeholder for a piece of information that can change.
a)
Table
b)
Variable
c)
Shelf
d)
Data
41.

Consider the following segment given in pseudo code (see reference from previous question):

IF (grade >= 70)

{

DISPLAY("You passed!")

}

ELSE

{

IF(grade <= 70){

DISPLAY("Time to start studying again!")

}

}

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

42.

What is the output of the following JavaScript code segment?


var str1 = "5";

var str2 = "5";

var result = str1 + str2;

console.log(result);

a)

10

b)

error on str1 + str2: type mismatch

c)

55

d)

result

43.

When is a compound condition using the logic operator AND true?

a)

When either of the conditions are true

b)

When both of the conditions are false

c)

When both of the conditions are true

d)

When the NOT operator is also used

44.
Which are examples of Boolean operators?
a)
AND, OR and NOT
b)
Greater than (>), less than (<) and equal to (=)
c)
Multiplication (*), subtraction (-), addition (+) and division (/)
d)
Picking random numbers
45.
Which sentence best describes iteration?
a)
Code which is in the correct order.
b)
Code which can repeat a set number of times.
c)
Code which will only run if certain criteria is met.
d)
Code which can repeat either a set number of times or when a condition is met.
46.
An algorithm is..
a)
.. A set of instructions
b)
... A motion block
c)
... A character
d)
... A loop statement 
47.
A variable is used to:
a)
Store a value in memory
b)
Draw a circle
c)
Store a value that does not change
d)
Draw a rectangle
48.
Which are examples of relational operators?
a)
AND, OR and NOT
b)
Greater than (>), less than (<) and equal to (=)
c)
Multiplication (*), subtraction (-), addition (+) and division (/)
d)
Picking random numbers
49.
Which are examples of operators?
a)
AND, OR and NOT
b)
Greater than (>), less than (<) and equal to (=)
c)
Multiplication (*), subtraction (-), addition (+) and division (/)
d)
Picking random numbers
50.
What is decomposition?
a)
Breaking a complex problem down into smaller problems and solving each one individually.
b)
Removing of unnecessary detail so that the main processes can be understood better.
c)
Removing of detail so that the main processes can be understood better.
d)
A logical way of getting from the problem to the solution.
51.
A _____ can hold letters and number
a)
Integer
b)
String 
52.

Which of the following is FALSE regarding ELSE IF statements?

a)

You add an ELSE IF when you have another condition you want to check.

b)

You are limited to only one ELSE in your code

c)

Each condition in an ELSE IF is checked from top to bottom

d)

The final ELSE clause is executed if all the previous conditions evaluated to false.

53.

Which of the following statements regarding AND/OR operators are FALSE?

a)

true && true = true

b)

true && false = true

c)

false || true = true

d)

false || false = false

54.

Which of the following statements regarding AND/OR/NOT operators are TRUE?

a)

!(true) = true

b)

true || true = false

c)

false && true = true

d)

false || true = true

55.

Based on the following, determine whether each expression is TRUE or FALSE


var season= “Spring”;


!(season== “Summer”)

a)

True

b)

False

56.

Based on the following, determine whether each expression is TRUE or FALSE


var season= “Spring”;


!(3 > 2)

a)

True

b)

False

57.

Based on the following, determine whether each expression is TRUE or FALSE


var score= 80;


(score != 90) && (score > 70)

a)

True

b)

False

58.

Based on the following, determine whether each expression is TRUE or FALSE


var score= 80;


(score > 90) && (score < 100)

a)

True

b)

False

59.

Based on the following, determine whether each expression is TRUE or FALSE


var month = “March”;


(month == “Mar”) || (month== “March”)

a)

True

b)

False

60.

Based on the following, determine whether each expression is TRUE or FALSE


var month = “March”;


(month== “April”) || (10<12)

a)

True

b)

False

61.

UI Elements include all of the following EXCEPT:

a)

Images

b)

Functions

c)

Pull Down Menus

d)

Text Boxes

62.

It's important to understand in Event-Driven programming that:

a)

Only Users trigger events

b)

Only Events trigger code

c)

Both Users trigger events and events trigger code

d)

Neither Users trigger events or events trigger code

63.

Which of the following would be both a descriptive AND acceptable ID to give to a button you want to insert?

a)

1startButton

b)

start Button1

c)

start_button_1

d)

button1

64.

Which of the following is FALSE with regards to the command console.log?

a)

You can use this command in sending messages to yourself to verify the program is doing what you think it's doing which helps prevent errors down the line.

b)

Using this command is a way to debug your program

c)

This command cannot be used in determining potential errors down the line in your programming

d)

Console.log is a way to display a simple plaintext output

65.

Trace the code, and choose the option that correctly shows what will be displayed.


1 var a = 4;

2 var b = 8;

3 var c = 10;

4 a = a + b;

5 b = a + b;

6 c = a + b;

7 console.log ("a:" + a + "b:" + b + "c:" + c);

a)

a = 12, b = 20, c = 32

b)

a = 12, b = 12, c = 12

c)

a = 4, b = 12, c = 16

d)

a = 12, b = 20, c = 24

66.

Look at the following:


var age = "20 + 5"


As a result of the above, using this variable throughout the remainder of this program would result in a value of 25.

a)

True

b)

False

67.

In the above picture, this would be an example of a:

a)

Local Variable

b)

Nested Variable

c)

Global Variable

d)

Variable Scope

68.

In the above picture, this would be an example of a:

a)

Local Variable

b)

Nested Variable

c)

Global Variable

d)

Variable Scope

69.

The following would be considered an example of a string:


'This is an example of a string'

a)

True

b)

False

70.

Read the following line of code:


var statement = "Hello my name is " + firstName);


This would be considered an example of:

a)

concentrate

b)

concatenate

c)

conditional statement

d)

selection

71.

Looking at the code above, where will the robot end up?

a)
b)
c)
d)

None of these images

72.

Looking at the code above, where will the robot end up?

a)
b)
c)
d)

None of these images

73.

Looking at the code above, where will the robot end up?

a)
b)
c)
d)

None of these images

74.

Looking at the coding that takes place above, why are these functions an example of abstraction?

a)

Creating the code above helps you think of your code at a higher level, making sure you don't get lost in all the little details

b)

You are able to "box up" and name the code necessary to draw the rectangle

c)

Once the function has been tested and it works, you don't have to worry about the details of how it works anymore

d)

All of these choices are true

75.

In creating the snowflake you see above, which of the following function names would probably NOT be used in your code?

a)

drawSnowflake()

b)

drawBranch()

c)

drawCross()

d)

Any of these three (functions can be named however you want)

76.
Which bit-sending technology is used for Ethernet cables?
a)
Electric voltage
b)
Alternating frequencies
c)
Beam of light
d)
Magic
77.
Which bit-sending technology is used for fiber optic cables?
a)
Electric voltage
b)
Alternating frequencies
c)
Beam of light
d)
Magic
78.

Bandwidth is the transmission capacity of a computer network. (How wide the internet highway is)

a)

TRUE

b)

FALSE

79.

Convert the decimal 128 to binary:

a)

10000000

b)

01111110

c)

10000001

d)

11001100

80.

Convert the decimal 65 to binary:

a)

01100001

b)

00100001

c)

01000001

d)

00100101

81.

Convert the decimal 254 to binary:

a)

11110000

b)

11111100

c)

11111111

d)

11111110

82.

Convert the binary number 00010001 to decimal:

a)

17

b)

27

c)

37

d)

47

83.

Convert the binary number 11001100 to decimal:

a)

224

b)

134

c)

104

d)

204

84.

Convert the binary number 00100100 to decimal:

a)

26

b)

36

c)

46

d)

56

85.
Transmission capacity measure by bit rate
a)
Bandwidth
b)
Latency
c)
Ability
d)
HTTP
86.
A way of representing information using only two options
a)
Binary
b)
Multiple Choice
c)
ASCII
d)
API
87.

The number of bits that are conveyed or processed per unit of time:

a)

Latency

b)

Bit rate

c)

Speed

d)

4G

88.
A contraction of "Binary Digit". It is the single unit of information in a computer, typically represented as a 0 or 1.
a)
BYTE
b)
BIT
c)
Binary
d)
BOO
89.

Which of these is the correct sequence for the place values for binary numbers?

a)

1, 2, 4, 8, 16, 32, 64, 128

b)

1, 2, 4, 6, 8, 10, 12, 14, 16

c)

1, 2, 3, 4, 5, 6, 7, 8

d)

0, 1

90.
How is our number system different from the binary system?
a)
Our number system is base-5; the binary system is base-3
b)
Our number system is base-10; the binary system is base-2
c)
Our number system is base-10; the binary system is base-1
d)
Our number system is base 100; the binary system is base-2
91.
What type of test is most similar to binary?
a)
An essay test
b)
Multiple choice
c)
True or False
d)
Fill-in-the-blanks
92.

How high can you count in binary?

a)

As high as you want

b)

Up to 128

c)

Up to 2

d)

Up to 256

93.
What is the largest integer that can be represented using 8 bits?
a)
115
b)
235
c)
255
d)
256
94.

During your Lesson 3 Activity in sending binary messages, you sent 4 bits to your partner while another 4 bits came back from them as well. This back and forth exchange took a total of 16 seconds. Calculate the bit rate of this entire transmission.

a)

.5 bits/second

b)

2 bits/second

c)

4 bits/second

d)

.25 bits/second

95.

The technical word in computer science for a set of rules governing the exchange or transmission of data between devices is called:

a)

Procedures

b)

Terms

c)

Binary

d)

Protocol

96.

We learned in Lesson 3 (with the flashlight single test) that all of the following are problems or issues you may run across with your binary messages EXCEPT:

a)

Speed

b)

Timing

c)

Reaching the limit on how many bits can be sent

d)

Coordination

97.

As you learned when creating your number system in Lesson 4, you must have the following for this system to work EXCEPT:

a)

Can only include 1 and 0

b)

An agreement on the fundamental ordering of the symbols

c)

A set of unique symbols

98.

What is the minimum number of bits you would need to encode the 26 letters of the alphabet plus a space -- for a total of 27 characters?

a)

2 bits

b)

3 bits

c)

5 bits

d)

6 bits

99.

With regards to representing digital data, the same value (number) can have a different representation depending on the number system used to represented it.

a)

TRUE

b)

FALSE

100.

8 bits is enough to represent 256 different numbers. How many total bits do you need to represent 512 (twice as many) numbers?

a)

9 bits

b)

10 bits

c)

16 bits

d)

17 bits

101.

Look at the partial chart above of the ASCII values. According to ASCII character encoding, which of the following letters is represented by the 8-bit binary value: 0100 0010

a)

ASCII Character A

b)

ASCII Character B

c)

ASCII Character D

d)

The table does not contain the value presented by this binary number

102.
When criminals attempt to obtain personal data by sending email impersonating legitimate companies, it is called 
a)
DDoS
b)
Caesar
c)
Vigenere
d)
phishing
103.

Above is an image from Google Trends that plots Cats and Dogs.


Which of the following is NOT a reasonable conclusion you can come up with looking at this chart?

a)

The sharp spike in dogs trends could be due to an increase in dog attack stories during that year

b)

This chart proves that people love dogs more than they do cats

c)

People search for dogs more than they do cats

d)

It's possible there were more funny dog videos than cat videos during this period of time

104.

What does the "s" in "https" refer to?

a)

It's the plural of http - a more robust version of http that runs on multiple channels.

b)

s is for "secure" - a version of http that is encrypted.

c)

s is for "simple" - a simplified version of http that runs faster on modern computers

d)

s is for "standard" - to distinguish the original http from non-standard versions like httpv and httpx s is for "standard" - to distinguish the original http from non-standard versions like httpv and httpx

105.

Which makes for a password that is harder to crack?

a)

A word from the dictionary

b)

8 random characters that include numbers and punctuation

c)

A 16-character password that is all letters of the alphabet

d)

A 150-character password that is all the same character

106.

This type of cipher involves a shift for each letter of the plaintext where the amount of shift is determined by the “key” which translates letters of the alphabet to an amount of shift:

a)

Caesar Cipher

b)

Random Substitution Cipher

c)

Vigenere Cipher

d)

Public Key Encryption Cipher

107.

This type of cipher shifts the alphabet by some number of characters:

a)

Caesar Cipher

b)

Random Substitution Cipher

c)

Vigenere Cipher

d)

Public Key Encryption Cipher

108.

This type of cipher maps each letter of the alphabet to a randomly chosen other letters of the alphabet:

a)

Caesar Cipher

b)

Random Substitution Cipher

c)

Vigenere Cipher

d)

Public Key Encryption Cipher

109.
If you were to use a caeser cipher with a key of 3 shifts to the left, how would you encrypt the word: Cipher?
a)
ZAMEBO
b)
ZOMEBO
c)
ZFMEBO
d)
ZFMEBA
110.
Taking a secret message and reproducing the original plain text is known as?
a)
Vigenere Cipher
b)
Encryption
c)
Random Substitution cipher
d)
Decryption
111.
An original message which has been discovered after unscrambling letters can be called a?
a)
Encrypted message
b)
Decrypted message
c)
Encryption key
d)
Public key
112.

Which of the following passwords is the strongest?

a)

3456789

b)

COHS_18#

c)

ilovecomputerscience

d)

abc1234_#Z