Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Science Placement Test

Total questions: 168

Worksheet time: 1hrs 24mins

Name
Class
Date
1.
First Name
4 lines
2.
Last Name
4 lines
3.
Email
4 lines
4.
Student ID
4 lines
5.
Current Grade Level
a)
Freshman (9th)
b)
Sophomore (10th)
c)
Junior (11th)
d)
Senior (12th)
6.
Select your counselor below:
a)
Jack Acosta
b)
Ngoc Bui
c)
Diego Chamu
d)
Courtney Goodwin
e)
Ana Ulloa
7.
How would I tell an object to move forward 100 pixels?
a)
forward 100
b)
move(100)
c)
Object, move forward 100 pixels
d)
forward(100)
8.
When using the circle() command, what value do we put inside the parentheses?
a)
The radius of the circle
b)
The center of the circle
c)
The diameter of the circle
d)
The width of the circle
9.
A low-level programming language:
a)
is friendlier to humans than a high-level language
b)
requires less execution time than a high-level language
c)
can be run on any platform
10.
True or False: Most of the widely used computer programs of today are high-level languages.
a)
True
b)
False
11.
Which of the following is a difference between a compiled and an interpreted language?
a)
A compiled language is considered low-level while an interpreted language is considered high-level.
b)
Programs written in a compiled language are run directly by the computer while programs that use an interpreted language need additional software to run.
c)
Programs written in an interpreted language can be partially run before an error is found while a program written in a compiled language will not begin to run if any errors exist in the code.
d)
None of these
12.
Where does an object always start in the grid world?
a)
At the (0,0) coordinate in the bottom left hand corner of the canvas
b)
At the (-200,-200) coordinate in the bottom left hand corner of the canvas
c)
At the (0,0) coordinate in the middle of the canvas
d)
At the (-200,-200) coordinate in the middle of the canvas
13.
Which commands would move an object forward 100 pixels? A. forward(100) B. backward(-100) C. forward(-100)
a)
A, B, and C
b)
A only
c)
B and C
d)
A and B
14.
How far does object need to move from the starting position to reach the end of the right side of the canvas?
a)
50 pixels
b)
100 pixels
c)
200 pixels
d)
400 pixels
15.
If you want an object to move forward 100 pixels without making a line, what set of commands should you write?
a)
penup() forward(100)
b)
forward(100) penup()
c)
penup(100)
d)
forward(-100)
16.
The initial object always starts facing which direction?
a)
North
b)
South
c)
East
d)
West
17.
If object is facing right, which of the following commands can be used to turn it to face up? A. left(90) B. turn(up) C. right(270) D. setposition(90)
a)
A only
b)
A and C
c)
A, B, and C
d)
A, B, C, and D
18.
If object started facing right, which direction would she be facing after we ran the following code? left(90) left(90) right(90)
a)
Up
b)
Down
c)
Right
d)
Left
19.
Which of the following is NOT a reason for loops are useful when writing code?
a)
Loops help us write the same program with fewer lines of code
b)
Loops let us make shapes of multiple sizes
c)
Loops make it easier to alter code once it’s written
d)
Loops make our code easier to read
20.
The following Python loop draws 3 circles on the screen. If I wanted to alter this loop to draw 10 circles, how many lines would my code be? for i in range(3): circle(25) forward(50)
a)
1 line
b)
3 lines
c)
10 lines
d)
30 lines
21.
If object starts at the left edge of the canvas and moves forward 50 pixels, how many times will this code need to be repeated to have the object reach the right edge of the canvas?
a)
4 times
b)
8 times
c)
10 times
d)
50 times
22.
Which lines of the code below will be repeated 4 times? 1 | penup() 2 | for i in range(4): 3 | pendown() 4 | circle(25) 5 | forward(50) 6 | backward(200)
a)
3 and 4
b)
2, 3, and 4
c)
3, 4, and 5
d)
3, 4, 5, and 6
23.
Why do certain words change color in Python?
a)
To show that they are recognized as keywords
b)
To tell you that these words cannot be used in Python code
c)
To show you that these words can be clicked
d)
To tell Python to skip these words when running the code
24.
If I use the Python command right(180), which way will the object turn?
a)
It will turn in a circle
b)
It will turn around
c)
It will turn to face up
d)
It will turn to face left
25.
The setposition() command moves an object to a coordinate and:
a)
turns it to face left
b)
does not turn it
c)
turns it to face up
d)
turns it to face down
26.
If you want the object to complete its command immediately, which speed value would you use?
a)
0
b)
1
c)
5
d)
10
27.
If you want three circles to be drawn next to each other (as seen in the image below), after drawing the first circle, how far would you need to move the object before drawing the next circle?
a)
100 pixels
b)
50 pixels
c)
The circle's radius
d)
The circle's diameter
28.
Which of the following sets of commands to draw a square would be the easiest to use with a for loop?
a)
A
b)
B
c)
C
d)
D
29.
We would like to create an image on the canvas as shown below: Which of the following sets of commands would not display this result?
a)
A
b)
B
c)
C
d)
D
30.
How many circles will be drawn on the canvas when the following program is run? for i in range(3): circle(50) forward(50) left(90) circle(50) forward(50) right(90)
a)
1 circle
b)
2 circles
c)
3 circles
d)
6 circles
31.
Which command will cause the object to move immediately through the commands?
a)
speed(0)
b)
speed(1)
c)
speed(5)
d)
speed(10)
32.
Which of the following is the correct way to paint the canvas red?
a)
bgcolor("red")
b)
bgcolor(red)
c)
color("red")
d)
color(red)
33.
We would like to create an image on the canvas as shown below: We have written the following program, but it is not working correctly: 1 | for i in range(4): 2 | circle(20) 3 | right(180) 4 | circle(20) 5 | right(180) 6 | forward(40) 7 | goto(0, 0) What about the program needs to be changed in order to correctly draw the image?
a)
The for loop should only be run 2 times instead of 4.
b)
Since lines 2 and 3 are being repeated on lines 4 and 5, they need to be written inside another for loop.
c)
Line 6 should use a value of 20.
d)
Line 7 should not be indented.
34.
We are using the following program to draw a triangle on the canvas: Which lines of the program could be placed inside a for loop to shorten the program?
a)
Lines 3-10
b)
Lines 4-9
c)
All lines, 1-12
d)
A for loop cannot be used to shorten this program.
35.
Could a for loop be used to shorten the following program and keep the same functionality?
a)
Yes, in this version A:
b)
Yes, in this version B:
c)
Yes, in this version C:
d)
No, a for loop cannot be used to shorten this program and keep the same functionality.
36.
Which of the following is a valid HTML tag?
a)
h1
b)
<>
c)

d)
>h1<
37.
What does HTML stand for?
a)
Hidden Text Meta Language
b)
Hyper Text Markup Language
c)
Hidden Theme Markdown Level
d)
Hyper Text Markdown Language
38.
Which of the following is an example of metadata about a website?
a)
The title of the webpage
b)
The body of the webpage
c)
An

tag on the webpage

d)
All of the above
39.
Which of the following is the correct HTML code to create a hyperlink that displays the link text below, and links to google.com?
40.
To make an ordered list, which HTML tag should be used to start?
a)
b)
    c)
  • d)
      41.
      To make an unordered list, which HTML tag should be used to start?
      a)
      b)
        c)
      • d)
          42.
          For an image that you want to put on your website, these are the information found to credit the creator of the image: Creator: Jane Doe Image Name: The Image on the Web Year: 2024 Image URL: https://www.theimageontheweb.com/image Which of the following correctly cites the image?
          a)
          Doe, Jane. The Image on the Web. 2024.
          b)
          Doe, Jane. 2024. The Image on the Web. Theimageontheweb.com
          c)
          Jane. The Image on the Web. Theimageontheweb.com (https://www.theimageontheweb.com/image)
          d)
          Source: Jane Doe. The Image on the Web. 2024. Theimageontheweb.com (https://www.theimageontheweb.com/image)
          43.
          Which of the following lines of HTML code will insert an image into a webpage?
          a)
          https://codehs.com/static/img/logo.png
          b)
          src="http://codehs.com/static/img/logo.png"
          c)
          d)
          44.
          (True or False): As long as you cite your sources, you can put any image you find online on your website.
          a)
          True
          b)
          False
          45.
          Which of the following actions will help you avoid violation of copyright laws?
          a)
          Always cite the source of the image
          b)
          Check the copyright of the image to make sure it can be used by others without permission
          c)
          Limit your searches to public domain images
          d)
          All of the above
          46.
          Which of the following HTML code snippets would produce the following web page: • Apples • Bananas • Oranges
          a)
          A
          b)
          B
          c)
          C
          d)
          D
          47.
          Which of the following HTML code snippets will generate the following table?
          a)
          A
          b)
          B
          c)
          C
          d)
          D
          48.
          Which of the following HTML code snippets is the proper way to set the background color of an

          tag to be blue?

          a)

          Hello

          b)

          Hello

          c)

          Hello

          d)

          Hello

          49.
          Which of the following is a valid color in HTML?
          a)
          "blue"
          b)
          "rgb(255, 0, 0)"
          c)
          "#00FF00"
          d)
          All of the above
          50.
          All of the colors you see on a computer screen are the result of a mixture of the same 3 colors. What are those colors?
          a)
          red, yellow, blue
          b)
          green, orange, purple
          c)
          red, green, blue
          d)
          red, green, yellow
          51.
          Which of the following is the proper format for an HTML tag?
          a)
          >h1/h1<
          b)

          Content Affected by Tag

          c)

          d)

          Content Affected by Tag

          52.
          What is generated from the following HTML code:

          Hello

          Hello

          Hello
          a)
          A
          b)
          B
          c)
          C
          d)
          D
          53.
          An image is hosted at https://upload.wikimedia.org/wikipedia/commons/6/62/Big_and_little_dog.jpg Which of the following is the proper HTML code to display this image on your webpage?
          b)
          https://upload.wikimedia.org/wikipedia/commons/6/62/Big_and_little_dog.jpg
          c)
          d)
          54.
          What is the result of the following HTML code:
          a)
          A
          b)
          B
          c)
          C
          d)
          D
          55.
          Suppose you are making a music streaming website and you want to make a page that displays a user’s music library. Which of the following is the proper HTML code to create the following table:
          a)
          A
          b)
          B
          c)
          C
          d)
          D
          56.
          Suppose you have written a web page using HTML and it is hosted at the URL yourdomain.com/home.html Which of the following statements is true about which devices can view your website?
          a)
          Only browsers on desktop computers can view your website because only desktop browsers can render HTML based web pages.
          b)
          Only browsers on mobile phones can view your website because only mobile browsers can render HTML based web pages.
          c)
          Only computers made after the day you publish your website can view your website. Older computers can’t understand HTML.
          d)
          Any browser on any device will be able to view your webpage, because all browsers and devices on the Internet agree to use the same protocols for sending, receiving, and viewing webpages.
          57.
          In binary encoding, what is the term used to describe the smallest unit of information?
          a)
          Bit
          b)
          Pixel
          c)
          Byte
          d)
          Character
          58.
          What distinguishes a WAN from a LAN?
          a)
          WANs are always wireless, while LANs are wired
          b)
          LANs offer higher security compared to WANs
          c)
          WANs typically cover larger geographical areas than LANs
          d)
          LANs are more cost-effective to set up and maintain than WANs
          59.
          In networking, what is a packet?
          a)
          A unit of data that is transmitted over a network
          b)
          A physical device used to connect computers in a network
          c)
          A protocol used for securing data transmission over the internet
          d)
          A software application used for browsing web pages
          60.
          Which networking protocol is used for converting domain names into IP addresses?
          a)
          TCP
          b)
          UDP
          c)
          HTTP
          d)
          DNS
          61.
          In the RGB color model, what combination of red, green, and blue values would produce a white pixel?
          a)
          0, 0, 0
          b)
          255, 255, 255
          c)
          128, 128, 128
          d)
          0, 255, 0
          62.
          What is the main reason for the development and adoption of IPv6?
          a)
          IPv6 offers improved security features
          b)
          IPv6 provides faster internet speeds
          c)
          IPv6 enables more reliable wireless connections
          d)
          IPv6 allows for a much larger number of IP addresses
          63.
          What is the main advantage of UDP over TCP?
          a)
          UDP provides error checking and retransmission of lost packets
          b)
          UDP offers a secure, encrypted communication
          c)
          UDP is faster and more efficient for real-time applications
          d)
          UDP guarantees the delivery of packets in the correct order
          64.
          What is a pixel?
          a)
          A single binary value
          b)
          A type of graphical user interface
          c)
          The smallest element of a digital image
          d)
          A file format to save entire digital images
          65.
          Which layer of the OSI model is responsible for routing and labeling each packet with the sender and recipient’s IP address?
          a)
          Transport layer
          b)
          Network layer
          c)
          Data Link layer
          d)
          Presentation layer
          66.
          Which protocol is used for retrieving web pages from servers over the internet?
          a)
          TCP
          b)
          DNS
          c)
          UDP
          d)
          HTTP
          67.
          Which of the following statements about binary encoding is true?
          a)
          Binary encoding can encode text, but it cannot encode images
          b)
          Binary encoding can represent a wide range of characters and colors
          c)
          Binary encoding can be used for small files but other encoding is needed for larger files
          d)
          Binary encoding cannot be used to transmit data between devices
          68.
          What is the main difference between HTTP and HTTPS?
          a)
          HTTPS uses a secure connection while HTTP does not
          b)
          HTTP is faster than HTTPS
          c)
          HTTP can only transfer text data, while HTTPS can transfer multimedia files
          d)
          HTTPS is used for local network communication, while HTTP is used for internet communication
          69.
          In networking, __ is the process of determining the best path for transmitting data packets.
          a)
          Packet switching
          b)
          DNS resolution
          c)
          Routing
          d)
          Encryption
          70.
          Which of the following best explains what happens when a new device is connected to the Internet?
          a)
          A packet number is assigned to the device.
          b)
          An Internet Protocol (IP) address is assigned to the device.
          c)
          A device driver is assigned to the device.
          d)
          A Web site is assigned to the device.
          71.
          Which of the following is not a main method for sending information from one computer to another?
          a)
          Light
          b)
          Electricity
          c)
          Molecules
          d)
          Radio
          72.
          Fiber optic cables transfer data at the speed of light, so they have the _______________ latency. This results in the __________ connection.
          a)
          lowest, fastest
          b)
          lowest, slowest
          c)
          highest, fastest
          d)
          highest, slowest
          73.
          Which of the following is considered an unethical use of computer resources?
          a)
          Downloading file sharing software on your home computer
          b)
          Purchasing an app from an app store and downloading it directly to a mobile device
          c)
          Searching online for the answers to exercises and quizzes
          d)
          Searching online for an electronic version of a textbook
          74.
          What is the main purpose of the DNS system?
          a)
          DNS translates the names of websites into IP addresses.
          b)
          DNS increases the bandwidth of a network.
          c)
          DNS ensures that websites are secure.
          d)
          DNS increases connectivity by making the internet fault-tolerant.
          75.
          According to the domain name system (DNS), which of the following is a subdomain of the domain example.com?
          a)
          about.example.com
          b)
          example.com/about.html
          c)
          example.com.about
          d)
          example.org
          76.
          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 back to the user?
          a)
          The file is broken into packets and sent over a network. The user’s browser must request each packet, in order, until all packets are received.
          b)
          The file is broken into packets and sent over a network. The packets must be reassembled by the user’s computer when they are received. If any packets are missing, the browser re-requests the missing packets.
          c)
          The server attempts to connect directly to the user’s computer. If the connection is successful, the entire file is sent at once. 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.
          77.
          Which of the following is a benefit of the fault-tolerant nature of Internet routing?
          a)
          The ability to use a hierarchical naming system to avoid naming conflicts
          b)
          The ability to provide data transmission even when some connections between routers have failed
          c)
          The ability to resolve errors in domain name system (DNS) lookups
          d)
          The ability to use multiple protocols such as hypertext transfer protocol (HTTP), Internet protocol (IP), and simple mail transfer protocol (SMTP) to transfer data.
          78.
          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 whether these two computers can 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 that are used by all computers on the Internet.
          79.
          A city government is attempting to reduce the digital divide between groups with differing access to computing and the Internet. Which of the following actions is LEAST likely to be effective in this purpose?
          a)
          Holding basic computer classes at community centers
          b)
          Providing free wireless Internet connections at locations in low-income neighborhoods
          c)
          Putting helpful tips for operating computers on the city government website
          d)
          Requiring that every school and library have assistive devices that allow people with disabilities to access computer resources
          80.
          An IPv4 address has 32 bits, so there are 2³² (over 4 billion) possible IPv4 addresses. Since the Internet is gaining devices quickly, we will soon surpass 2³² unique devices on the Internet. In anticipation of all the new Internet devices, we are in the process of switching to IPv6, which uses 128 bits for a single address. That’s 96 extra bits to represent one address! Which of the following statements correctly describes how many more addresses will be possible to represent by switching from IPv4 to IPv6?
          a)
          96 more addresses can be represented with IPv6.
          b)
          2⁹⁶ more addresses can be represented with IPv6
          c)
          96 times as many addresses can be represented with IPv6
          d)
          2⁹⁶ times as many addresses can be represented with IPv6
          81.
          What is the main purpose of routers?
          a)
          Routers connect computers to nearby wireless devices, such as headphones and speakers.
          b)
          Routers connect computers and choose the path that information takes from one computer to another.
          c)
          Routers increase the speed of a network’s internet connection by decreasing the latency.
          d)
          Routers translate a website’s name into an IP address.
          82.
          Which of the following best describes the basic purpose of the internet?
          a)
          The internet protects the privacy of sensitive information.
          b)
          The internet sends information from one computer to another.
          c)
          The internet stores data.
          d)
          The internet connects input and output devices to a computer.
          83.
          Which of the following is a benefit that online shopping websites provide over brick and mortar stores?
          a)
          Users can easily pay with cash in person
          b)
          Users can try out an item before they buy it
          c)
          Users can easily see product reviews and determine if an item has been satisfactory for a large number of people
          d)
          There is no wait time between purchasing an item and having access to it
          84.
          Consider the following network diagram below: Each box represents a device connected to the network, each line represents a direct connection between two devices. Which of the following statements are true about this network: I - The network is fault tolerant. If one connection fails, any two devices can still communicate. II - Computers C and E need to first communicate with at least one other device in order to communicate with each other.
          a)
          I only
          b)
          II only
          c)
          I and II
          d)
          Neither I nor II
          85.
          What are TCP/IP Packets labeled with before being sent through the Internet? Choose all that apply.
          a)
          To IP Address
          b)
          From IP Address
          c)
          Packet Number
          d)
          Data Size
          86.
          The Internet is available to everyone in the world.
          a)
          True
          b)
          False
          87.
          What is the purpose of the Digital Millennium Copyright Act?
          a)
          To make all content on the Internet free for everyone to use.
          b)
          To criminalize the act of circumventing, or getting around, access controls that block access to copyrighted works.
          c)
          To criminalize plagiarism on the Internet.
          d)
          To allow for open source software on the Internet.
          88.
          Which number system is used to store information digitally in a computer?
          a)
          Decimal (base 10)
          b)
          Binary (base 2)
          c)
          Octal (base 8)
          d)
          Hexadecimal (base 16)
          89.
          What is the decimal value of 1100₂?
          a)
          1.100₁₀
          b)
          3₁₀
          c)
          12₁₀
          d)
          1100₁₀
          90.
          How many different values can be represented using 4 bits?
          a)
          4 different values
          b)
          8 different values
          c)
          16 different values
          d)
          32 different values
          91.
          Suppose the ESPN website used 8-bit unsigned integers to store how many points a team has scored in an NBA game? For example: 0000 0010 represents 2 points 0000 1000 represents 8 points What is the highest possible score the ESPN website could display?
          a)
          64₁₀
          b)
          255₁₀
          c)
          256₁₀
          d)
          1111 1111₁₀
          92.
          A news website uses 32-bit integers to count the number of times an article has been viewed. The website is becoming more popular, and expects some of the articles to exceed the number of views that can be represented with 32 bits. In anticipation of this, the website is planning to change to 64-bit integers for the view counter. Which of the following best describes the result of using 64-bit integers instead of 32-bit integers?
          a)
          2 times as many values can be represented
          b)
          32 times as many values can be represented
          c)
          2³² times as many values can be represented
          d)
          32² times as many values can be represented
          93.
          ASCII is a character encoding scheme that uses a numeric value to represent each character. A subset of characters (in the "Char" column) and their corresponding ASCII values are shown in the table. ASCII characters can also be represented by hexadecimal (base 16) numbers. According to the ASCII character encoding, which of the following characters is represented by the hexadecimal (base 16) number 79₁₆.
          a)
          a
          b)
          y
          c)
          z
          d)
          None of these
          94.
          Use the ASCII table to answer the question. Which ASCII character is represented by decimal (base 10) number 111?
          a)
          d
          b)
          6F
          c)
          157
          d)
          o
          95.
          If black is 0 and white is 1, which of the following binary codes creates the sideways smiley face pixel image below?
          a)
          00000 00100 10010 00010 00010 10010 00100 00000
          b)
          11111 11011 01101 11101 11101 01101 11011 11111
          c)
          00100100 00000000 01000010 00111100 00000000
          d)
          01010 10101 01010 10101 01010 10101 01010 10101
          96.
          Consider the following numbers: The decimal value 23₁₀ The binary value 1101₂ Hexadecimal value E₁₆ Which of the following lists the numbers in order from least to greatest?
          a)
          23₁₀, 1101₂, E₁₆
          b)
          E₁₆, 1101₂, 23₁₀
          c)
          1101₂, 23₁₀, E₁₆
          d)
          23₁₀, E₁₆, 1101₂
          e)
          1101₂, E₁₆, 23₁₀
          97.
          An online store uses 8-bit binary values to identify each unique item for sale. The store plans to increase number of items it sells and is considering changing to 9-bit binary values. Which of the following best describes the result of using 9-bit values instead of 8-bit values?
          a)
          2 more items can be uniquely identified
          b)
          9 more items can be uniquely identified
          c)
          2 times as many items can be uniquely identified
          d)
          2⁹ times as many items can be uniquely identified
          98.
          A computer program uses 3 bits to represent integers. When the program adds the decimal (base 10) numbers 6 and 2, the result is 0. Which of the following is the best explanation for this result?
          a)
          An overflow error occurred.
          b)
          A round-off error occurred.
          c)
          An off-by-one error occurred.
          d)
          The result was affected by lossy data compression.
          99.
          The RGB encoding scheme encodes a color using 24 bit sequences. The first 8 bits encode the amount of red in the color, the next 8 bits encode the amount of green in the color, and the last 8 bits encode the amount of blue in the color. Which of the following is a true statement about the color encoded by this binary sequence: 1110 1001 0111 1100 0000 1111 (Color is shown.)
          a)
          This color is mostly blue.
          b)
          This color is mostly green.
          c)
          This color is mostly red.
          d)
          This color has no blue in it.
          100.
          For RGB, what is the range of values (expressed in decimal) that each color channel can have?
          a)
          1₁₀ - 256₁₀
          b)
          0₁₀ - 255₁₀
          c)
          -128₁₀ - 127₁₀
          d)
          0₁₀ - 127₁₀
          101.
          Convert the 24-bit to the correct hex code. 11111111 11000000 11001011
          a)
          FF00CC
          b)
          FFC0CB
          c)
          FF303B
          d)
          FFC0CF
          102.
          We want to write a darkening filter that darkens a given pixel. Which of the following instructions would darken a pixel? Assume R is the red value of the pixel, G is the green value; and B is the blue value.
          a)
          R = R + 50; G = G + 50; B = B + 50;
          b)
          R = Math.min(R + 50, 255); G = Math.min(G + 50, 255); B = Math.min(B + 50, 255);
          c)
          R = R - 50; G = G - 50; B = B - 50;
          d)
          R = Math.max(R - 50, 0); B = Math.max(B - 50, 0); G = Math.max(G - 50, 0);
          103.
          Convert the decimal number 222₁₀ to binary.
          a)
          111₂
          b)
          1110₂
          c)
          1101 1110₂
          d)
          0111 1011₂
          104.
          Convert the binary number 1100 1010₂ to decimal number.
          a)
          10₁₀
          b)
          12₁₀
          c)
          202₁₀
          d)
          2110₁₀
          e)
          1100 1010₁₀
          105.
          Convert hexadecimal number 3E8 to decimal number.
          a)
          48₁₀
          b)
          1000₁₀
          c)
          3148₁₀
          d)
          0011 1110 1000₁₀
          106.
          Which of the following best describes a person's digital footprint?
          a)
          A person's digital footprint is permanent, and the person has no control over its maintenance.
          b)
          A person's digital footprint is not usually permanent, and the person has some control over its maintenance.
          c)
          A person's digital footprint is permanent, and the person has some control over its maintenance.
          107.
          Which of these is an example of digital footprint? Choose all that apply.
          a)
          Emails you send
          b)
          Comments you leave
          c)
          Pictures you post
          d)
          Topics you search
          e)
          Apps you use
          108.
          Which of the following people can access your digital footprint? I. Teachers, colleges, and scholarship committees II. Potential employers III. Family, friends, and acquaintances
          a)
          I only
          b)
          I and II only
          c)
          III only
          d)
          I, II, III (all)
          109.
          What should you do if you are a victim of cyberbullying? I. Respond to the bully II. Keep a record of messages received (print or take screenshots) III. Reach out to parents, teachers, counselors, and school administrators IV. Block communication from the bully (if possible)
          a)
          I only
          b)
          I, II, III, IV (all)
          c)
          II, III, and IV
          d)
          II and III
          110.
          What are the roles within cyberbullying? Choose all that apply.
          a)
          Upstanders
          b)
          Bystanders
          c)
          Neighborhood Watch
          d)
          Victim
          111.
          How can you be an upstander if you witness cyberbullying?
          a)
          Reach out to the victim–let them know that you care and encourage them to seek help
          b)
          Tell a teacher, parent, or counselor about the bullying
          c)
          Report bullying to the website admin
          d)
          All of the above
          112.
          Which of the following are best practices for having a secure password?
          a)
          Creating a password that is long in length
          b)
          Creating a password that has a combination of letters, numbers, and special characters
          c)
          Using a password manager
          d)
          All of the above
          113.
          By checking the box on a privacy policy page, a company can legally use your data and information in all the ways disclosed, even if you change your settings.
          a)
          True. This is always the case.
          b)
          True. Changing your settings does not affect the privacy policy.
          c)
          False. It depends if the privacy policy allows you to opt in or out of sharing data.
          d)
          False. Companies do not give you the option to update your settings.
          114.
          Which of the following is an example of two factor authentication?
          a)
          You are asked to factor a large prime number in order to gain access to sensitive data.
          b)
          You are asked to reset your password every other time you enter a secure website.
          c)
          After inputting your password, you are asked to enter it again.
          d)
          After inputting your password, you receive a text message with a unique pin.
          115.
          Which of the following pieces of information would be safe to include in an online username?
          a)
          School mascot
          b)
          Favorite sport
          c)
          Year of birth
          d)
          City of residence
          116.
          Which of the following is not a good practice for effective Internet searches?
          a)
          Search for specific keywords that define your topic
          b)
          Use quotation marks to search for exact phrases
          c)
          Be general in your search inquiry to get as many results possible
          d)
          Use + or - to include or exclude different topics
          117.
          When citing your sources, which of these do you need, if the information is available? Choose all that apply.
          a)
          Name of the author
          b)
          Name of the work
          c)
          Year of the work
          d)
          Name of site you sourced it from
          118.
          Julie is trying to search Google for information on private colleges in California. Which of the following would be the most effective search query for this?
          a)
          private+colleges
          b)
          "private" +California
          c)
          "private colleges" -California
          d)
          "private colleges" +California
          119.
          Which of the following is not a characteristic of a credible source?
          a)
          The author is not named on the website
          b)
          The domain is .edu or .gov
          c)
          Multiple scholarly sources are cited
          d)
          The source is well-organized and follows rules of spelling and grammar
          120.
          (True or False): As long as you cite your source, you are free to use or share any kind of media you find on the Internet.
          a)
          True
          b)
          False
          121.
          Which of the following commands is a valid Java command?
          a)
          move
          b)
          move;
          c)
          move();
          d)
          move()
          122.
          What makes the following command an invalid Java command? turnleft();
          a)
          It should end in a colon rather than a semicolon
          b)
          The l should be a capital L
          c)
          It should start with a capital T
          d)
          This command is correct
          123.
          Why do we use functions in Java programs?
          a)
          Break down our program into smaller parts
          b)
          Avoid repeating code
          c)
          Make our program more readable
          d)
          All of the above
          124.
          In this code, how many times is the dance function called and how many times is it defined? function start() { move(); dance(); move(); move(); turnLeft(); dance(); dance(); } function dance() { turnLeft(); move(); turnLeft(); turnLeft(); move(); turnLeft(); }
          a)
          Called 1 time, defined 1 time
          b)
          Called 1 time, defined 3 times
          c)
          Called 3 times, defined 1 time
          d)
          Called 3 times, defined 3 times
          125.
          What's wrong with this code? function start() { move(); go(); go(); } function go() { move(); move(); } function go() { move(); move(); }
          a)
          The go function is called twice
          b)
          The go function has a syntax error
          c)
          The go function has been defined twice
          d)
          go is not a command that the object understands
          126.
          How many total times will the object move in this program? function start() { move(); for (var i = 0; i < 5; i++) { move(); putBall(); } }
          a)
          1
          b)
          5
          c)
          6
          d)
          7
          127.
          How many times should the start function be defined in a program?
          a)
          0
          b)
          1
          c)
          2
          d)
          However many you like
          128.
          What is wrong with this for loop? for (var i = 0, i < 10, i + 1) { move(); } A. The for loop uses commas instead of semicolons B. It should say i++ instead of i + 1
          a)
          A
          b)
          B
          c)
          A & B
          d)
          The for loop is correct
          129.
          What is the proper format for a single line comment in Java?
          a)
          This is a comment
          b)
          // This is a comment
          c)
          /* This is a comment
          d)
          None of these
          130.
          What does the mystery function do? function mystery() { while (noBallsPresent()) { move(); } }
          a)
          Object moves until it is on a ball
          b)
          Object moves once if there is no ball present
          c)
          Object moves until it puts down a ball
          d)
          Object checks if there is no ball on the current spot and then moves once
          131.
          What condition should be used in this while loop to get the object to pick up all the tennis balls on the current location? while (________) { takeBall(); }
          a)
          noBallsPresent()
          b)
          ballsPresent()
          c)
          frontIsClear()
          d)
          takeBall()
          132.
          Why does a programmer indent their code?
          a)
          Helps show the structure of the code
          b)
          Easier for other people to understand
          c)
          A key part of good programming style
          d)
          All of the above
          133.
          How can we write new commands in Java?
          a)
          For loop
          b)
          While loop
          c)
          Define a new function
          d)
          The start function
          134.
          Say you want to write a Java program to have put down 300 tennis balls. Which control structure would you use?
          a)
          If statement
          b)
          While loop
          c)
          For loop
          d)
          Nested while loop
          135.
          What is top down design?
          a)
          A way of designing your program by starting with the biggest problem and breaking it down into smaller and smaller pieces that are easier to solve.
          b)
          A way that you can create designs on a computer to put on a web page.
          c)
          A way of designing your programs starting with the individual commands first
          d)
          A way to use loops and if statements to decompose the problem
          136.
          How can we improve the following program? function start() { move(); move(); move(); move(); move(); move(); move(); move(); move(); }
          a)
          Break down this program into more functions
          b)
          Use a for loop to repeat the move command
          c)
          Use a while loop to repeat the move command
          d)
          Fix the indention of this program
          137.
          What do we use control structures for in Java?
          a)
          Control the flow of the program; how the commands execute
          b)
          Start our Javascript program
          c)
          Store information for later
          d)
          Teach Karel new commands
          138.
          You need to write a program that has an object move 6 times and then put a ball. Which control structure do you need to use?
          a)
          For loop
          b)
          While loop
          c)
          If Statement
          d)
          If/Else Statement
          e)
          None of these
          139.
          In the following code, what would be a good Postcondition to write? /* Precondition: Karel is on a spot with a tennis ball facing East * Postcondition: ... */ function getOnTop() { turnLeft(); move(); turnRight(); }
          a)
          Karel is on a spot with a tennis ball facing north
          b)
          Karel ends one spot above a tennis ball facing East
          c)
          Karel is on the same position but on top of a ball
          d)
          Karel is facing East
          140.
          What is the purpose of using a for loop in code?
          a)
          To do something if a condition is true
          b)
          To do something while a condition is true
          c)
          To repeat something a fixed number of times
          d)
          To make programs run faster
          141.
          Which of the following is the most secure password?
          a)
          c00kIessphynxClo$ure104
          b)
          2ldj3#0Fsjsl
          c)
          $mO0thi3!
          d)
          sLoganDeem
          142.
          What is the benefit of using two-factor authentication (2FA)?
          a)
          It is easier to log in because you don’t have to remember a password.
          b)
          It requires less computing power because more data is stored in the cloud.
          c)
          It is more secure because it requires two pieces of evidence to log in.
          d)
          It enhances privacy because it encrypts data transmitted between the server and the user.
          143.
          What is the primary goal of the GDPR and the CCPA?
          a)
          To regulate international trade online
          b)
          To protect privacy rights of consumers
          c)
          To enforce stricter copyright laws
          d)
          To monitor hate speech on social media platforms
          144.
          You are scrolling through social media and open an article that a friend shared. As you read, you try to determine if this article is legitimate. Which of the following would NOT help you determine if the article is legitimate?
          a)
          Open a new tab and do a quick search on the source of the article.
          b)
          Read through the article to see if you disagree with anything it contains.
          c)
          Look for evidence of bias or exaggeration.
          d)
          Determine if the author has fully researched the topic by looking for cited statistics or studies.
          145.
          What does a Creative Commons license allow creators to do?
          a)
          Release their work into the public domain
          b)
          Use copyrighted works of others without asking permission
          c)
          Publish their work to personal blogs or websites for others to access
          d)
          Grant specific permissions for others to use their work under certain conditions
          146.
          Which of the following is an unethical hacker?
          a)
          Bug bounty hunter
          b)
          Penetration tester
          c)
          Black hat hacker
          d)
          White hat hacker
          147.
          Read the following excerpt about X’s (formerly Twitter) privacy policy. Based on the excerpt, which of the following data does X NOT collect? - Posts and other content you post (including the date, application, and version of X) and information about your broadcast activity (e.g., Spaces), including broadcasts you’ve created and when you created them, your lists, bookmarks, and communities you are a part of. - Your interactions with other users’ content, such as reposts, likes, bookmarks, shares, replies, if other users mention or tag you in content or if you mention or tag them, and broadcasts you’ve participated in (including your viewing history, listening, commenting, speaking, and reacting). - How you interact with others on the platform, such as people you follow and people who follow you, metadata related to Encrypted Messages, and when you use Direct Messages, including the contents of the messages, the recipients, and date and time of messages. - If you communicate with us, such as through email, we will collect information about the communication and its content. - We collect information on links you interact with across our services (including in our emails sent to you).
          a)
          Your location when you post content
          b)
          Content that you are tagged in
          c)
          Posts that you like
          d)
          Content of direct messages
          148.
          Biometric authentication is secure because biometric traits, such as fingerprints, are unique to each individual. However, it is not without its risks. What is a tradeoff, or a potential negative consequence, of using biometric authentication?
          a)
          Biometric data is sensitive and raises privacy concerns.
          b)
          Biometric authentication is unreliable and is wrong more than it is right.
          c)
          Biometric authentication takes significantly longer than other forms of authentication.
          d)
          Using biometric authentication creates a single point of failure for access to all accounts.
          149.
          You just purchased a new laptop! As part of the setup, you create your personal admin account as well as a guest account. You give the guest account some permissions while removing others. What part of the AAA framework does this action fall under?
          a)
          Authentication
          b)
          Authorization
          c)
          Accounting
          d)
          Anonymity
          150.
          Maria is checking her grades on a school computer in the library, and she forgets to log out before she leaves. Ahmed gets on the computer after her, and he sees her grades for all of her classes. Which part of the CIA triad was broken?
          a)
          Confidentiality
          b)
          Integrity
          c)
          Availability
          d)
          All of the above
          151.
          Which of the following best defines the internet of things (IoT)?
          a)
          A virtual gaming system that enables users to connect all across the world
          b)
          A new programming language that enables data to travel faster across the internet
          c)
          The use of physical devices to increase equitable access to the internet
          d)
          The interconnection of physical objects that enable them to send and receive data
          152.
          How does ransomware typically work?
          a)
          It steals sensitive data and sells it on the dark web.
          b)
          It encrypts files on a victim’s computer and demands payment for their release.
          c)
          It displays annoying pop-up ads on the screen.
          d)
          It slows down the computer’s performance significantly.
          153.
          What is phishing?
          a)
          A type of computer virus that spreads through email attachments
          b)
          A type of malware that locks access to a user’s files until a ransom is paid
          c)
          A cyberattack that attempts to trick the victim into sharing sensitive information
          d)
          A type of malware that is downloaded to a device and secretly collects information on the victim
          154.
          What is the purpose of a firewall in preventing malware attacks?
          a)
          A firewall helps identify and block unauthorized network traffic, reducing the risk of malware infections.
          b)
          A firewall scans and removes malware from files and emails.
          c)
          A firewall provides a safe space for testing potentially harmful software.
          d)
          A firewall ensures that all data transferred over the internet is encrypted.
          155.
          What is one of the potential consequences of a cyberattack on a business?
          a)
          Internal personnel disputes
          b)
          Loss of revenue
          c)
          Government fines
          d)
          Higher taxes
          156.
          What is the term used in cryptography for the message after encryption?
          a)
          algorithm
          b)
          ciphertext
          c)
          key
          d)
          plaintext
          157.
          Using the Caesar cipher, “HELLO” is encrypted to “OLSSV” by applying a shift of 7. The message “HELLO” is considered the __________.
          a)
          algorithm
          b)
          ciphertext
          c)
          key
          d)
          plaintext
          158.
          Using the Caesar cipher, “HELLO” is encrypted to “OLSSV” by applying a shift of 7. The number 7 is considered the __________.
          a)
          algorithm
          b)
          ciphertext
          c)
          key
          d)
          plaintext
          159.
          What is the term used in cryptography when the same key is used to encrypt and decrypt the data?
          a)
          Asymmetric Encryption
          b)
          Substitution Cipher
          c)
          Reflexive Encryption
          d)
          Symmetric Encryption
          160.
          Roland knew that the code to his sister’s toy safe was only two digits long. He was able to crack the safe open by attempting every two-digit code until he found the correct one. What method of code-breaking did Roland use?
          a)
          Frequency analysis
          b)
          Brute force
          c)
          Frequency distribution
          d)
          Using a dictionary
          161.
          Marsha found her sister’s diary that listed all of her passwords. However, when Marsha entered the passwords into their corresponding websites, none of them worked. She determined that her sister must have encrypted her passwords. In an attempt to decrypt the passwords, Marsha tallied the number of times each letter appeared. What method of code-breaking did Marsha use?
          a)
          Reverse engineering
          b)
          Brute force
          c)
          Using a dictionary
          d)
          Letter frequency analysis
          162.
          The Rail Fence Cipher is a cipher that uses columns. The plaintext is written downwards and starts a new column when the bottom is reached. This technique used in the Rail Fence Cipher is an example of:
          a)
          a product cipher.
          b)
          a stream cipher.
          c)
          substitution.
          d)
          transposition.
          163.
          A vulnerability of the Diffie-Hellman’s Key Exchange is a lack of _.
          a)
          authentication
          b)
          integrity
          c)
          key exchange
          d)
          secrecy
          164.
          Which of the following is not a reason to revoke an SSL certificate?
          a)
          The validity period has ended.
          b)
          The website is no longer in service.
          c)
          The domain name has been changed.
          d)
          The private key has been compromised.
          165.
          Which is the largest disadvantage of symmetric encryption?
          a)
          It is not used any more.
          b)
          It is more complex and more time-consuming.
          c)
          It is difficult to securely transmit the secret key.
          d)
          It is less secure when compared to asymmetric encryption.
          166.
          A man-in-the-middle attack can endanger the security of the Diffie-Hellman method if the two parties are not _____.
          a)
          authenticated
          b)
          available
          c)
          joined
          d)
          paired
          167.
          In RSA encryption, if Allie wants to send a confidential message to Nicholas, which key does she use for encryption?
          a)
          Nicholas's public key
          b)
          Nicholas's private key
          c)
          Her public key
          d)
          Her private key
          168.
          In RSA encryption, Nicholas will use __ to decrypt a message that was encrypted with his public key.
          a)
          His public key
          b)
          His private key
          c)
          Allie's public key
          d)
          Allie's private key