WorksheetsCSP Final
Total questions: 31
Worksheet time: 16mins
What does HTML stand for and what does it used for?
HyperText Markup Language; language that creates web pages
HyperText Mark Logarithm
HyperTyping Marking Logarithm
HyperlinkText Markup Location
What is the HTML element for the largest heading?
<h1>
<heading>
<h6>
<head>
Which character indicates an end tag?
<
/
*
^
What is the output of this code?
function start(){ var x = 5;
quadrupleNumber(x);
}
function quadrupleNumber(x){
var quadX = 4 * x;
println(quadX);
}
10
15
20
no output, there is a syntax error
Why do we write functions?
Make code easier to understand
Avoid writing repeated code
Make code reusable
All of the above
Which statement returns the value from functions?
break
return
if
pop();
Do functions need to have parameters?
Yes
No
What is printed in this code?
function printNumbers(first, second, third){
println(first);
println(second);
println(third);
}
function start(){
var middle = 5;
printNumbers(4, middle, 6);
}
}
456
4
5
6
4 middle 6
first
second
third
What is the correct order to view a web page?
URL, Request, Response, Rendering the Page
URL, Request, Rendering the Page, Response
URL, Response, Request, Rendering the Page
Which of the following HTML code snippets would produce the following web page:
-Apples
-Bananas
-Oranges
<ul>
<li>Apples</li>
<li>Bananas</li>
<li>Oranges</li>
</ul>
<ol>
<li>Apples</li>
<li>Bananas</li>
<li>Oranges</li>
<ol>
What is the very first item in an array?
0
1
What do pop(); and push(); do?
pop removes the last item to the end; push adds an item to the end
push removes the last item; pop adds an item to the front
pop moves the last item to the first index; push removes the item
How do you get the length of an array?
arr.length()
arr.length
array.length
Which will change “cake” to “oranges”?
var shoppingList = [“milk”, “eggs”, “sugar”, “bread”, “cake”];
shoppingList[“cake”] = “oranges”;
shoppingList[“oranges”] = “cake”;
shoppingList[4] = “oranges”;
shoppingList[5] = “oranges”;
What index refers to the “end” of the array?
the lowest index, index
the highest index
What does URL stand for?
Underlying Request Layout
Underlying Response Layout
Uniform Resource Locator
Usable Render List
What information is contained in a packet?
The entirety of a digital message
The entirety of a digital message, and metadata about the message, including where it came from and where it is going.
A small part of a digital message.
A small part of a digital message, and metadata about the message, including where it came from and where it is going
What information is contained in a packet?
What information is contained in a packet?
The entirety of a digital message, and metadata about the message, including where it came from and where it is going.
A small part of a digital message.
A small part of a digital message, and metadata about the message, including where it came from and where it is going
What is a DNS spoofing attack?
A hacker sends a forged email asking a user to enter their password or other sensitive information for a given website, then steals the information
A hacker overwrites the data for a given domain name in a DNS server, causing the IP for that domain to point to the hacker’s website rather than the intended website
A hacker takes control over hundreds or thousands of computers, and sends several requests from those computers to a particular IP address, causing the computer at that IP address to crash.
A hacker gets a victim to install software on their computer, and that software is able to run in the background and send private information back to the hacker.
What does it mean for the databases to be scalable?
Their operations are spread across multiple computers instead of being entirely on one computer.
They can continue functioning even if there is a significant increase in the number of operations
They can continue functioning even if one part of the system experiences an outage.
They employ authentication strategies that make them resistant to infiltration attacks from cyber criminals.
Which of these is a way that the Internet Protocol (IP) contributes to Internet communications?
It describes a way to uniquely identify computing devices that are connected to the Internet so that messages can be sent to them.
It describes a mechanism for connecting two computing devices with a fiber optic cable.
It describes a method for mapping a domain name to an IP address.
It describes a method for authenticating a user on a website.
What is the term for the value that signals the end of user input?
Sentinel
break
-1
Done
How many possible values can Randomizer.nextBoolean() return?
0
1
2
3
Which of the following is a good example of a proper constant variable name?
var max_value = 100;
var MAX_VALUE = 100;
var Max_Value = 100;
var maxValue = 100;
How many times will this program print "hello"?
var i = 50;
while (i < 100) {
println("hello");
}
0
50
100
This code will loop infinitely
What will be the value of sum after this code runs?
var START = 1;
var END = 4;
function start(){
var sum = 0;
for(var i = START; i <= END; i++){
sum += i;
}
}
10
4
1
40
How many possible values can be created with only 2 bits?
4
2
11
3
Consider these two files:
A 1-minute video of a cat pouncing ferociously on a twisty tie.
A download of "The Lion King", a 1.5-hour animated film
Is it possible for "The Lion King" to have a smaller file size than the shorter cat video?
Yes, as long as “The Lion King” video is compressed with an open non-patented standard
Yes, if “The Lion King” video is compressed with a lossy compression algorithm
Yes, but only if “The Lion King” video is produced by a major company like Disney
No. “The Lion King” will always take up more space than 1-minute video
Which of the following pixels has a color value of #ff0000? (expressed in hexadecimal)
Red Pixel
Blue Pixel
Green Pixel
Purple Pixel
What is the number base of the binary number system?
10
2
1
0
In the binary value 1002, what is the place value of the 1?
100s place
2s place
4s place
1s place
