CGS 3175 - Internet Applications Test 1 Study Guide

¡Supera tus tareas y exámenes ahora con Quizwiz!

what tag adds short descriptive text to a table? a. <caption> b. <tdesc> c. <description> d. <tcap>

a. <caption>

The smallest heading is ____, while the largest heading is ____. a. <h1>, <h6> b. <h10>, <h1> c. <h6>, <h1> d. <h1>, <h10>

c. <h6>, <h1>

The _____ tag creates a numbered list. a. <l> b. <ul> c. <list> d. <ol>

d. <ol>

The code "HTTP/1.1" is which part in an HTTP request? a. Request type b. Header field c. Message body d. Status line

d. Status line

What is the correct structure for creating a table? a. <table> <td> <th></th> </td> <td> <tr></tr> </td> </table> b. <table> <th> </th> <tr> <td></td> </tr> </table> c. <table> <th> <td></td> </th> <tr> <td></td> </tr> </table> d. <table> <tr> <th></th> </tr> <tr> <td></td> </tr> </table>

d. <table> <tr> <th></th> </tr> <tr> <td></td> </tr> </table>

Which line of code displays: Hi! How are you? a. <p>Hi!</p> How are you? b. <p>Hi! How are you?<p> c. </p>Hi! How are you?<p> d. <p>Hi! How are you?</p>

d. <p>Hi! How are you?</p>

what are the three key languages used in modern web design? a. PHP, Python, and Photoshop b. C, C++, C# c. HTTP, HTTPS, FTP d. HTML, CSS, JavaScript

d. HTML, CSS, JavaScript

What program is used for viewing HTML files? a. Website b. Web page c. Web server d. Web browser

d. Web browser

What is browser caching designed to reduce? a. number of characters in a URL b. amount of data in an HTTP request c. internal server errors d. retrieval time of web content

d. retrieval time of web content

Adding _blank attribute to a link results in ____. a. a blank page opens in the same window browser b. link opens in the same window browser c. a blank page opens in a new window browser d. link opens in a new window browser

d. link opens in a new window browser

what special character is used to display a phone number like 123-456-7890 on the same like without breaking? a. em dash b. non-breaking space c. hyphen d. non-breaking hyphen

d. non-breaking hyphen

What kinds of information can appear in HTML? a. Text, images, and metadata b. Web server, text, and videos c. Images, links, and web servers d. Videos, web servers, and metadata

a. Text, images, and metadata

what does HTTPS protect sensitive information from? a. network errors b. network sniffers c. network resources d. network traffic

b. network sniffers

Which HTML element displays the text "strong emphasis" in the style of strong emphasis? a. <strong><em>strong emphasis</strong></em> b. <strong>strong</strong> <em>emphasis</em> c. <strong><em>strong emphasis</em></strong> d. <em><strong>strong emphasis<strong><em>

c. <strong><em>strong emphasis</em></strong>

Given the following form, what is the request method? <form action = "http://whereis.org/"> <input type = "text" name = "state"> <input type = "text" name = "city"> <input type = "submit"> </form> a. no request is sent b. post c. get d. request

c. get

When a user submits the following form with state set to Florida, and city set to Miami, what URL is sent to the server? <form method="GET" action="http://whereis.org/"> <input type = "text" name = "state"> <input type = "text" name = "city"> <input type = "submit"> </form> a. state=Florida&city=Miami b. http://whereis.org/?state&Florida?city=Miami c. http://whereis.org/?state=Florida&city=Miami d. state="Florida"&city="Miami

c. http://whereis.org/?state=Florida&city=Miami

Good practice is to ensure that web pages _____. a. look the same across all platforms and devices b. use the latest version of programming software c. work acceptably on all established browsers d. include interactive elements

c. work acceptably on all established browsers

Which special character is used so < is not treated as part of the following tag? <p> 0 < 4 </p> a. 0 &lessthan; 4 b. 0 &<; 4 c. 0 &less; 4 d. 0 &lt; 4

d. 0 &lt; 4

What does an IP address look like? a. 198.511.007 b. 192.168.0.1 c. 555-888-0101 d. 11:22:33:44:55

a. 198.511.007

A web browser sends HTTP requests to a web server for a web page with a video and a JavaScript file. How many HTTP responses will the web server likely send to the web browser? a. 3 b. 1 c. 2 d. 4

a. 3

Write a comment so the second paragraph does not display. <p>This is paragraph one.</p> <p>This is paragraph two. Do not display.</p> <p>This is paragraph three.</p> a. <-- This is paragraph two. Do not display. --> b. <!-- <p>This is paragraph two. Do not display.</p> --> c. <!-- <p>This is paragraph two. Do not display.</p> d. <!-- <p>This is paragraph two. Do not display.</p> --!>

b. <!-- <p>This is paragraph two. Do not display.</p> -->

Which code segment below converts an image into a link? a. <a href = "http://www.artist.com/"><img src = "VanGogh.jpg" alt = "van gogh self portrait"></a> b. <a "http://www.artist.com/"><img src = "vanGogh.jpg" alt = "van Gogh self portrait"></a> c. <img src = "vanGogh.jpg" alt = "van Gogh self portrait"><a href = "http://www.artist.com"></a> d. <a><img src = "http://www.artist.com/" alt = "van Gogh self portrait"></a>

a. <a href = "http://www.artist.com/"><img src = "VanGogh.jpg" alt = "van gogh self portrait"></a>

what are the errors in this line of code? <image src = http://example/com/my_face.jpg "Selfie from Spain"> a. <image> should be <img> and alt attribute is missing b. src should say search and the alt attribute is missing c. src should say source and the alt attribute is missing d. <image> should be <img> and the src should say source

a. <image> should be <img> and alt attribute is missing

what tag defines the table body? a. <tbody> b. <td> c. <body> d. <tb>

a. <tbody>

Which HTML element is a block element with no semantic meaning? a. div b. section c. span d. p

a. div

Which HTML container is commonly used to house copyright information on a webpage? a. footer b. header c. section d. article

a. footer

Which fragment identifier links back to Africa in the code below? <h1 id = "Africa">Africa</h1> <p>About Africa</p> <h1 id = "Thailand">Thailand</h1> <p>About Thailand</p> <h1 id = "Brazil">Brazil</h1> <p>About Brazil</p> <h3>Recap</h3> <p>Click on the country's name to read about it again.</p> <ul> <li><a ____>Africa</a><li> </ul> a. href = "#Africa" b. href = Africa c. href = id = "Africa" d. href = "Africa"

a. href = "#Africa"

In the following CSS rule, what is the element to be styled? mark { background-color: yellow; } a. mark b. background c. color d. yellow

a. mark

A list within a list is called a(n) _____. a. nested list b. ordered list c. unordered list d. list

a. nested list

what is something that a web designer can do to make a web page accessible? a. use responsive (scalable) font size whenever possible b. use closed captioning in videos instead of sound c. use flashing effects to call attention to a section d. use green color to indicate success and red color to indicate a warning

a. use responsive (scalable) font size whenever possible

What is the aspect ratio of an image? a. width:height b. height:width c. width+height d. height + width

a. width:height

Select the special character that completes the abbreviation: AT__T. a. && b. &amp; c. &and; d. &;

b. &amp;

Which status code indicates that a web resource had been moved to another URL? a. 200 b. 301 c. 304 d. 403

b. 301

What is the correct format for displaying 75 mph on the same line without breaking sequence? a. 75 mph b. 75&nbsp;mph c. 75&space;mph d. 75&nospace;mph

b. 75&nbsp;mph

In the URL https://www.google.com/search?q=Hostname, what is "/search?q=Hostname"? a. Hostname b. Path c. Scheme d. Search

b. Path

How do multiple spaces within a p tag display? a. As a double space b. As an error c. As a single space d. Exactly how it is written within the tag

c. As a single space

Why would someone use a domain name instead of an IP address? a. IP addresses are case-sensitive, and domain names are case-insensitive b. Domain names can change, and IP addresses must remain fixed c. Domain names are easy to remember, and IP addresses are not d. IP addresses must begin with one of only 13 valid numbers, and domain names can begin with any letter or number

c. Domain names are easy to remember, and IP addresses are not

What are the tree popular image formats? a. JPEG, SVG, GIF b. JPG, GIF, TIF c. JPEG, PNG, GIF d. JPG, HEIF, PNG

c. JPEG, PNG, GIF

For the website www.canada.travel, what domain-level hierarchy is "canada"? a. Customized top-level domain b. Country-code top-level domain c. Second-level domain d. Subdomain

c. Second-level domain

Why do web developers leave comments in the code? a. To make the code longer b. It is required c. To leave notes or reminders d. To pass HTML validation

c. To leave notes or reminders

_____ is a collection of related web pages. a. the internet b. a web server c. a website d. world wide web

c. a website

https://www.google.com is an example of a(n) ___ URL. a. complete b. relative c. absolute d. finished

c. absolute

Which element is a block element with semantic meaning ideal for containing blog post content? a. div b. a c. article d. span

c. article

In HTML, <img> is an example of _____. a. paragraph tag b. closing tag c. opening tag d. format tag

c. opening tag

_____ declares the document as HTML. a. <!doctype html> b. <!DOCTYPE HTML> c. <DOCTYPE html> d. <!DOCTYPE html>

d. <!DOCTYPE html>

Which element is complete? a. <p>Hello World</p> b. <p>Hello World<p> c. </p>Hello World</> d. </p>Hello World</p>

a. <p>Hello World</p>

The following paragraph breaks each sentence into a new line. Which code segment makes that possible? The sun is hot. The weather is humid. I feel like I am going to melt. a. <p>The sun is hot.<br> The weather is humid.<br> I feel like I am going to melt. </p> b. <p>The sun is hot.</p> <p>The weather is humid.</p> <p>I feel like I am going to melt.</p> c. <p><br>The sun is hot.</br></p> <p><br>The weather is humid. </br></p> <p>I feel like I am going to melt.</p> d. <p><br>The sun is hot.</br> <br>The weather is humid.</br> I feel like I am going to melt.</p>

a. <p>The sun is hot.<br> The weather is humid.<br> I feel like I am going to melt. </p>

Which span container construct is correct? a. <span>According to Wikipedia, J.R.R. Tolkien's <u>The Lord of the Rings</u> is the second best-selling novel ever written.</span> b. <span>According to Wikipedia, J.R.R. Tolkien's <p>The Lord of the Rings</p> is the second best-selling novel ever written.</span> c. <span>According to Wikipedia, J.R.R. Tolkien's <div>The Lord of the Rings</div> is the second best-selling novel ever written.</span> d. <span>According to Wikipedia, J.R.R. Tolkien's <u>The Lord of the Rings</u> is the second best-selling novel ever written.

a. <span>According to Wikipedia, J.R.R. Tolkien's <u>The Lord of the Rings</u> is the second best-selling novel ever written.</span>

Which format conveys the importance of the word "only" in the sentence below? Use only in case of an emergency. a. <strong> b. <bold> c. <i> d. <important>

a. <strong>

CSS rules may be placed within _____ tags of an HTML file. a. <style> b. <body> c. <meta> d. <title>

a. <style>

Which attribute makes the data span 4 rows? a. <td rowspan = "4"> b. <tr rowspan = "4"> c. <td span = "4"> d. <td row = "4">

a. <td rowspan = "4">

What is the proper structure for creating a bulleted list? a. <ul> <li>England</li> <li>Japan</li> <li>Australia</li> </ul> b. <ol> <li>England</li> <li>Japan</li> <li>Australia</li> </ol> c. <list> <item>England</item> <item>Japan</item> <item>Australia</item> </list> d. <bullet> <item>England</item> <item>Japan</item> <item>Australia</item> </bullet>

a. <ul> <li>England</li> <li>Japan</li> <li>Australia</li> </ul>

Where is the error in the following? <!--This paragraph is <!--a--> comment.--> a. Comment inside another comment b. Comment is formatted incorrectly c. There is no error d. Missing<p></p>

a. Comment inside another comment

What happens to elementX if the variable x is 4? elementX.style.color = "blue"; if (x == 1) { elementX.style.color = "yellow";} else if (x == 2) { elementX.style.color = "green";} else if (x == 3) { elementX.style.color = "red";} a. The color is set to red b. The color is set to blue c. The color is set to green d. The color is set to yellow

b. The color is set to blue

What happens when type="i" is added to the <ol> tag? <ol type="i"> <li>Sam</li> <li>Mike</li> <li>Sandra</li> </ol> a. The numbers change to lower-case letters b. The numbers change to lower-case Roman numerals c. The numbers change to uppercase Roman numerals d. The numbers stay the same

b. The numbers change to lower-case Roman numerals

What is the name of the organization that is currently setting the HTML standards? a. W3C b. WHATWG c. Wikipedia d. WWW

b. WHATWG

which attribute displays text when an image cannot be viewed? a. src b. alt c. img d. style

b. alt

The ____ attribute tells the browser where to when a link is clicked. a. mailto: b. href c. https d. anchor

b. href

What effect does the colspan have on the table data? < td colspan = "2"> a. the cell occupies 2 columns and 2 rows b. the cell occupies 2 columns c. the cell occupies 1 column and 2 rows d. the cell disappears

b. the cell occupies 2 columns

what does this JavaScript line of code do? obj = document.getElementById("Header") a. compares the elements obj and Header in the document b. changes the color of the element with id 'Header' c. sets the variable obj to the element with id 'Header' d. sets the object 'Header' to the document's identifier

c. sets the variable obj to the element with id 'Header'

In the following snippet, the li element width ____. <section> </section> <p>some text</p> <ol> <li>the text</li> </ol> a. takes on the width of the section element b. uses the minimum width of the ol element c. takes on the width of the ol element d. takes on the width of the text

c. takes on the width of the ol element

JavaScript can use ____ to modify the properties of elements in another part of the HTML document. a. forms b. labels c. variables d. tags

c. variables


Conjuntos de estudio relacionados

chapter 9: Implementation and Evaluation

View Set

What is the Private Reserve Strategy?

View Set

chapter 2 early us history; The Rise of the Atlantic World, 1400-1625

View Set

Canterbury Tales Positive, Negative and Neutral Characters

View Set