wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

AP Computer Science Principles 1

Total questions: 20

Worksheet time: 30mins

Name
Class
Date
1.
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.
2.
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.
3.
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.
4.
Which of the following is an IP address?
a)
www.google.com
b)
192.168.2.25
c)
1024.2048.64.512.256
d)
A5:D4:23:56:FF:A4
5.
Which of the following is an IP address?
a)
www.google.com
b)
192.168.2.25
c)
1024.2048.64.512.256
d)
A5:D4:23:56:FF:A4
6.

What is an Event?

a)

An action that causes something to happen

b)

An action that doesn’t do anything in the App

c)

An action that will allow you to look up and event

d)

Something that is happening in the calendar

7.

What is an Event?

a)

An action that causes something to happen

b)

An action that doesn’t do anything in the App

c)

An action that will allow you to look up and event

d)

Something that is happening in the calendar

8.
According to the domain name (DNS), which of the following is a subdomain of the domain example.com?
a)
about.example.com
b)
example.co.uk
c)
example.com.org
d)
example.org
9.
Which of the following activities poses the greatest personal cybersecurity risk?
a)
Making a purchase at an online store that uses public key encryption to transmit credit card information
b)
Paying a bill using a secure electronic payment system
c)
Reserving a hotel room by e-mailing a credit card number to a hotel.
d)
Withdrawing money from a bank account using an automated teller machine (ATM)
10.
Which of the following is LEAST likely to indicate a phishing attack?
a)
An e-mail from your bank asks you to call the number on your card to verify a transaction
b)
An e-mail from a merchant asks that you click on a link to reset your password
c)
An e-mail from a utility company asks you to enter your date of birth and social security number for verification purposes.
d)
An e-mail indicates that you have won a large sum of money and asks you to enter your bank account number so that the money can be transferred to you
11.
Which of the following is considered an unethical use of computer resources?
a)
Downloading freeware or shareware onto your home computer
b)
Purchasing a game from an app store and downloading it directly to a mobile device
c)
Purchasing a single-user copy of photo editing software and installing it on all computers in a computer lab
d)
Searching online for an electronic version of a school textbook
12.
Which of the following statements are true about using a high-level programming language instead of a lower-level language?
 I.  Programs written in a high-level language are generally easier for people to read than programs written in a low-level language.

II.   A high-level language provides programmers with more abstractions than a low-level language.
III.
Programs written in a high-level language are generally easier to debug than programs written in a low-level language.
a)
(A)  I only
b)
(A)  I and III only
c)
(A)  II and III only
d)
(A)  I, II, and III
13.
A user enters a Web address in a browser, and a request for a file is sent to a Web server. Which of the following best describes how the file is sent to the user?
a)
The file is broken into packets for transmission. The packets must be reassembled upon receipt.
b)
The file is broken into packets for transmission. The user’s browser must request each packet in order until all packets are received.
c)
The server attempts to connect directly to the user’s computer. If the connection is successful, the entire file is sent. If the connection is unsuccessful, an error message is sent to the user.
d)
The server repeatedly attempts to connect directly to the user’s computer until a connection is made. Once the connection is made, the entire file is sent.
14.
Two computers are built by different manufacturers. One is running a Web server and the other is running a Web browser. Which of the following best describes the ability of the two computers to communicate with each other across the Internet?
a)
The computers cannot communicate because different manufacturers use different communication protocols.
b)
The computers can communicate, but additional hardware is needed to convert data packets from one computer’s protocol to the other computer’s protocol.
c)
The computers can communicate directly only if the messages consist of text; other formats cannot be interpreted across computers.
d)
The computers can communicate directly because Internet communication uses standard protocols.
15.

Consider the following numbers. Binary 1100, Decimal 11, and Hexadecimal D. Which of the following lists the numbers in order from least to greatest?

a)

Binary 1100, Decimal 11, Hexadecimal D

b)

Decimal 11, Binary 1100, Hexadecimal D

c)

Decimal 11, Hexadecimal D, Binary 1100

d)

Hexadecimal D, Decimal 11, Binary 1100

16.
Which of the following has the greatest potential for compromising a user’s personal privacy?
a)
A group of cookies stored by the user’s Web browser
b)
The Internet Protocol (IP) address of the user’s computer
c)
The user’s e-mail address
d)
The user’s public key used for encryption
17.

Which of the following activities poses the greatest personal cybersecurity risk?

a)

Making a purchase at an online store that uses public key encryption to transmit credit card information

b)

Paying a bill using a secure electronic payment system

c)

Reserving a hotel room by e-mailing a credit card number to a hotel

d)

Withdrawing money from a bank account using an automated teller machine (ATM)

18.

Which of the following is LEAST likely to indicate a phishing attack?

a)

An e-mail from your bank asks you to call the number on your card to verify a transaction

b)

An e-mail from a merchant asks that you click on a link to reset your password

c)

An e-mail from a utility company asks you to enter your date of birth and social security number for verification purposes

d)

An e-mail indicates that you have won a large sum of money and asks you to enter your bank account number so that the money can be transferred to you

19.

A program is expressed in a programming language. Which of the following is true of the program?

a)

The program can also be expressed as binary code, but will be more easily understood by humans when expressed in a higher-level programming language.

b)

The program can also be expressed as binary code, which will reduce the likelihood of errors.

c)

The program cannot be expressed as binary code, because binary code can only be used to represent data.

d)

Some parts of the program can be expressed as binary code, but operations must be expressed using a higher-level programming language.

20.

A flowchart is a way to visually represent an algorithm. The flowchart above uses the building blocks from the table above.


Which of the following statements best describes the behavior of the algorithm depicted in the flowchart?

Assume a always starts greater than b.

a)

It displays the sum of a and b.

b)

It displays the difference between a and b.

c)

It displays the product of a and b

d)

It runs in an infinite loop.