A set of instructions, often used to tell computers how to do a certain task
A number system that supports only 0s and 1s.
What is binary?
Responsible for converting URLs to IP addresses.
What is the Domain Name System (DNS)?
x = true, y = true
NOT (x OR y)
The function to display text in the Developer's Tools section of a web browser.
What is console.log
?
The two kinds of loops we covered in this class
for loops and while loops
A number system whose base is 16.
What is hexadecimal.
The first thing that happens when a new device is connected to the Internet.
What is it is assigned an IP address?
x = false, y = true
(x AND y) AND (x OR y)
false
Two major conditional control structures.
What are if
and switch
statements?
The purpose of this algorithm (in Matlab)
x = 0;
for num = 1:max
if mod(num,2) == 0
out = out + num;
end
end
To compute the sum of even numbers up to 'max'
The number of values a 7-bit number can represent.
What is 128 values?
A characteristic of the Internet that allows it to continue to function despite router and connection failures.
What is fault-tolerant?
Daily double!
x XOR (y XOR x)
false
The keyword used to declare a variable whose value should never change.
What is const
?
Daily double!
The purpose of this algorithm (in Matlab):
x = vector(1)
for i = 2:len(vector)
if vector(i) > x
x = vector(i);
end
end
To find the maximum value in the list 'vector'?
10112 in decimal notation.
What is 11?
The means by which different devices from different manufactures can all effectively communicate on the Internet.
What are Internet protocols?
x = false, y = false
NOT ( (x XOR y) AND (x OR y) )
true
The three primary iterative control structures.
What are for
loops, while
loops, and do...while
loops?
The value of x at the end of a run of this algorithm (in Matlab)
x = 10;
for num= 1:3
if mod(num,x) == 0
x = x+ num;
else
x = x - num;
end
end
4
11011012 in decimal notation.
What is 109?
Several coordinated actors attempting to disrupt an online system by flooding it with network traffic.
What is a distributed denial of service (DDoS) attack?
x = true, y = true
( x AND (5 > 2) ) OR ( y AND (3 > 1) )
true
function jeopardy(question, answer) { }
The values question
and answer
in the example function above.
What are parameters or arguments?