SIT104 Quiz

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

What should you keep in mind when you use images in a Web page?

Keep the image simple. Isolate large graphics. Both A and B. √ Need not worry about putting in images in general.

What is the correct syntax for referring to an external script called "xxx.js"?

<script src="xxx.js"> √ <script name="xxx.js"> <script href="xxx.js"> <script value="xxx.js">

Which of the following is not true

CSS is tightly integrated with the HTML structure. √ CSS is part of dynamic HTML. CSS stand for cascading style sheet. CSS is for design control of the Web page appearance.

CSS

Cascading Style Sheet

XSL

Extensible Stylesheet Language

FTP

File Transfer Protocol

Domain Name

Part of a URL

What is the correct JavaScript syntax to insert a comment that has more than one line?

/*This comment has more than one line*/ √ <!--This comment has more than one line--> //This comment has more than one line// ##This comment has ##more than one line

The _______ tag in HTML can be used to give a table a title that will appear above the table.

<caption>√ <td> <table> <h1>...</h1>

Choose the correct HTML tag to make a text italic

<ii> <i> √ <italics>

What is the correct HTML for making a checkbox?

<input type="checkbox"> √ <check> <input type="check"> <checkbox>

What is the correct HTML for making a text area?

<input type="textarea"> <textarea> √ <input type="textbox">

What is the correct HTML for making a text input field?

<input type="textfield"> <input type="text"> √ <textinput type="text"> <textfield>

Which of these tags are all <table> tags?

<table><head><tfoot> <thead><body><tr> <table><tr><tt> <table><tr><td>√

HTML

Hyper Text Markup Language

Is JavaScript case-sensitive?

Yes. √ No.

HTML uses the _______number system to represent intensity levels of the three primary colors.

binary decimal hexadecimal√ Roman

In HTML a ____ cell is a cell that occupies more than one row or column in a table.

bridge wide overlapping Spanning (rowspan and colspan)√

What is the correct HTML for adding a background color?

<body style="bgcolor:yellow"> <background>yellow</background> <body style="color:yellow"> <body style= "background-color: yellow;"> √

Choose the correct HTML tag for the largest heading

<heading> <h1> √ <h6> <head>

What is the correct HTML for inserting an image?

<img href="image.gif> <img src="image.gif"> √ <img>image.gif</img> <image src="image.gif">

What is the correct HTML for making a drop-down list?

<input type="list"> <input type="dropdown"> <list> <select>√

What are the basic ways that people can become aware of your Web site?

URL is told by somebody. The link is followed from another Web site. Your site is listed in a search engine. All of the above. √

URL and its identifiers?

Uniform Resource Locator: Has four parts - The protocol, sever/dns/folder/file.

How can you add a comment in a JavaScript?

//This is a comment √ 'This is a comment <!--This is a comment--> #This is a comment

HTML allows for how many different levels of the heading <H> tag?

4 6√ 8 10

How can you open a link in a new browser window?

<a href="url" new> <a href="url" target="new"> <a href="url" target="_blank">√ <a href="url" _blank>

DTD

Document Type Definition - A DTD defines the syntax of all allowable tags and attributes, and a 'grammar' for their sequencing and nesting.

When you want to use JavaScript to manipulate the browser window, the browser window's JavaScript object name is:

Frame Document Window √ browser_window

The <em> logical tag is the same as which physical tag?

bold italicize√ underline none of the above.

The HTML tag <hr> creates a(n) ________ in a file.

horizon option heading of size "R" to be used horizontal line√ none of the above

Which HTML attribute is used to define inline styles?

style √ font class styles

The <th> tag in HTML can be used to specify a:

table caption column or row heading√ data in a table cell table row

How does a WHILE loop start?

while (i <= 10; i++) while i = 1 to 10 while (i <= 10) √ While (i=0;i<=10)

In JavaScript, the following loop will execute ________ times. for (x=1; x<11; x++)

9 10 √ 11 cannot tell from this portion of the Script

Which of the following pieces of coding would be correct using HTML?

<H1>Examination Guidelines<H1> <p>First, read all the questions<p>Finally re-read your answers <p>First, read all the questions</p><p>Finally re-read your answers</p>√ <p>First, read all the questions<p></p>Finally re-read your answers</p>

How many layers in TCP and what are they?

Application layer: used by applications (e.g. World Wide Web, FTP) to gain access to the Internet Transport layer: provides reliable communications between computers Internet layer: for addressing and routing packets between hosts and networks Network access layer: for sending and receiving 'frames'

In standard HTML, an ordered list without a list-style-type property will display points by default with:

Arabic numbers√ letters of the alphabet Roman numerals There is no default, any of the above will appear randomly.

Which one of the following is a graphics file format commonly used on the Internet?

BMP MP3 GIF√ TIFF

In an HTML form, if you require users to input a number that has a maximum of ten digits, like a telephone number, you can use the _____ property/attribute to make sure that no more than ten digits are accepted in the field.

Length Maxlength √ Value None of the above.

CGI

The Common Gateway Interface (CGI) system

Who is making the Web standards?

The World Wide Web Consortium √ Netscape Microsoft

A client-side image map is called a(n):

USEMAP √ ISMAP Either a or b. Neither a nor b.

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

document.getElementByName("p").innerHTML = "Hello World!"; document.getElementById("demo").innerHTML = "Hello World!"; √ #demo.innerHTML = "Hello World!"; document.getElement("p").innerHTML = "Hello World!";

How does a "for" loop start?

for (i = 0; i <= 5) for (i = 0; i <= 5; i++) √ for i = 1 to 5 for (i <= 5; i++)

The difference between a logical tag and a physical tag in HTML:

is that logical tags indicate how text is to be used, while physical tags indicate exactly how characters are to be formatted. √ is that physical tags indicate how text is to be used, while logical tags indicate exactly how characters are to be formatted depends on which browser is used. There are no differences between them.

The HTML statement <a href="music.html#Jazz">Jazz</a> specifies a hypertext link to a:

specific section of the current document. document file located in the same directory. specific section of another document file located in the same directory. √ document file located on a different server.

Design for Accessibility is based on what?

Based on Four Principles (POUR) Perceivable -Content must be Perceivable. Operable - Interface components in the content must be Operable. Understandable - Content and controls must be Understandable. Robust - Content should be Robust enough to work with current and future user agents, including assistive technologies.

XML

It is a text-based syntax designed to describe, deliver, and exchange structured information. It is not intended to replace HTML, but to extend the power of HTML by separating data from presentation.

TCP/IP, HTTP, FTP

Transmission Control Protocol/Internet Protocol: TCP breaks files down into packets. These Packets contain the destination, source, sequence number and checksum values. Essentially to transmit files over the internet. IP takes over after TCP creates the packets.

The Internet vs An Internet

What is "The Internet": a network of local area networks (LANs) and wide-area networks (WANs)

The sequence of HTML tags of the form <ol>...<ul>...</ul>...</ol> is an example of:

a sublist within a list. √ how to place list items in ascending order how to place items in descending order an incorrect list structure.

How do you insert a comment in a CSS file?

' this is a comment /* this is a comment */ √ // this is a comment // // this is a comment

In JavaScript, which of the following is NOT an assignment operator?

+= || √ *= =

Meta Data

/

Validation

/

How many looping statements are there in JavaScript?

2. The "for" loop, and the "while" loop 4. The "for" loop, the "while" loop, the "do...while" loop, and the "loop...until" loop 3. The "for" loop, the "while" loop, and the "do...while" loop √ 1. The "for" loop

To insert a background image "flower.gif" on your web page, use the tag

<body style="bg-image:url('flower.gif')">. <body style="b-ground:flower.gif> <body style="background-image: url('flower.gif')" > √ <body style="bgr:url('flower.gif')">.

What is the correct HTML tag for inserting a line break?

<br> √ <break> <lb> <hr>

In HTML, the _____ tag is used to control a Web page's color scheme.

<color> <body>√ <head> <link>

In an HTML form, the correct syntax for creating an input box named "Phone" that is 15 characters in length is:

<input type="text" name= "Phone 15"> <input type="text" size= "15"> <input type="text" name= "Phone" size= "15"> √ none of the above.

What is the correct HTML for referring to an external style sheet?

<style src="mystyle.css"> <link rel="stylesheet" type="text/css" href="mystyle.css"> √ <stylesheet>mystyle.css</stylesheet> <link rel="stylesheet" type="text/css" src="mystyle.css">

Choose the correct HTML to left-align the content inside a tablecell

<td left> <td style="align:leftalign> <td style="text-align:left" > √ <td style="align:left">

Where is the correct place to insert a JavaScript?

Both the <head> section and the <body> section are correct √ The <body> section The <head> section

An external JavaScript must contain the <script> tag?

False √ True

When you want to use JavaScript to manipulate the currently displayed Web page, the Web page's JavaScript object name is:

Frame Document √ Window browser_window

What does HTML stand for?

Hyperlinks and Text Markup Language Home Tool Markup Language Hyper Text Markup Language√

How many ways can you set styles in HTML?

Linked Embedded Inline

Which of the following is NOT a step in forming an HTML hypertext link?

Locate the link, text or graphic that will be clicked to jump to the destination of the link. Before the text or graphic, place the tag <a href= "filename"> where "filename" is the name of the document. Use "color=" to set the color of the hypertext link. √ After the text or graphic, place the tag </a>.

How do you find the largest number of 2 and 4?

Math.ceil(2,4) Math.max(2,4) √ ceil(2,4) top(2,4)

How do you round the number 7.25, to the nearest whole number?

Math.rnd(7.25) round(7.25) rnd(7.25) Math.round(7.25) √

A named element in a JavaScript program that is used to store and retrieve data is a _____.

Method assignment operator Variable √ string

What should you keep in mind when you use links in a Web page?

Never put two links immediately adjacent to one another. Keep the link content as concise as possible. Both A and B. √ Need not worry too much about links in general.

Alert(message), close() and reset() are JavaScript:

Objects Methods √ Properties commands

What are the basic ways to provide hints for search engines?

Put keywords in the <TITLE> tag of the Web page. Put keywords in the first few lines of the Web page. Put keywords as many times as possible in the Web page. All of the above for every major search engines. √

The Web security issues are involved in

Server. CGI script. Client. All of the above. √

W3C

Sets the standard for HTML.

HTTP

Special protocol used to communicate between Web servers and clients for sending/receiving HTML documents.

XHTML?

XHTML 1.0 is essentially identical to 'standard' HTML 4, any valid HTML document (version 3.1 or 4.1) is also in principle a valid XHTML 1.0 document

How do you write "Hello World" in an alert box?

alert("Hello World") √ msgBox("Hello World") alertBox="Hello World" alertBox("Hello World")

If you wanted to write a glossary in which a word or phrase would be followed by its meaning, the most suitable HTML tag list type would be:

an ordered list. an unordered list a description list. √ a numbered list

Which is the correct CSS syntax?

body {color: black} √ {body;color:black} body:color=black {body:color=black(body}

How do you call a function named "myFunction"?

call myFunction() myFunction() √ call function myFunction Call.myFunction()

In a form, if you want users to select only one option out of many, use:

check boxes. radio buttons. √ text boxes. either a or b.

In JavaScript, what would be the proper form of address in the object hierarchy for the second element in a form called "info"?

document.info.elements[1] √ document.info.elements[2] document.forms.info.elements[2] info.elements[2]

In HTML, the rectangular hotspot of an image map is defined by:

four pairs of coordinates that specify each of the four corners of the rectangle two pairs of coordinates, one specifying the upper-right corner and the other, the lower-left corner of the rectangle. two pairs of coordinates, one specifying the upper-left corner and the other, the lower-right corner of the rectangle. √ one pair of coordinates that specifies the circle, and a number that specifies the length of the radius.

How do you create a function?

function:myFunction() function=myFunction() function myFunction() √ myFunction():function

How do you write a conditional statement for executing some statements only if "i" is NOT equal to 5?

if (i != 5) √ if =! 5 then if (i <> 5) if <>5

How do you write a conditional statement for executing some statements only if "i" is equal to 5?

if i==5 then if (i==5) √ if i=5 then if i=5

By default, a browser places a table written in HTML on the _____ of a page.

left√ right centre top

The introduction of CGI scripts changed the way that the Web was used because:

of the ability to maintain customer databases. customers acquired the ability to locate and purchase merchandise online. it allows computer users to access a company's customer support database. all of the above. √

Which event occurs when the user clicks on an HTML element?

onchange onclick √ onmouseover onmouseclick

In JavaScript, the symbols + - * and / are:

operators. √ expressions. comparison operators. None of the above.

An allowable value of the SHAPE property/attribute of the <area> tag in HTML is:

rect oval poly both a and c√

What is the correct JavaScript syntax to write "Hello World"?

response.write("Hello World") "Hello World" document.write("Hello World") √ ("Hello World")

In HTML, you use a button on a form to:

run a program. submit a form to a server. reset a form to its original state. all of the above.

To define a style sheet, you need to

specify each property and its corresponding value. associate property-value pairs to dedicated HTML tag(s). Both A and B. √ None of the above.

The TITLE container goes inside:

the HEAD tag√ the TITLE tag. the BODY tag. a comment tag.

The majority of a typical Web document will be found in:

the head tag. the title tag. the body tag. √ a comment tag.

What is the correct way to write a JavaScript array?

var txt = new Array(1:"tim",2:"kim",3:"jim") var txt = new Array="tim","kim","jim" var txt = new Array:1=("tim")2=("kim")3=("jim") var txt = new Array("tim","kim","jim") √

How do you declare a JavaScript variable?

variable carName; v carName; var carName; √ $carName;

In JavaScript, which of the following is a logical operator?

| && √ % /

Inside which HTML element do we put the JavaScript?

<javascript> <js> <script>√ <scripting>

How can you make an e-mail link?

<mail>xxx@yyy</mail> <a href="xxx@yyy"> <mail href="xxx@yyy"> <a href="mailto:xxx@yyy">√

Which HTML tag is used to define an embedded style sheet?

<script> <style> √ <css> <stylesheet>

How can you make a list that numbers the items with 1, 2, 3...?

<ul> <list> <ol>√ <dl>

How can you make a list that labels the items with bullets?

<ul>√ <list> <ol> <dl>

In HTML, use the _____ property/attribute to set a default value that displays in an input box when the form is initially displayed.

Default Value √ Form None of the above.

In JavaScript, the expression x!=y returns false if:

the variables are equal. √ x is less than y. the variables are not equal. None of the above.

Which of the following is a valid style definition format:

<SPAN STYLE="property-value pair(s)">... </SPAN> <STYLE>... </STYLE> Both A and B. √ None of the above.

Which of the following is a valid style definition format?

<SPAN STYLE="property-value pair(s)">... </SPAN> <STYLE>... </STYLE> Both A and B. √ None of the above.

Choose the correct HTML tag to make a text bold

<bb> <b> √ <bold> <bld>

Which statement shown below is true of the HTML tag sequence <img src="icon.gif"><a href="bach.htm">Bach</a>?

The inline image "icon.gif" is a hyperlink, but the text Bach is not. The inline image "icon.gif is not a hyperlink, but the text "Bach" is. √ Both are hyperlinks. Neither is a hyperlink.

In HTML, the _____ property/attribute identifies the CGI script that will process a form.

Value Action√ Enctype hidden

The HTML code <a href ="http://food.com/snacks/pizza.html"> specifies the...

communication protocol. directory path. desired HTML file name. All of the above. √

For defining a spacing property in a style sheet, which of the following is not true

margin-top: 50px text-indent: 10px padding-right: 100px position white-space: normal √

When creating a table in HTML, the <td> tags are used to specify the:

number of dimensions of the table. type of data to be entered into the table. location of each individual table cell. √ number of decimal places in the numeric data that will be displayed.

The ALT attribute should be used with images:

to give users a description of the image as it is loading to provide an alternative if the user only has a text browser. both A & B. √ neither A or B.


Set pelajaran terkait

Chap 58-Assessment and Management of Pts. with Breast Disorders

View Set

Chapter 11- Romantic Relationships

View Set

Econ 102-4001 Chapter 1 & 2 Exam

View Set

Chapter 13 Risk, Cost of Capital, Valuation

View Set

Quantitative Analysis II review of all the assignment (chap1-5)

View Set

Unit 1B Vocabulary - General Psych

View Set

FIN223 Midterm 2 (Chapters 6, 7, 8, 9, 10)

View Set

Cognitive Psychology Final (FA16)

View Set