NEW
Font size
WorksheetsFinal Review
Total questions: 42
Worksheet time: 21mins
What is the primary purpose of the robots.txt file in web security?
To encrypt web pages
To send messages to Spider-bots about what is accessible in a webhost
To increase the loading speed of the website
To monitor user activities on the website
Who is recognized as the first computer programmer and laid the groundwork for modern computer programming?
Grace Hopper
Charles Babbage
Ada Lovelace
Alan Turing
What significant technological contribution did Hedy Lamarr make?
Developed the first compiler
Invented the first computer
Co-invented the frequency-hopping system for secure radio communications
Created the first algorithm for machine calculations
Which of the following is NOT a displayable image format mentioned in the HTML section?
JPEG
TIFF
PNG
SVG
What does HTML stand for?
HyperText Markup Language
HyperTool Markup Language
HyperText Management Language
HyperTool Management Language
Which tag is used to add an image in an HTML document?
<img></img>
<div></div>
<p></p>
<image></image>
Which of the following audio formats is NOT acceptable for control attribute usage according to the CS 103 Review Guide?
MP3
WAV
OGG
FLAC
What is the primary purpose of a Sitemap.xml as described in the CS 103 Review Guide?
To list the physical locations of a website's servers
To ensure website security through encryption
To list URLs for a site along with additional metadata for better search engine crawling
To provide a backup for website data
According to the CS 103 Review Guide, what is the legal status of a copyright as soon as a work is created?
It needs to be registered with the U.S. copyright office
It is only in effect after a public announcement
It is in effect and does not require display of a copyright notice
It is not valid until a copyright notice is displayed
Which of the following is considered illegal under copyright law?
Changing a work
Performing a work publicly
Reproducing a work
Citing a work in another document
What does CSS stand for in web development?
Computer Style Sheets
Creative Style Systems
Cascading Style Sheets
Colorful Style Sheets
Which type of CSS is written in a separate file and linked to the HTML document?
Inline
Internal
External
Imported
What is the purpose of the '*' selector in CSS?
To select elements with a specific class
To select the first element of a type
To override properties in all elements
To select active elements
What does 'margin' do in CSS?
Adds space within an element
Adds space between elements
Styles the element with a specific color
Creates a border around elements
Which of the following is NOT true about padding in CSS?
Padding adds space within an element
Padding can overlap with other elements
Padding is used to create space inside the border of an element
Padding affects the internal spacing of an element
What does the fourth parameter in rgba or hsla color formats represent?
Hue
Saturation
Transparency
Brightness
Which CSS property is used to change the style of the font?
font-style
color
padding
border
According to CSS specificity rules, which type of selector will override the others if there are conflicting styles?
Class selector
ID selector
Tag selector
Inline style
What is the purpose of using a generic font family at the end of a font stack in CSS?
To ensure text is readable if other fonts are not available
To make the webpage load faster
To override all other font styles
To increase the specificity of the font rule
What does 'vh' stand for in CSS?
Vertical height
View height of current window
Vertical header
Variable height
What is the purpose of using 'margin: auto' in CSS?
It sets the margin to a fixed size
It adds automatic padding
It centers the element horizontally
It removes all margins
Which CSS property is used to control the size of text using the viewport width?
font-size
text-size
calc(px + vw/vh%)
max-width
What does 'flexbox' help with in CSS?
Creating flexible headers only
Adjusting text alignment
Understanding the basics of layout
Linking external stylesheets
What is the effect of 'transition: 2s linear 1s' in CSS?
It changes the color after 2 seconds
It delays the transition by 1 second and completes it in 2 seconds linearly
It makes the transition instant
It loops the transition every 2 seconds
Which type of positioning in CSS does not change the position of an element?
Static positioning
Fixed positioning
Relative positioning
Absolute positioning
What is absolute positioning in web design?
Positioning that is fixed relative to the screen's viewport.
Positioning that is relative to the nearest positioned ancestor.
Positioning that is relative to the parent container, making other elements act as if the positioned element does not exist.
Positioning that depends on the default flow of the webpage.
Which of the following is NOT a web programming language?
PHP
JavaScript
Python
HTML
What does the 'Z-index' property do in CSS?
Controls the opacity level of an element.
Sets the rotation of an element on the Z-axis.
Determines the stacking order of elements.
Adjusts the zoom level of elements on a page.
How do you initiate a variable in JavaScript?
Using keywords like 'int', 'str', or 'bool' followed by a variable name.
Using keywords like 'let', 'var', or 'const', followed by a variable name and an assignment.
By simply naming the variable and assigning a value.
Using the 'variable' keyword followed by the variable name.
What is the correct syntax for printing to the console in JavaScript?
print.console("message");
console.print("message");
console.log("message");
log.console("message");
Which operation is NOT allowed with data type Numeric in JavaScript?
Addition
Subtraction
Multiplication
Concatenation
What occurs when you concatenate two strings in JavaScript?
The strings are merged into one string.
The strings are compared for equality.
The first string is replaced by the second.
An error is thrown.
What does the JavaScript operation "Number + String" result in?
A number
A string
A boolean value
An error
What is the purpose of the JavaScript function "String()"?
To convert a boolean to a string
To convert a string to a number
To convert a number to a string
To check if a variable is a string
Which relational operator in JavaScript checks for equality in both value and type?
==
!=
===
<=
What does the JavaScript function "isNaN()" return when the argument is not a number?
true
false
null
undefined
What is the result of using the logical operator "&&" in JavaScript when both sub-expressions are true?
true
false
null
undefined
What does the logical operator "||" represent in an expression?
AND
NOT
OR
NOR
What is the result of an expression if a sub-condition using the "!" operator returns false?
The overall expression returns true
The overall expression returns false
The overall expression does not change
The overall expression returns null
What is the output of the following loop: for (i = 0; i < 10; i++) { console.log(i); }?
It logs numbers from 0 to 9
It logs numbers from 1 to 10
It logs numbers from 0 to 10
It does not log any numbers
What does HTTPS in a website URL signify about the website's security?
The website is not secure.
The website is secure and encrypts data between the user and the site.
The website has been hacked.
The website is only accessible in certain countries.
What is the correct JavaScript syntax to change the content of the HTML element below?
<p id="demo">This is a demonstration.</p>
document.getElementById("demo").innerHTML = "Hello World";
#demo.innerHTML = "Hello World";
document.getElementById("p").innerHTML = "Hello World";
document.getElementByName("p").innerHTML = "Hello World";
