wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

2018 ECS Exam Review

Total questions: 71

Worksheet time: 1hrs 10mins

Name
Class
Date
1.
What is the 4-bit binary number for the decimal number Eleven (11)?
a)
10
b)
1011
c)
110
d)
101
2.
What is the minimum number of bits you would need to encode 26 letters of the alphabet plus a space - a total of 27 characters?
a)
2 bits
b)
3 bits
c)
5 bits
d)
6 bits
3.
A user clicks on a website, and it begins to load immediately, but it takes a long time to load completely and pictures appear slowly, one by one. Which of the following is demonstrated through this situation?
a)
High bandwidth, high latency
b)
Low bandwidth, high latency
c)
High bandwidth, low latency
d)
Low bandwidth, low latency
4.
According to the domain name system (DNS), which is a subdomain of the domain example.com?
a)
about.example.com
b)
example.co.uk
c)
example.com.org
d)
example.org
5.
Which of the following is not true about TCP/IP packets?
a)
Packets are numbered so if they arrive out of order the message can be reassembled
b)
TCP guarantees that no packets are ever dropped
c)
Packets can be routed on different paths from sender to receiver
d)
Broken into packets to improve reliability of the internet
6.
The Internet Engineering Task Force (IETF) defines the protocols and standards for how the Internet works. The members of IETF are:
a)
An International coalition of government agencies who oversee the Internet in their countries
b)
A collection of the leaders of the Tier 1 Internet service providers
c)
A loosely organized collection of citizens and engineers
d)
Political leaders and heads of state
7.
The world is currently in a transition to using IPv6, a newer version of the IP protocol that uses 128-bit addresses instead of 32-bit addresses used by IPv4. What is the main problem IPv6 was created to solve?
a)
32-bit addresses aren’t big enough
b)
IPv6 will allow problems with IPv4's address hierarchy to be resolved
c)
IPv4 proved unreliable in some cases where network redundancy could not be ensured
d)
32-bit addresses can’t ensure every internet-connected device receives a unique IP address
8.
What term describes "data about data", such as the height and width of an image?
a)
megadata
b)
superdata
c)
metadata
d)
predata
9.
This medium transmits bits over beams of light
a)
copper wire
b)
radio wave
c)
fiber optic cable
d)
water
10.
This medium transmits bits over alternating frequencies
a)
copper wire
b)
radio wave
c)
fiber optic cable
d)
water
11.
A number assigned to any item that is connected to the Internet
a)
Packet
b)
IP Address
c)
TCP/IP
d)
MAC Address
12.
Small chunks of info that have been carefully formed from larger chunks of information
a)
Packet
b)
IP Address
c)
TCP/IP
d)
MAC Address
13.
A computer which receives messages traveling across a network and redirects them towards their intended destinations based on the addressing info included with the message
a)
Packet
b)
IP Packet
c)
Router
d)
Redundancy
14.
Provides reliable, ordered, and error-checked delivery of a stream of packets on the Internet
a)
TCP
b)
IP
c)
Protocol
d)
Router
15.

Which heading produces the largest text?

a)

H1

b)

H2

c)

H3

d)

H4

16.
Automatically capturing data displayed on a screen so that another program can use it is referred to as ________.
a)
content scraping
b)
screen scraping
17.
Harvesting content from a website and using it without the permission of the site owner is referred to as ____________.
a)
content scraping
b)
screen scraping
18.
Network communication with the Internet occurs via a ______, which can be either/and the LAN or WAN.
a)
gateway
b)
TCP
c)
ISP
d)
node
19.
The _____ converts amazon.com to a binary address.
a)
bandwidth
b)
TCP/IP
c)
DNS
d)
domain name
20.
amazon.com is a ________.
a)
bandwidth
b)
TCP/IP
c)
DNS
d)
domain name
21.
Speed of data transmission through a computer network depends on ____.
a)
bandwidth
b)
TCP/IP
c)
DNS
d)
domain name
22.
The classroom computers are connected through a ______.
a)
LAN
b)
WAN
23.
Which network protocol can handle the largest amount of IP addresses?
a)
IPv4
b)
IPv6
24.
The "traffic controller" of messages and data transmitted over a network.
a)
packet.
b)
package.
c)
IP address.
d)
TCP/IP.
25.
The pathway through nodes that messages and information travel to receiver and sender is the ________.
a)
route
b)
link
c)
node
d)
client
26.
__________ provide information platforms (Google, Firefox, Safari).
a)
Servers
b)
Clients
c)
Routers
d)
Modems
27.
In a computer network, the requester of information is the:
a)
server.
b)
client.
28.
Cyberspace components can exist on their own dedicated networks.
a)
true
b)
false
29.
Cyberspace components must be connected to the Internet.
a)
false
b)
true
30.
The WWW, chatting, email, file sharing, and routers are represented by ____ in a network.
a)
nodes
b)
links
31.
Which type of link has a stronger signal?
a)
wired
b)
wireless
32.
WiFi and AM radio waves are examples of ______ network links.
a)
wired
b)
wireless
33.
Copper, Ethernet, and fiber optic are examples of _____ network links.
a)
wired
b)
wireless
34.
A computer network is made up of _______ and ________.
a)
nodes, links
b)
spheres, wires
c)
routers, adapters
d)
chatting, file sharing
35.
A computer network and the Internet are the same thing.
a)
true
b)
false
36.
If x = 17 and y = 31, the expression y + x > 100 evaluates to:
a)
true
b)
false
37.
If x = 17 and y = 31, the expression x = x - x + x - 0 evaluates to:
a)
true
b)
false
38.
If x = 17 and y = 31, the expression x < y + y evaluates to:
a)
true
b)
false
39.
If x = 17 and y = 31, the expression y < x evaluates to:
a)
true
b)
false
40.

Which is an example of metadata about a webpage?

a)

The title of the webpage

b)

The body of the webpage

c)

A header tag on the webpage

d)

All of the above

41.

What is the function of the "<br>" tag?

a)

Create a line break on the resulting webpage

b)

Create a horizontal line on the resulting webpage

c)

Italicize text

d)

Bold text

42.

Which is the correct HTML code to create a hyperlink that says "Click Me" and links to google.com?

a)

"Click Me <a>https://google.com</a>"

b)

"<a>Click Me</a href="https://google.com">"

c)

"<a href="https://google.com">Click Me</a>"

d)

"<a href="Click Me">https://google.com</a>"

43.

What HTML code will insert an image into a webpage?

a)

"<img https://codehs.com/static/img/logo.png>"

b)

"<img>src = "https://codehs.com/static/img/logo.png"

c)

"<img>https://codehs.com/static/img/logo.png"

d)

"<img src = "https://codehs.com/static/img/logo.png">"

44.
What does URL stand for?
a)
Underlying Request Layout
b)
Underlying Response Layout
c)
Uniform Resource Locator
d)
Usable Render List
45.

Suppose you have the CSS rules as in the attached image. What font color will be applied to the following HTML element?

My First Paragraph

a)

red

b)

blue

c)

green

d)

black

46.

In the code below, how many times is the dance function called and how many times is it defined?

a)

Called 1, Defined 1

b)

Called 1, Defined 3

c)

Called 3, Defined 1

d)

Called 3, Defined 3

47.

What is wrong with the code in the example below?

a)

The go function is called twice

b)

The go function has a syntax error

c)

The go function has been defined twice

48.

How many times will Karel move in the code below?

a)

1

b)

5

c)

6

d)

7

49.

What does the mystery function do?

a)

Karel moves until he's on a ball

b)

Karel moves once if there is no ball present

c)

Karel moves until he puts down a ball

d)

Karel checks if there is a ball in the current spot and then moves once

50.

If Karel is on a location with one tennis ball, how many balls will there be after the following code runs?

a)

0

b)

1

c)

2

d)

6

51.
Why does a programmer indent code?
a)
Helps show the structure of the code
b)
Easier for people to understand
c)
Key part of programming style
d)
All of the above
52.
If you wanted to write a program to have Karel put down 300 tennis balls, which control structure should you use?
a)
IF statement
b)
while loop
c)
for loop
d)
nested while loop
53.
What's 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
54.
What will the following code print to the screen?

println(2 + 2);
a)
2 + 2
b)
4
c)
22
d)
Nothing
55.
What symbol represents division in JavaScript?
a)
%
b)
/
c)
//
d)
\
56.
What symbol represents multiplication in JavaScript?
a)
x
b)
\
c)
%
d)
=
57.
Which statement will change "cookies" to "bread" in the following array:

var groceries = ["milk", "eggs", "cookies", "cake"];

a)
groceries["cookies"] = "bread";
b)
groceries(3) = "bread";
c)
groceries[2] = "bread";
d)
groceries.push("bread");
58.

What's the output of the following program?

a)

[1, 2, 3]

[4, 5]

b)

[3, 4, 5]

[1, 2]

c)

[1, 3, 4, 5]

2

d)

[1, 2, 4, 5]

3

59.
What is an array (or list)?
a)
An unordered collection of unique items
b)
An ordered collection of unique items
c)
A collection of (key, value) pairs
d)
A collection of items stored at (row, column) locations
60.

What's the output of the following program?

a)

2

b)

1

c)

-1

d)

true

61.
A store has 20 apples in inventory. How can you store this information in a JavaScript variable?
a)
var numApples == 20;
b)
20 = numApples;
c)
var numApples = 20;
d)
var num apples = 20;
62.
You want to read input from the user to know how many apples they would like to buy. Which statement should you use?
a)
var applesToBuy = readLine("How many apples would you like? ");
b)
var applesToBuy = println("How many apples would you like? ");
c)
var applesToBuy = readInt("How many apples would you like? ");
d)
var applesToBuy = nextInt("How many apples would you like? ");
63.
If you are splitting up your apples evenly, which statement tells you how many apples will be left over?
a)
var leftOver = numApples/3;
b)
var leftOver = 3/numApples;
c)
var leftOver = numApples % 3;
d)
var leftOver = 3 % numApples;
64.

What is the value of the boolean variable canVote at the end of the following code?

a)

true

b)

false

c)

yes

d)

none, there is a syntax error

65.

What is printed by the following program?

a)

Is it warm: true

b)

Is it warm: false

c)

Is it warm: yes

d)

Is it warm: no

66.
This algorithm searches for a value by comparing the current value to the value next in line.
a)
sequential
b)
linear
c)
bubble
d)
binary
67.
This algorithm continuously divides an array by two and discards the half that doesn't contain the target value until the target value is found or the list ends.
a)
sequential
b)
linear
c)
bubble
d)
binary
68.
A method of ordering items in a meaningful way is\:
a)
sorting
b)
bulleting
c)
maximizing
d)
allocating
69.
This sort method repeatedly compares two neighboring values and swaps them into the correct order.
a)
bubble
b)
selection
c)
insertion
70.
This sort method repeatedly finds the smallest value in an unsorted portion of a list and swaps it with the first value of the unsorted portion.
a)
bubble
b)
selection
c)
insertion
71.
This type of sort considers the first item of a list to already be sorted and compares it to the rest of the list. The end of the (unsorted) part of the list is then compared to and added in the proper location to the sorted portion until all items are ordered.
a)
bubble
b)
selection
c)
insertion