Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSP Final

Total questions: 31

Worksheet time: 16mins

Name
Class
Date
1.

What does HTML stand for and what does it used for?

a)

HyperText Markup Language; language that creates web pages

b)

HyperText Mark Logarithm

c)

HyperTyping Marking Logarithm

d)

HyperlinkText Markup Location

2.

What is the HTML element for the largest heading?

a)

<h1>

b)

<heading>

c)

<h6>

d)

<head>

3.

Which character indicates an end tag?

a)

<

b)

/

c)

*

d)

^

4.

What is the output of this code? 

function start(){ var x = 5;

quadrupleNumber(x);

}

function quadrupleNumber(x){

var quadX = 4 * x;

println(quadX);

}

a)

10

b)

15

c)

20

d)

no output, there is a syntax error

5.

Why do we write functions?

a)

Make code easier to understand 

b)

Avoid writing repeated code

c)

Make code reusable 

d)

All of the above 

6.

Which statement returns the value from functions?

a)

break

b)

return

c)

if

d)

pop();

7.

Do functions need to have parameters?

a)

Yes

b)

No

8.

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);

}

}

a)

456

b)

4

5

6

c)

4 middle 6

d)

first 

second

third

9.

What is the correct order to view a web page?

a)

URL, Request, Response, Rendering the Page

b)

URL, Request, Rendering the Page, Response

c)

URL, Response, Request, Rendering the Page

10.

Which of the following HTML code snippets would produce the following web page:

-Apples

-Bananas

-Oranges

a)

<ul>

<li>Apples</li>

<li>Bananas</li>

<li>Oranges</li>

</ul>

b)

<ol>

<li>Apples</li>

<li>Bananas</li>

<li>Oranges</li>

<ol>

11.

What is the very first item in an array?

a)

0

b)

1

12.

What do pop(); and push(); do?

a)

pop removes the last item to the end; push adds an item to the end

b)

push removes the last item; pop adds an item to the front

c)

pop moves the last item to the first index; push removes the item

13.

How do you get the length of an array?

a)

arr.length()

b)

arr.length

c)

array.length

14.

Which will change “cake” to “oranges”?

var shoppingList = [“milk”, “eggs”, “sugar”, “bread”, “cake”];

a)

shoppingList[“cake”] = “oranges”;

b)

shoppingList[“oranges”] = “cake”;

c)

shoppingList[4] = “oranges”;

d)

shoppingList[5] = “oranges”;

15.

What index refers to the “end” of the array? 

a)

the lowest index, index 

b)

the highest index

16.

What does URL stand for?

a)

Underlying Request Layout 

b)

Underlying Response Layout

c)

Uniform Resource Locator

d)

Usable Render List

17.

What information is contained in a packet?

a)

The entirety of a digital message 

b)

The entirety of a digital message, and metadata about the message, including where it came from and where it is going.

c)

A small part of a digital message.

d)

A small part of a digital message, and metadata about the message, including where it came from and where it is going

18.

What information is contained in a packet?

a)

What information is contained in a packet?

b)

The entirety of a digital message, and metadata about the message, including where it came from and where it is going.

c)

A small part of a digital message.

d)

A small part of a digital message, and metadata about the message, including where it came from and where it is going

19.

What is a DNS spoofing attack?

a)

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

b)

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

c)

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.

d)

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.

20.

What does it mean for the databases to be scalable?

a)

Their operations are spread across multiple computers instead of being entirely on one computer.

b)

They can continue functioning even if there is a significant increase in the number of operations

c)

They can continue functioning even if one part of the system experiences an outage.

d)

They employ authentication strategies that make them resistant to infiltration attacks from cyber criminals.

21.

Which of these is a way that the Internet Protocol (IP) contributes to Internet communications?

a)

It describes a way to uniquely identify computing devices that are connected to the Internet so that messages can be sent to them.

b)

It describes a mechanism for connecting two computing devices with a fiber optic cable.

c)

It describes a method for mapping a domain name to an IP address.

d)

It describes a method for authenticating a user on a website.

22.

What is the term for the value that signals the end of user input?

a)

Sentinel

b)

break

c)

-1

d)

Done

23.

How many possible values can Randomizer.nextBoolean() return?

a)

0

b)

1

c)

2

d)

3

24.

Which of the following is a good example of a proper constant variable name?

a)

var max_value = 100;

b)

var MAX_VALUE = 100;

c)

var Max_Value = 100;

d)

var maxValue = 100;

25.

How many times will this program print "hello"?

var i = 50;

while (i < 100) {

println("hello");

}

a)

0

b)

50

c)

100

d)

This code will loop infinitely

26.

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;

}

}

a)

10

b)

4

c)

1

d)

40

27.

How many possible values can be created with only 2 bits?

a)

4

b)

2

c)

11

d)

3

28.

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?

a)

Yes, as long as “The Lion King” video is compressed with an open non-patented standard

b)

Yes, if “The Lion King” video is compressed with a lossy compression algorithm

c)

Yes, but only if “The Lion King” video is produced by a major company like Disney

d)

No. “The Lion King” will always take up more space than 1-minute video

29.

Which of the following pixels has a color value of #ff0000? (expressed in hexadecimal)

a)

Red Pixel

b)

Blue Pixel

c)

Green Pixel

d)

Purple Pixel

30.

What is the number base of the binary number system?

a)

10

b)

2

c)

1

d)

0

31.

In the binary value 1002, what is the place value of the 1?

a)

100s place

b)

2s place

c)

4s place

d)

1s place