wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Final Review

Total questions: 42

Worksheet time: 21mins

Name
Class
Date
1.

What is the primary purpose of the robots.txt file in web security?

a)

To encrypt web pages

b)

To send messages to Spider-bots about what is accessible in a webhost

c)

To increase the loading speed of the website

d)

To monitor user activities on the website

2.

Who is recognized as the first computer programmer and laid the groundwork for modern computer programming?

a)

Grace Hopper

b)

Charles Babbage

c)

Ada Lovelace

d)

Alan Turing

3.

What significant technological contribution did Hedy Lamarr make?

a)

Developed the first compiler

b)

Invented the first computer

c)

Co-invented the frequency-hopping system for secure radio communications

d)

Created the first algorithm for machine calculations

4.

Which of the following is NOT a displayable image format mentioned in the HTML section?

a)

JPEG

b)

TIFF

c)

PNG

d)

SVG

5.

What does HTML stand for?

a)

HyperText Markup Language

b)

HyperTool Markup Language

c)

HyperText Management Language

d)

HyperTool Management Language

6.

Which tag is used to add an image in an HTML document?

a)

<img></img>

b)

<div></div>

c)

<p></p>

d)

<image></image>

7.

Which of the following audio formats is NOT acceptable for control attribute usage according to the CS 103 Review Guide?

a)

MP3

b)

WAV

c)

OGG

d)

FLAC

8.

What is the primary purpose of a Sitemap.xml as described in the CS 103 Review Guide?

a)

To list the physical locations of a website's servers

b)

To ensure website security through encryption

c)

To list URLs for a site along with additional metadata for better search engine crawling

d)

To provide a backup for website data

9.

According to the CS 103 Review Guide, what is the legal status of a copyright as soon as a work is created?

a)

It needs to be registered with the U.S. copyright office

b)

It is only in effect after a public announcement

c)

It is in effect and does not require display of a copyright notice

d)

It is not valid until a copyright notice is displayed

10.

Which of the following is considered illegal under copyright law?

a)

Changing a work

b)

Performing a work publicly

c)

Reproducing a work

d)

Citing a work in another document

11.

What does CSS stand for in web development?

a)

Computer Style Sheets

b)

Creative Style Systems

c)

Cascading Style Sheets

d)

Colorful Style Sheets

12.

Which type of CSS is written in a separate file and linked to the HTML document?

a)

Inline

b)

Internal

c)

External

d)

Imported

13.

What is the purpose of the '*' selector in CSS?

a)

To select elements with a specific class

b)

To select the first element of a type

c)

To override properties in all elements

d)

To select active elements

14.

What does 'margin' do in CSS?

a)

Adds space within an element

b)

Adds space between elements

c)

Styles the element with a specific color

d)

Creates a border around elements

15.

Which of the following is NOT true about padding in CSS?

a)

Padding adds space within an element

b)

Padding can overlap with other elements

c)

Padding is used to create space inside the border of an element

d)

Padding affects the internal spacing of an element

16.

What does the fourth parameter in rgba or hsla color formats represent?

a)

Hue

b)

Saturation

c)

Transparency

d)

Brightness

17.

Which CSS property is used to change the style of the font?

a)

font-style

b)

color

c)

padding

d)

border

18.

According to CSS specificity rules, which type of selector will override the others if there are conflicting styles?

a)

Class selector

b)

ID selector

c)

Tag selector

d)

Inline style

19.

What is the purpose of using a generic font family at the end of a font stack in CSS?

a)

To ensure text is readable if other fonts are not available

b)

To make the webpage load faster

c)

To override all other font styles

d)

To increase the specificity of the font rule

20.

What does 'vh' stand for in CSS?

a)

Vertical height

b)

View height of current window

c)

Vertical header

d)

Variable height

21.

What is the purpose of using 'margin: auto' in CSS?

a)

It sets the margin to a fixed size

b)

It adds automatic padding

c)

It centers the element horizontally

d)

It removes all margins

22.

Which CSS property is used to control the size of text using the viewport width?

a)

font-size

b)

text-size

c)

calc(px + vw/vh%)

d)

max-width

23.

What does 'flexbox' help with in CSS?

a)

Creating flexible headers only

b)

Adjusting text alignment

c)

Understanding the basics of layout

d)

Linking external stylesheets

24.

What is the effect of 'transition: 2s linear 1s' in CSS?

a)

It changes the color after 2 seconds

b)

It delays the transition by 1 second and completes it in 2 seconds linearly

c)

It makes the transition instant

d)

It loops the transition every 2 seconds

25.

Which type of positioning in CSS does not change the position of an element?

a)

Static positioning

b)

Fixed positioning

c)

Relative positioning

d)

Absolute positioning

26.

What is absolute positioning in web design?

a)

Positioning that is fixed relative to the screen's viewport.

b)

Positioning that is relative to the nearest positioned ancestor.

c)

Positioning that is relative to the parent container, making other elements act as if the positioned element does not exist.

d)

Positioning that depends on the default flow of the webpage.

27.

Which of the following is NOT a web programming language?

a)

PHP

b)

JavaScript

c)

Python

d)

HTML

28.

What does the 'Z-index' property do in CSS?

a)

Controls the opacity level of an element.

b)

Sets the rotation of an element on the Z-axis.

c)

Determines the stacking order of elements.

d)

Adjusts the zoom level of elements on a page.

29.

How do you initiate a variable in JavaScript?

a)

Using keywords like 'int', 'str', or 'bool' followed by a variable name.

b)

Using keywords like 'let', 'var', or 'const', followed by a variable name and an assignment.

c)

By simply naming the variable and assigning a value.

d)

Using the 'variable' keyword followed by the variable name.

30.

What is the correct syntax for printing to the console in JavaScript?

a)

print.console("message");

b)

console.print("message");

c)

console.log("message");

d)

log.console("message");

31.

Which operation is NOT allowed with data type Numeric in JavaScript?

a)

Addition

b)

Subtraction

c)

Multiplication

d)

Concatenation

32.

What occurs when you concatenate two strings in JavaScript?

a)

The strings are merged into one string.

b)

The strings are compared for equality.

c)

The first string is replaced by the second.

d)

An error is thrown.

33.

What does the JavaScript operation "Number + String" result in?

a)

A number

b)

A string

c)

A boolean value

d)

An error

34.

What is the purpose of the JavaScript function "String()"?

a)

To convert a boolean to a string

b)

To convert a string to a number

c)

To convert a number to a string

d)

To check if a variable is a string

35.

Which relational operator in JavaScript checks for equality in both value and type?

a)

==

b)

!=

c)

===

d)

<=

36.

What does the JavaScript function "isNaN()" return when the argument is not a number?

a)

true

b)

false

c)

null

d)

undefined

37.

What is the result of using the logical operator "&&" in JavaScript when both sub-expressions are true?

a)

true

b)

false

c)

null

d)

undefined

38.

What does the logical operator "||" represent in an expression?

a)

AND

b)

NOT

c)

OR

d)

NOR

39.

What is the result of an expression if a sub-condition using the "!" operator returns false?

a)

The overall expression returns true

b)

The overall expression returns false

c)

The overall expression does not change

d)

The overall expression returns null

40.

What is the output of the following loop: for (i = 0; i < 10; i++) { console.log(i); }?

a)

It logs numbers from 0 to 9

b)

It logs numbers from 1 to 10

c)

It logs numbers from 0 to 10

d)

It does not log any numbers

41.

What does HTTPS in a website URL signify about the website's security?

a)

The website is not secure.

b)

The website is secure and encrypts data between the user and the site.

c)

The website has been hacked.

d)

The website is only accessible in certain countries.

42.

What is the correct JavaScript syntax to change the content of the HTML element below?

<p id="demo">This is a demonstration.</p>

a)

document.getElementById("demo").innerHTML = "Hello World";

b)

#demo.innerHTML = "Hello World";

c)

document.getElementById("p").innerHTML = "Hello World";

d)

document.getElementByName("p").innerHTML = "Hello World";