CS 103 HTML Test questions

0.0(0)
studied byStudied by 3 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/41

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

42 Terms

1
New cards

chose the correct file format for robots:

robots.txt

2
New cards
<p>based on the folder structure, write the content of the robots file to prevent all search engines (*) to index <strong>m</strong></p>

based on the folder structure, write the content of the robots file to prevent all search engines (*) to index m

User-agents: *

Disallow: cs392/projects/mini-projects/mp1

3
New cards

why is indentation important for HTML coding?

it improves code readability and maintainability

4
New cards

Who is widely recognized as the first computer programmer?

Ada Lovelace

5
New cards


What is the significance of the <!-- --> tag in HTML?

It allows developers to add comments to their code

6
New cards

What does HTML stand for?

Hypertext Markup Language

7
New cards

Write the code of a HTML skeleton

Given:

<meta charset = “UTF-8”>
<[tle> Midterm-1 | CS-103 </[tle>

<!DOCTYPE html>
<html lang=“en”>
<head>
<meta charset = “UTF-8”>
<Title> Midterm-1 | CS-103 </title>
</head>
<body>
</body>
</html>

8
New cards


Disney's animated film, Snow White and the Seven Dwarfs (1937), is still protected under Disney's copyrights.

True

9
New cards

What type of links are typically grouped inside a <nav></nav> tag?

Internal Navigation

10
New cards

What does the footer section of a webpage conventionally contain?

Copyright statement

11
New cards

Under current US law, when is copyright in effect?

As soon as a work is created

12
New cards

What is fair use in US copyright law

Provision that allows limited use for specific purposes

13
New cards
<p>Write the HTML code for a footer that includes the following credit statement</p><p></p><p><span style="font-size: calc(var(--scale-factor)*12px);"><span>Note:</span></span><br><span style="font-size: calc(var(--scale-factor)*12px);"><span>• Use must use Unicode for the copyright logo at the beginning.</span></span><br><span style="font-size: calc(var(--scale-factor)*12px);"><span>• “Privacy Statement” is a link and leads to this URL:</span></span><br><span style="font-size: calc(var(--scale-factor)*12px);"><span>hfps://www.bu.edu/policies/</span></span><br><span style="font-size: calc(var(--scale-factor)*12px);"><span>• “Accessibility” is a link and leads to this URL:</span></span><br><span style="font-size: calc(var(--scale-factor)*12px);"><span>hfps://www.bu.edu/disability/</span></span></p>

Write the HTML code for a footer that includes the following credit statement

Note:
• Use must use Unicode for the copyright logo at the beginning.
• “Privacy Statement” is a link and leads to this URL:
hfps://www.bu.edu/policies/
• “Accessibility” is a link and leads to this URL:
hfps://www.bu.edu/disability/

<footer>
<p>
&#169; 2023 Trustees of Boston University
<a href=“hfps://www.bu.edu/policies/ ”>Privacy Statement</a>
<a href=“hfps://www.bu.edu/disability/>Accessibility</a>
</p>
</footer>

14
New cards
<p><span style="font-size: calc(var(--scale-factor)*12px);"><span>If you want to use the </span><u><span>profile.jpg</span></u><span> image in </span><u><span>resume.html</span></u><span> given the</span></span><br><span style="font-size: calc(var(--scale-factor)*12px);"><span>project structure, what should be the </span><strong><span>value</span></strong><span> of the </span><u><span>src</span></u><span> attribute?</span></span></p>

If you want to use the profile.jpg image in resume.html given the
project structure, what should be the value of the src attribute?

src="../src/profile.jpg"

15
New cards

Which of the following is not a web browser-supported image format?

Tiff

16
New cards

Which of the following is a block level element?

<hr>

17
New cards

Which term refers to ethical SEO?

White hat SEO

18
New cards

What is sitemap.xml used for?

Providing a road map for search engine bots to index website pages

19
New cards

Complete the following sitemap.xml:

<?____ version="1.0" encoding="UTF-8"?>
<___ schemaLoca[on="hfps://www.sitemaps.org/schemas/sitemap/0.9 ">
<_____>
<____>/cs-103/labs/lab-3/b/resume.html</ ____>
<lastmod>2008-01-01</ _____ >
<_____>weekly</changefreq>
<priority>1</____>
</____>
</_____>

<?xml version="1.0" encoding="UTF-8"?>
<urlset schemaLoca[on="hfps://www.sitemaps.org/schemas/sitemap/0.9 ">
<url>
<loc>/cs-103/labs/lab-3/b/resume.html</ loc>
<lastmod>2008-01-01</ lastmod >
<changefreq>weekly</changefreq>
<priority>1</priority>
</url>
</urlset>

20
New cards

What Unicode character represents the copyright logo?

&#169;

21
New cards
<p><span style="font-size: calc(var(--scale-factor)*12px);"><span><br>Given the folder/file structure, create an audio tag</span></span></p><p></p><p><span style="font-size: calc(var(--scale-factor)*12px);"><span>Note:</span></span><br><span style="font-size: calc(var(--scale-factor)*12px);"><span>• Your file-addressing in the audio tag, must be done under the assumption that the audio tag is in audio.html</span></span></p>


Given the folder/file structure, create an audio tag

Note:
• Your file-addressing in the audio tag, must be done under the assumption that the audio tag is in audio.html

<audio src=“../3/src/audio.mp3” controls></audio>

22
New cards
<p><span style="font-size: calc(var(--scale-factor)*12px);"><span>Given the folder/file structure, create a video tag:</span></span></p><p></p><p><span style="font-size: calc(var(--scale-factor)*12px);"><span>Note:</span></span></p><p><span style="font-size: calc(var(--scale-factor)*12px);"><span>Your file-addressing in the video tag, must be done under the assumption that the video tag is in video.html.</span></span></p>

Given the folder/file structure, create a video tag:

Note:

Your file-addressing in the video tag, must be done under the assumption that the video tag is in video.html.

<video src=“../3/src/audio.mp3” controls></video>

23
New cards

The content of the index.html file does not matter as much as its name does

True

24
New cards

Which one of these file names violates spinal-case convention:

I-love-massachusetts

25
New cards
<p><span style="font-size: calc(var(--scale-factor)*12px);"><span>Based on the folder structure, write the content of the robots file to prevent Google (googlebot) to index </span><strong><span>mp1</span></strong></span></p>

Based on the folder structure, write the content of the robots file to prevent Google (googlebot) to index mp1

User-agents: googlebot
Disallow: cs392/projects/mini-projects/mp1

26
New cards

Which attribute is used for the anchor <a> tag when you want your link to be opened in a new tab?

target

27
New cards

What is abstraction in the context of computer science?

A process of reducing complexity for efficient design

28
New cards

How do computers denote ON and OFF states?

With binary numbers 0 and 1

29
New cards

Aside from being a Hollywood actress, what is Hedy Lamarr known for?

Contributing to the development of the modern Wi-Fi technology.

30
New cards

Write the code of an HTML Table (with any content you want, movies, books, etc.)

Note:
• The table must have at least 2 rows.
• Each row must have at least 3 columns

<table>
<tr>
<th>Book</th>
<th>Movie</th>
<th>Song</th>
</tr>
<tr>
<td>A Farewell to Arms</td>
<td>Dances with Wolves</td>
<td>All Along the Watchtower</td>
</tr>
</table>

31
New cards


Disney's animated film, Snow White and the Seven Dwarfs (1937), is still protected under Disney's copyrights.

True

32
New cards


What is the main purpose of Creative Commons licenses?

To allow others to reuse content with specified conditions

33
New cards


When using a work under a Creative Commons license, what must you provide in your copyright statement?

The source, artist, and license of the work

34
New cards
<p><span style="font-size: calc(var(--scale-factor)*12px);"><span><br>Write the HTML code for a footer that includes the following credit statement:</span></span></p><p></p><p><span style="font-size: calc(var(--scale-factor)*12px);"><span>Note:</span></span><br><span style="font-size: calc(var(--scale-factor)*12px);"><span>• Use must use Unicode for the copyright logo at the beginning.</span></span><br><span style="font-size: calc(var(--scale-factor)*12px);"><span>• “Sitemap” is a link and leads to this URL:</span></span><br><span style="font-size: calc(var(--scale-factor)*12px);"><span>h:ps://github.com/sitemap</span></span><br><span style="font-size: calc(var(--scale-factor)*12px);"><span>• “What is Git?” is a link and leads to this URL:</span></span><br><span style="font-size: calc(var(--scale-factor)*12px);"><span>h:ps://github.com/git-guides</span></span></p>


Write the HTML code for a footer that includes the following credit statement:

Note:
• Use must use Unicode for the copyright logo at the beginning.
• “Sitemap” is a link and leads to this URL:
h:ps://github.com/sitemap
• “What is Git?” is a link and leads to this URL:
h:ps://github.com/git-guides

<footer>
<p>
&#169; 2023 GitHub, Inc. Terms Privacy (Updated 08/2022)
<a href=“hFps://github.com/sitemap”>Sitemap</a>
<a href=“hFps://github.com/git-guides”>What is Git?</a>
</p>
</footer>

35
New cards

What does the abbreviation "BY" in Creative Commons licenses stand for?

Attribution

36
New cards

How does the meta-descripIon tag help search engines?

It helps search engines understand what the webpage is about.

37
New cards


What do block-level elements do?

They start on a new line and force the next element on a new line.

38
New cards

What happens if you forget to include the controls attribute in a video tag?

The video will display but won’t play.

39
New cards

Which video formats are playable in web browsers?

MP4, WebM, Ogg

40
New cards


Which term refers to unethical SEO?


Black-hat SEO

41
New cards
<p><span><span>Given the folder/file structure, create an audio tag</span></span></p><p><span style="font-size: calc(var(--scale-factor)*12px);"><span>Note:</span></span><br><span style="font-size: calc(var(--scale-factor)*12px);"><span>• Your file-addressing in the audio tag, must be done under the assumption that the audio tag is in audio.html.</span></span></p>

Given the folder/file structure, create an audio tag

Note:
• Your file-addressing in the audio tag, must be done under the assumption that the audio tag is in audio.html.

<audio src=“../boo/src/audio.mp3” controls></audio>

42
New cards
<p><span>Given the folder/file structure, create a video tag</span></p><p></p><p><span>Note:</span></p><p><span style="font-size: calc(var(--scale-factor)*12px);"><span>Your file-addressing in the video tag, must be done under the assumption that the video tag is in video.html.</span></span></p>

Given the folder/file structure, create a video tag

Note:

Your file-addressing in the video tag, must be done under the assumption that the video tag is in video.html.

<video src=“../boo/src/audio.mp3” controls></video>