Sunteți pe pagina 1din 84

http://www.ex-designz.net/infotechquiz.asp What is HTML? HTML is a language for describing web pages.

y HTML stands for Hyper Text Markup Language y HTML is not a programming language, it is a markup language y A markup language is a set of markup tags y HTML uses markup tags to describe web pages HTML Tags HTML markup tags are usually called HTML tags y HTML tags are keywords surrounded by angle brackets like <html> y HTML tags normally come in pairs like <b> and </b> y The first tag in a pair is the start tag, the second tag is the end tag y Start and end tags are also called opening tags and closing tags HTML Documents = Web Pages y HTML documents describe web pages y HTML documents contain HTML tags and plain text y HTML documents are also called web pages The purpose of a web browser (like Internet Explorer or Firefox) is to read HTML documents and display them as web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page: <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> Example Explained y The text between <html> and </html> describes the web page y The text between <body> and </body> is the visible page content y The text between <h1> and </h1> is displayed as a heading y The text between <p> and </p> is displayed as a paragraph What You Need You don't need any tools to learn HTML at W3Schools. y You don't need an HTML editor y You don't need a web server y You don't need a web site Editing HTML HTML can be written and edited using many different editors like Dreamweaver and Visual Studio.

However, in this tutorial we use a plain text editor (like Notepad) to edit HTML. We believe using a plain text editor is the best way to learn HTML. Create Your Own Test Web If you just want to learn HTML, skip the rest of this chapter. If you want to create a test page on your own computer, just copy the 3 files below to your desktop. (Right click on each link, and select "save target as" or "save link as") mainpage.htm page1.htm page2.htm After you have copied the files, you can double-click on the file called "mainpage.htm" and see your first web site in action. Use Your Test Web For Learning We suggest you experiment with everything you learn at W3Schools by editing your web files with a text editor (like Notepad). Note: If your test web contains HTML markup tags you have not learned, don't panic. You will learn all about it in the next chapters. .HTM or .HTML File Extension? When you save an HTML file, you can use either the .htm or the .html file extension. There is no difference, it is entirely up to you. HTML Headings HTML headings are defined with the <h1> to <h6> tags. Example <h1>This is a heading</h1> <h2>This is a heading</h2> <h3>This is a heading</h3> Try it yourself

HTML Paragraphs HTML paragraphs are defined with the <p> tag. Example <p>This is a paragraph.</p> <p>This is another paragraph.</p> Try it yourself

HTML Links HTML links are defined with the <a> tag. Example <a href="http://www.w3schools.com">This is a link</a>

Try it yourself Note: The link address is specified in the href attribute. (You will learn about attributes in a later chapter of this tutorial). HTML Images HTML images are defined with the <img> tag. Example <img src="w3schools.jpg" width="104" height="142" /> Try it yourself Note: The name and the size of the image are provided as attributes. HTML Elements An HTML element is everything from the start tag to the end tag: Start tag * Element content End tag * <p> This is a paragraph </p> <a href="default.htm" > This is a link </a> <br /> * The start tag is often called the opening tag. The end tag is often called the closing tag. HTML Element Syntax y An HTML element starts with a start tag / opening tag y An HTML element ends with an end tag / closing tag y The element content is everything between the start and the end tag y Some HTML elements have empty content y Empty elements are closed in the start tag y Most HTML elements can have attributes Tip: You will learn about attributes in the next chapter of this tutorial. Nested HTML Elements Most HTML elements can be nested (can contain other HTML elements). HTML documents consist of nested HTML elements. HTML Document Example <html> <body> <p>This is my first paragraph.</p> </body> </html> The example above contains 3 HTML elements. HTML Example Explained The <p> element:

<p>This is my first paragraph.</p> The <p> element defines a paragraph in the HTML document. The element has a start tag <p> and an end tag </p>. The element content is: This is my first paragraph. The <body> element: <body> <p>This is my first paragraph.</p> </body> The <body> element defines the body of the HTML document. The element has a start tag <body> and an end tag </body>. The element content is another HTML element (a p element). The <html> element: <html> <body> <p>This is my first paragraph.</p> </body> </html> The <html> element defines the whole HTML document. The element has a start tag <html> and an end tag </html>. The element content is another HTML element (the body element). Don't Forget the End Tag Some HTML elements might display correctly even if you forget the end tag: <p>This is a paragraph <p>This is a paragraph The example above works in most browsers, because the closing tag is considered optional. Never rely on this. Many HTML elements will produce unexpected results and/or errors if you forget the end tag . Empty HTML Elements HTML elements with no content are called empty elements. <br> is an empty element without a closing tag (the <br> tag defines a line break). Tip: In XHTML, all elements must be closed. Adding a slash inside the start tag, like <br />, is the proper way of closing empty elements in XHTML (and XML). HTML Tip: Use Lowercase Tags HTML tags are not case sensitive: <P> means the same as <p>. Many web sites use uppercase HTML tags. W3Schools use lowercase tags because the World Wide Web Consortium (W3C) recommends lowercase in HTML 4, and demands lowercase tags in XHTML. HTML Attributes y HTML elements can have attributes y Attributes provide additional information about an element y Attributes are always specified in the start tag

Attributes come in name/value pairs like: name="value"

Attribute Example HTML links are defined with the <a> tag. The link address is specified in the href attribute: Example <a href="http://www.w3schools.com">This is a link</a> Try it yourself

Always Quote Attribute Values Attribute values should always be enclosed in quotes. Double style quotes are the most common, but single style quotes are also allowed. Tip: In some rare situations, when the attribute value itself contains quotes, it is necessary to use single quotes: name='John "ShotGun" Nelson' HTML Tip: Use Lowercase Attributes Attribute names and attribute values are case-insensitive. However, the World Wide Web Consortium (W3C) recommends lowercase attributes/attribute values in their HTML 4 recommendation. Newer versions of (X)HTML will demand lowercase attributes. HTML Attributes Reference A complete list of legal attributes for each HTML element is listed in our: Complete HTML Reference Below is a list of some attributes that are standard for most HTML elements: Attribute Value Description class classname Specifies a classname for an element id id Specifies a unique id for an element style style_definition Specifies an inline style for an element Specifies extra information about an element (displayed title tooltip_text as a tool tip) HTML Headings Headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least important heading. Example <h1>This is a heading</h1> <h2>This is a heading</h2> <h3>This is a heading</h3> Try it yourself Note: Browsers automatically add some empty space (a margin) before and after each heading. Headings Are Important Use HTML headings for headings only. Don't use headings to make text BIG or bold.

Search engines use your headings to index the structure and content of your web pages. Since users may skim your pages by its headings, it is important to use headings to show the document structure. H1 headings should be used as main headings, followed by H2 headings, then the less important H3 headings, and so on. HTML Lines The <hr /> tag creates a horizontal line in an HTML page. The hr element can be used to separate content: Example <p>This is a paragraph</p> <hr /> <p>This is a paragraph</p> <hr /> <p>This is a paragraph</p> Try it yourself

HTML Comments Comments can be inserted into the HTML code to make it more readable and understandable. Comments are ignored by the browser and are not displayed. Comments are written like this: Example <!-- This is a comment --> Try it yourself Note: There is an exclamation point after the opening bracket, but not before the closing bracket. HTML Tip - How to View HTML Source Have you ever seen a Web page and wondered "Hey! How did they do that?" To find out, right-click in the page and select "View Source" (IE) or "View Page Source" (Firefox), or similar for other browsers. This will open a window containing the HTML code of the page. HTML Tag Reference W3Schools' tag reference contains additional information about these tags and their attributes. You will learn more about HTML tags and attributes in the next chapters of this tutorial. Tag Description <html> Defines an HTML document <body> Defines the document's body <h1> to <h6> Defines HTML headings <hr /> Defines a horizontal line <!--> Defines a comment

HTML Paragraphs
Paragraphs are defined with the <p> tag.

Example
<p>This is a paragraph</p> <p>This is another paragraph</p> Try it yourself

Note: Browsers automatically add an empty line before and after a paragraph.

Don't Forget the End Tag


Most browsers will display HTML correctly even if you forget the end tag:

Example
<p>This is a paragraph <p>This is another paragraph Try it yourself

The example above will work in most browsers, but don't rely on it. Forgetting the end tag can produce unexpected results or errors. Note: Future version of HTML will not allow you to skip end tags.

HTML Line Breaks


Use the <br /> tag if you want a line break (a new line) without starting a new paragraph:

Example
<p>This is<br />a para<br />graph with line breaks</p> Try it yourself

The <br /> element is an empty HTML element. It has no end tag.

<br> or <br />


In XHTML, XML, elements with no end tag (closing tag) are not allowed. Even if <br> works in all browsers, writing <br /> instead works better in XHTML and XML applications.

HTML Output - Useful Tips


You cannot be sure how HTML will be displayed. Large or small screens, and resized windows will create different results. With HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code. The browser will remove extra spaces and extra lines when the page is displayed. Any number of lines count as one line, and any number of spaces count as one space. Try it yourself (The example demonstrates some HTML formatting problems)

Examples from this page


HTML paragraphs How HTML paragraphs are displayed in a browser. Line breaks The use of line breaks in an HTML document. Poem problems Some problems with HTML formatting.

More Examples
More paragraphs The default behaviors of paragraphs.

HTML Tag Reference


W3Schools' tag reference contains additional information about HTML elements and their attributes.
Tag <p> Description Defines a paragraph

<br /> Inserts a single line break

HTML Text Formatting


This text is bold

This text is big


This text is italic
This is computer output

This is subscript and superscript


Try it yourself

HTML Formatting Tags


HTML uses tags like <b> and <i> for formatting output, like bold or italic text. These HTML tags are called formatting tags (look at the bottom of this page for a complete reference).
Often <strong> renders as <b>, and <em> renders as <i>. However, there is a difference in the meaning of these tags:

<b> or <i> defines bold or italic text only. <strong> or <em> means that you want the text to be rendered in a way that the user understands as "important". Today, all major browsers render strong as bold and em as italics. However, if a browser one day wants to make a text highlighted with the strong feature, it might be cursive for example and not bold!

Try it Yourself - Examples


Text formatting How to format text in an HTML document. Preformatted text How to control the line breaks and spaces with the pre tag. "Computer output" tags How different "computer output" tags will be displayed. Address How to define contact information for the author/owner of an HTML document. Abbreviations and acronyms How to handle abbreviations and acronyms. Text direction How to change the text direction. Quotations How to handle long and short quotations. Deleted and inserted text How to mark deleted and inserted text.

HTML Text Formatting Tags


Tag Description <b> Defines bold text <big> Defines big text <em> Defines emphasized text <i> Defines italic text <small> Defines small text <strong> Defines strong text <sub> Defines subscripted text <sup> Defines superscripted text <ins> <del> Defines inserted text Defines deleted text

HTML "Computer Output" Tags


Tag Description

<code> Defines computer code text <kbd> Defines keyboard text <samp> Defines sample computer code <tt> Defines teletype text <var> Defines a variable <pre> Defines preformatted text

HTML Citations, Quotations, and Definition Tags


Tag <abbr> <acronym> <address> <bdo> <blockquote> <q> <cite> <dfn> Description Defines an abbreviation Defines an acronym Defines contact information for the author/owner of a document Defines the text direction Defines a long quotation Defines a short quotation Defines a citation Defines a definition term

http://www.ex-designz.net/infotechquiz.asp
1) What does XML stand for?

a) eXtensible Markup Language - correct answer d) eXtra Modern Link


2) Which of the following is (are) a valid XML name(s)?

b) X-Markup Language

c) Example Markup Language

a) 1-2-4_6

b) :3:-3:5:-7 - correct answer

c) ;123456

d) 3:4;-7

3) DOM 2 doesn't provide mechanism for interrogating and modifying the namespace for a document.

a) True

b) False - correct answer

4) The DOM specification describes how strings are to be manipulated by the DOM by defining the datatype _______. It is encoded using _______ encoding scheme.

a) DOMString, UTF-8 String, Unicode

b) DOMString, Unicode - correct answer

c) UNICODEString, Unicode

d)

5) An MNC receives at its headquarter from its subsidiaries, XML documents containing various reports of that subsidiary. These reports need to be displayed to the person responsible at the headquarter for that subsidiary in a user-friendly manner (allowing searches through the document) and the person is allowed to make any changes/comments that he/she desires. Once the user is done with all the changes/comments the information needs to be fed into the central database. Which of the following is MOST appropriate for processing these XML documents?

a) DOM - correct answer

b) SAX

c) CSS

d) XSL

6) Which of the following is an XML-based service IDL that defines the service interface and its implementation characteristics.

a) UDDI

b) WSDL - correct answer

c) SOAP

d) Path

7) Which statement about XML is true?

a) Elements may nest but not overlap - correct answer have multiple attributes with the same name
8) What is the correct declaration syntax for the version of XML document?

b) Quoting attributes is optional

c) Elements may

a) <?xml version="1.0" />


9) How is an empty element field defined?

b) <?xml version="1.0"?> - correct answer

c) <xml version="1.0" />

a) <name></name

b) <name />

c) <name/>

d) All of the above - correct answer

10) XML document must be valid?

a) True - correct answer

b) False

11) Every XML document must be well formed

a) True - correct answer

b) False

12) Every XML document must have an associated DTD or schema

a) True

b) False - correct answer

13) XML preserves white spaces

a) True - correct answer

b) False

14) For the XML parser to ignore a certain section of your XML document, which syntax is correct?

a) <![CDATA[ Text to be ignored ]]> - correct answer b) <xml:CDATA[ Text to be ignored ]> <PCDATA> Text to be ignored </PCDATA> d) <CDATA> Text to be ignored </CDATA>
15) What is a correct way of referring to a stylesheet called "style.xsl"?

c)

a) <stylesheet type="text/xsl" href="style.xsl" /> b) <link type="text/xsl" href="style.xsl" /> stylesheet type="text/xsl" href="style.xsl" ?> - correct answer

c) <?xml-

16) Which is not a correct name for an XML element?

a) <first name> - correct answer


17) What does DTD stand for?

b) <age>

c) <NAME> b) Dynamic Type Definition c) Direct Type Definition c) The fact that its

a) Document Type Definition - correct answer


18) What makes XML more powerful than HTML?

b) Its ability to adapt to new uses - correct answer a) Not as much coding is needed supported by all of the major software vendors
19) Unlike most other markup languages, including HTML, XML allows you to do what?

a) Create new tags - correct answer with closing tags optional a) 1994 b) 1995

b) Exchange information over the Web

c) Put your tags in any order,

20) In what year did the World Wide Web Consortium release its draft of XML?

c) 1996 - correct answer

d) 1997

21) What organization presented the first version of Starndardized Generalized Markup Language (SGML) in 1980?

a) Internet Engineering Task Force (IETF) correct answer d) OASIS

b) IEEE

c) American National Standards Institute (ANSI) -

22) You can use XSL Transformation (XSLT) to convert database files described by XML to Structured Query Language (SQL) statements, which creates the tables, indexes and views that the XML data describes.

a) True - correct answer

b) False

XHTML Quiz Result


Scrolldown to review your answer and view your score. Passing grade is 70% = C.

1) What does the term XHTML stand for?

a) X-function of HTML b) Ex Hyper Text Markup Language c) Extensible Hypertext Markup Language - correct answer d) Extensible Hype Manditory Learning

2) What is the DTD?

a) A method tied to an object b) A Detrimental Transitional Development c) The Document Type Declaration - correct answer d) The Difinitive Type Definition

3) Which of the statments are true?

a) XHTML and SGML are both subsets of HTML b) XHTML is a subset of SGML - correct answer c) SGML is a subset of XHTML d) SGML is a simplified version of XHTML

4) Which of the statements are false?

a) XHTML documents are not parsed in the browser before display - correct answer b) XHTML is parsed with a DTD c) The Doctype Declaration indicates to the parser which DTD to use d) XHTML syntax needs to be well formed

5) What statement makes the most sense?

a) XHTML is more advanced than HTML - correct answer b) HTML and XHTML are both the same language c) XML and XHTML are written in the same mannor d) HTML will load faster than XHTML in most cases

6) Which statment makes the least sense?

a) HTML will still be the choice of most professional web developers for many years to come - correct answer b) XHTML will replace most of the HTML pages on the internet c) XHTML is a replacement for HTML d) HTML causes a lot of problems on the internet in it current form

7) XHTML will work best if it is Validated ?

a) It is not always best to validate XHTML b) The statment is false c) This is a true statement - correct answer d) XHTML is not validated

8) For XHTML to function properly?

a) The code should be written in uppercase letters b) The XHTML document should be valid and well formed - correct answer c) All end tags should be left open d) You require a special type of browser

9) In writing XHTML ?

a) The opening and closing tags should start and end with XHTML b) The end tags of the img tag should be left open c) Uppercase letters should not be used between the opening and closing tags - correct answer

d) The Doctype Declaration should have a closing tag simular to the img tag or the meta tag

10) In writing XHTML?

a) Attributes do not have quotes for their values b) All attributes values require quotes - correct answer c) All values require attributes

11) What is the correct XHTML for a paragraph?

a) <P></p> b) <P></P> c) <p></p> - correct answer d) </p><p>

12) What is a correct XHTML tag for a line break?

a) <br> b) <break/> c) <br > d) <br /> - correct answer

13) What is the correct XHTML for an attribute and its value?

a) WIDTH="80" b) width="80" - correct answer c) width=80 d) Width=80

14) All elements in XHTML must be closed

a) True - correct answer b) False

15) The DOCTYPE declaration has no closing tag

a) True - correct answer b) False

16) Which elements are mandatory in an XHTML document?

a) doctype, html and body b) doctype, html, head, body, and title - correct answer c) doctype, html, head, and body

17) What XHTML code is "well-formed"?

a) <p>A <b><i>short</b></i> paragraph</p> b) <p>A <b><i>short</i></b> paragraph</p> - correct answer c) <p>A <b><i>short</i></b> paragraph</P>

18) Which of the following is the right use of the lang attribute?

a) <div lang="en" xml:lang="en">Hello World!</div> - correct answer b) <div xml:language="en">Hello World!</div> c) <div language="en">Hello World!</div>

19) What are the different DTDs in XHTML?

a) Strict, Transitional, Loose, Frameset b) Strict, Transitional, Frameset - correct answer c) Strict, Transitional, Loose

20) What is the most common XHTML DTD?

a) Loose b) Normal c) Transitional d) Frameset

21) Do all XHTML documents require a doctype?

a) Yes - correct answer b) No

22) All XHTML tags and attributes must be in lower case

a) True - correct answer b) False Web Design Quiz Result


Scrolldown to review your answer and view your score. Passing grade is 70% = C.

1) Which of the following is true of XHTML?

a) It is a new hybrid technology that is different from both XML and HTML. b) You can't use it to create Web pages. c) It is a reformulation of HTML in XML. - correct answer d) It has totally replaced HTML as the tool for building Web pages.

2) A friend has designed a graphic containing several words. Why should he/she choose to save this image file as a GIF rather than a JPG?

a) JPG's render true color poorly at some screen resolutions, whereas GIFs do not. b) The GIF file format is tailored to the Internet, whereas the JPG was developed for storage only. c) The file compression features of the JPG format may render the fonts unreadable. - correct answer d) JPG's are about three times the size of GIFs and therefore take more time to render in a browser.

3) Which of the following correctly describe the nature of ActiveX (Choose all that apply)?

a) It is a programming language b) It has full access to the Windows operating system c) It is a set of rules for how applications should share information d) It is riskier than Java applets in terms of security e) Either BCD - correct answer

4) Which of the following are CSS2 features not found in CSS1?

a) Color and background properties b) Bi-directional text c) Positioning of elements on the page d) Styles for tables e) Either ABC - correct answer

5) You noticed that you cannot see the applet while the page is loading. What's the reason for it?

a) incorrect file permission settings b) applets must register all its parameters with the JVM before it can function - correct answer c) applets are protected d) applets are not registered

6) Which of the following correctly describe Dreamweaver's form building capability?

a) It designs XML forms. b) It supports forms generated by Access Database.

c) It has no server side form processing features. - correct answer d) It has no client side form processing features.

7) Which of the following correctly describe the features of Flash (choose all that apply)?

a) vector-graphic based animation b) browser independent c) bandwidth friendly d) requires client side plug-ins e) All of the above - correct answer

8) Which of the following correctly describe the features of SSI ?

a) It uses OLE as the database technology b) There is no official standard - correct answer c) It is a substitute to ActiveX control d) It is developed by W3C

9) In DreamWeaver Chad can change the Default Text in the Status Bar of his web page by changing its properties through the what?

a) Objects Palette. b) Properties Palette. c) Layers Inspector. d) Behaviours Inspector. - correct answer

10) Which technique is referred to as inline scripting?

a) The use of SCRIPT tags in line with the HEAD and BODY tags. b) The addition of the INLINE tag within the controlling HTML. c) The embedding of scripting instructions within certain HTML tags. - correct answer d) The physical justification of the script (major routines on the left, and lesser routines indented and on the right).

11) Which of the following is a more efficient alternative to CGI?

a) ISAPI - correct answer b) VB Script c) SGML d) HTML e) XML

12) An applet that runs on the server side is known as a _____

a) CGI b) Server Script c) Server side processor d) Servlet - correct answer e) Java Server Script

13) A CLUT is also known as a _____

a) None of the choices. b) graphic tablet c) VGA table d) palette - correct answer e) color index

14) Which of the following are the attributes that can be used with the APPLET tag ?

a) CODE b) ALIGN c) ALT d) CODEBASE e) All of the above - correct answer

15) Using inline styles on a page with multiple overlapping styles is being referred to as:

a) DHTML b) SGML c) CSS - correct answer d) XHTML

16) You use HTTP-EQUIV together with ____________ to cache a page to the Browser's folder on the hard drive.

a) CACHE b) SET c) SIZE d) PRAGMA - correct answer

17) What view in Microsoft FrontPage would you use if you wanted to view all the pages in your web site in a tree structure?

a) Folders View b) All Files View c) Task View d) Themes View e) Navigation View - correct answer

18) Your company wants to be able to give the customers only, access to the inventory as well as place orders over the internet. What type of Web site would this be considered?

a) Externet b) Internet c) Intranet d) Extranet - correct answer

19) When using the ISINDEX tag, how do you override the default message?

a) you cannot do this b) use the ASK attribute c) use the MESSAGE attribute d) use the PROMPT attribute - correct answer

20) Higher-end (24-bit) monitors are capable of displaying how many colors?

a) 17,000 b) 170,000 c) 17,000,000 - correct answer

21) Lower-end (8-bit) monitors are capable of displaying how many colors?

a) 256 - correct answer b) 25,600 c) 250,600

22) When it comes to designing web pages, it is imperative to use colors that most monitors can safely display. How many colors are cosidered websafe?

a) 256 b) 216 - correct answer c) 256,000 d) 17,000,000

23) WYSIWYG is an acronym for what?

a) What You Saw Is What You Got b) What You See is What You Get - correct answer c) What You Seen is What You Gotten d) What You Sew is What You Get

24) When you are hyperlinking to a page WITHIN your website, it is better to use which linking style?

a) Absolute URL (http://www.site.com/directory/page.htm) b) Relative URL (../directory/page.htm) - correct answer

25) There are times when you want a link to another website to open in a separate window. Which scenario best fits?

a) Have another window open making it easier for the user to surf the linked website b) Keep my website in the original window so the user will come back to it - correct answer c) Be sure that the user has JavaScript enabled in their browser

26) Navigation within a website is important. Which best defines how a navigation system be setup?

a) There is no standard. Navigation is dependent upon the web designer. b) It should be consistent throughout the site as far as appearance and functionality. It should also be compatible with all browsers. - correct answer c) Make it complex so the visitor will try to figure out what to do.

27) During the user testing phase of development, testers should always be take from:

a) The most experienced technical personnel employed by the company. b) The general public. c) Users already familiar with the application. d) Users unfamiliar with the application. - correct answer

28) Which of the following is NOT true of navigation?

a) A good navigation plan should include shortcuts. b) Common navigational schemes include the items: FAQ, Search, About, and Site Map. c) The visitor should not have to click more than 3 times to reach a desired page. d) Icons and logos should be avoided in navigational structures because graphic files increase download times. - correct answer

29) Which statement best describes cookies?

a) Sent by the server to all clients. b) Sent by the server in response to a client request. - correct answer c) Sent by the client and stored on the server after the client user has signed a digital certificate. d) Received by a client immediately after an e-commerce transaction is completed.

30) FTP and SSL are protocols which operate on port numbers:

a) 21 and 443 respectively. - correct answer b) 21 and 444 respectively. c) 23 and 443 respectively. d) 443 and 21 respectively. OSI Model Quiz Result
Scrolldown to review your answer and view your score. Passing grade is 70% = C.

1) Routers operate at which layer of the OSI model?

a) physical b) transport c) network - correct answer d) MAC sublayer of the data link layer

2) Bits are packaged into frames at which layer of the OSI model?

a) data link - correct answer b) transport c) physical d) presentation e) application

3) Which of the following are benefits of using a layered network model?

a) it facilitates troubleshooting b) it breaks the complex process of networking into more manageable chunks c) it allows layers developed by different vendors to interoperate. d) all of the above - correct answer

4) The layers of the OSI model, from the top down, are:

a) application, presentation, session, transport, network, data link, physical - correct answer b) session, presentation, data transport, MAC, network, physical

c) physical, data link, network, transport, session, presentation, application d) application, encryption, network, transport, logical link control, physical

5) Which of the following operate at the presentation layer?

a) FTP and HTTP b) SMTP c) UDP d) midi and jpeg - correct answer e) all of the above

6) Which of the following are transport layer protocols?

a) TCP and UDP - correct answer b) ATM c) CISC d) HTTP and FTP

7) Which of the following are considered to be the upper layer protocols?

a) presentation and session b) application and presentation c) application, presentation, and session - correct answer d) application, presentation, session, and transport e) application

8) Flow control takes place at which layer?

a) physical b) Network c) transport - correct answer d) data link e) application

9) Encryption takes place at which layer?

a) physical b) presentation - correct answer c) application d) session

e) data link

10) The network layer uses physical addresses to route data to destination hosts.

a) True b) False - correct answer

11) Error detection and recovery takes place at which layer?

a) transport - correct answer b) presentation c) data link d) netwrok e) application

12) Which layer establishes, maintains, and terminates communications between applications located on different devices?

a) application b) session - correct answer c) transport d) netwrok e) data link

13) IP is implemented at which OSI model layer?

a) transport b) network - correct answer c) data link d) presentation e) session

14) Which layer handles the formatting of application data so that it will be readable by the destination system?

a) application b) presentation - correct answer c) transport d) netwrok e) data link

15) Packets are found at which layer?

a) data link b) trasnport c) network - correct answer d) presentation e) session

16) Which layer translates between physical (MAC) and logical addresses?

a) network - correct answer b) data link c) transport d) presentation e) application

17) What does OSI stand for?

a) Organization Standards International b) Open Systems Interconnect - correct answer c) Operating Standard Information d) Operating System Interconnection e) Open Systems Interface

18) Repeaters and hubs operate at which layer?

a) network b) physical - correct answer c) transport d) data link e) presentation

19) Bit synchronization is handled at which layer?

a) physical - correct answer b) network c) physical d) data link e) presentation

20) Most logical addresses are preset in network interface cards at the factory

a) True b) False - correct answer

21) Bridges operate at which layer of the OSI model?

a) physical b) data link - correct answer c) network d) transport e) presentation

22) What are the sublayers of the data link layer?

a) MAC and IPX b) hardware and frame c) MAC and LLC - correct answer d) WAN and LAN e) Mac address

23) Which layer translates between physical and logical addresses?

a) the MAC sublayer of the data link layer b) transport c) physical d) network - correct answer e) presentation

24) Which layer is responsible for packet sequencing, acknowledgments, and requests for retransmission?

a) network b) session c) transport - correct answer d) data link e) presentation Network Plus Quiz Result
Scrolldown to review your answer and view your score. Passing grade is 70% = C.

1) Which protocol uses Token Passing in a Bus Topology?

a) 802.1 b) 802.2

c) 802.3 d) 802.4 - correct answer e) 802.5

2) How do you terminate a 10BaseT cable?

a) 50 Ohm Terminator b) Crimp Connector c) Null Connector d) Loop Connection e) No Termination Needed - correct answer

3) What is the default port of a SMTP server?

a) 8 b) 21 c) 80 d) 25 - correct answer e) 110

4) You install a network adapter on IRQ 3, which of the following might it conflict with?

a) COM1 b) COM2 - correct answer c) Keyboard d) Hard Drive Controller e) Display Card

5) What is the directory service called in Netware?

a) Active Directory b) Domain Name System c) NDS - correct answer d) NWLink e) DNS

6) What diagnostic tool helps you find a malfunctioning network interface card?

a) Multimeter b) Protocol Analyzer - correct answer

c) Signal Detector d) Null Network Unit e) Port Sniffer

7) Which type of backup copies files created or changed since the last full backup?

a) Application b) Physical c) Network - correct answer d) Transfer e) Session

8) Which of the following support speeds of 1.5 Mbps?

a) ISDN b) DSL c) USR d) ATM e) T1 - correct answer

9) What utility do you use in Windows 95 to release your IP address from a DCHP server?

a) IPCFG b) WINIPCFG - correct answer c) IPREL d) DCHP e) NETCFG

10) Which cable supports a speed of 100 Mbps?

a) Category 1 b) Category 2 c) Category 3 d) Category 4 e) Category 5 - correct answer

11) What utility can you use to verify a remote computer is accepting connections on the port you are using?

a) FTP b) Telnet - correct answer

c) SNMP d) NETSTAT e) WINIPCFG

12) By default, COM1 uses what IRQ?

a) 1 b) 2 c) 3 d) 4 - correct answer e) 5

13) By default, COM2 uses what IRQ?

a) 1 b) 2 c) 3 - correct answer d) 4 e) 5

14) Where can you set the maximum age of a password in Windows NT 4?

a) User Manager for Domains - correct answer b) Local User Manager c) Control Panel d) Services Manager e) Windows Registry

15) What is the first thing to do when you discover a problem on your network?

a) Call Vendor Tech Support b) Go on lunch break c) Determine the scope of the problem - correct answer d) Isolate the proble e) Set up a sub-network to test the problem

16) Which network device is the best at connecting dissimilar systems?

a) Router b) Gateway - correct answer

c) NIC d) Bridge e) Firewall

17) How many stations can a fiber optic network support?

a) 25,000 b) 10,000 c) 5,000 d) 1,000 - correct answer e) 500

18) Which protocol sends electronic mail?

a) Mail Transfer b) POP3 c) FTP d) SMTP - correct answer e) Outbox

19) What is the most common form of backup today?

a) CD-ROM b) Optical Drives c) Server Hard Drives d) Tape - correct answer

20) Which of the following is required if you change your servers from Windows NT 3.51 to Windows NT 4.0?

a) Patch b) Upgrade - correct answer c) DLL Replacement Files d) Clean Install e) Dual Boot Operating Systems

21) Where do the MAC sublayers fit into the OSI model?

a) Transport b) Network c) Data Link - correct answer

d) Presentation e) Physical

22) In older Network Interface Cards, what is the configuration of the switches?

a) Single Inline pin b) Dual Inline pin - correct answer c) Switch integrated pin d) Dual integrated pin e) Single inline memory module

23) What type of device is a VPN adapter?

a) Integrated b) Virtual - correct answer c) Physical d) Logical e) Virtual Packet Node

24) What is the total bandwidth of an ISDN BR1 line (in Kbps)?

a) 144 - correct answer b) 16 c) 64 d) 128 e) 256

25) Which network model is most secure?

a) Share level b) User Level - correct answer c) Resource level d) Secure Level e) Network Level

26) An IP address consists of 4 bytes.

a) True - correct answer b) False

27) What command changes passwords on a Unix system?

a) pico pass.conf -[OLD PASSWORD] [NEW PASSWORD] b) PASSWD - correct answer c) PASSWORD d) CHPASS e) SETPASS

28) Which file on a workstation resolves names similar to a DNS server?

a) HOSTS - correct answer b) DHCP c) DNSHOSTS d) NAMEHOSTS e) SMHOSTS


ASP Quiz Result
Scrolldown to review your answer and view your score. Passing grade is 70% = C.

1) In ASP, a request object retrieves info from a user by ________.

a) a collection of values sent as cookies in a HTTP header b) a collection of data sent with a submitted form c) from client variables described from within an object d) from the OS module e) A&B - correct answer

2) Which of the following are ASP standard objects?

a) server b) response c) session

d) All of the above - correct answer

3) Abandon is an ASP ________ object method.

a) server b) session - correct answer c) request d) response

4) In ASP, the Response Object is used to send output to the user from the server.

a) True - correct answer b) False

5) MapPath is an ASP ________ object method.

a) session b) request c) server - correct answer d) response

6) ASP is an acronym for what?

a) Active Server Protocol b) ActiveX Server Pages c) Active Setup Pages d) Active Server Pages - correct answer e) Active Setup Protocol

7) ASP makes a website more interactive and dynamic.

a) True - correct answer b) False

8) How do you comment a line in ASP using VBScript?

a) <!-- Comment a line in ASP --> b) < Comment a line in ASP > c) 'Comment a line in ASP - correct answer d) <% Comment a line in ASP %>

9) Which is better in managing your code when writing with ASP or any other scripting code?

a) Break it up into smaller easier-to-manage files that can serve as subroutines and function calls. - correct answer b) Keep it nice and simple in one file and use subroutines and function calls.

10) My ASP page won't work is a common complaint for those new to ASP. Which of these can be the cause?

a) Syntax error such as missing parentheses, comma or quotation mark. b) Comments in your code are not tagged properly as comments. c) Make sure function names have both opening and closing parentheses. d) Check to see that the web page is properly saved with the extension as .asp e) All of the above - correct answer

11) You want to add ASP capability to your company's website. What is the first thing you would check?

a) That all pages are saved in .asp extensions. b) Check that the web server has Microsoft FrontPage extensions installed. c) Make sure the web server is capable of hosting ASP pages. - correct answer d) Check the coding and be sure the ASP code is surrounded with <% and %> e) All of the above

12) You have determined that your company's website is housed on a web server that cannot handle ASP. What would you do?

a) Contact the ISP and have them switch the website to have ASP capability. b) Have your ISP install the Microsoft FrontPage extensions c) Develop a transition plan first that includes a step-by-step plan on every detail prior to contacting the ISP. correct answer

d) All the above

13) Some say that JavaScript is easier to use than ASP and will run regardless of whatever operating system the web server is using (Unix, Linux, Windows 2000, etc). Then others say that ASP has advantages over JavaScript such as what?

a) ASP does not depend upon which browser the viewer is using. b) ASP code does not show up in the source code; thus, the code is protected c) ASP does not download with the page to the viewer. d) ASP can easily interact with a database. e) All of the above - correct answer

14) A feature of ASP is its ability to interact with a database. Which of these databases is the most popular to use with ASP?

a) dBase b) Delimited text files c) Access (97 or 2000) - correct answer d) Excel spreadsheets e) SQL

15) JavaScript is which?

a) Client-side executable code (executes at the browser level) - correct answer b) Server side executable code (runs at the server only)

16) ASP is which?

a) Client-side executable code (executes at the browser level) b) Server side executable code (runs at the server only) - correct answer

17) Client-side scripting code and server-side scripting code can coexist and can be used on the same page.

a) True - correct answer b) False

18) Variable are used to hold both numerical and text values. Which of these IS NOT a valid variable name?

a) X b) X1 c) 1X - correct answer d) x1X

19) Which of these is OKAY to use for a variable name?

a) employee salary b) 2nd_employee c) employee_hire_date - correct answer

d) date-of-birth e) date_of.birth

20) You have a long piece of code tracking employee salaries. In your opinion, which of these variables is the best (shortest yet most descriptive) to use throughout the code to track the salaries of the managers? Keep in mind that you may try to analyze your

a) manager_salaries b) SalariesOfManagers c) Salaries_Of_Managers d) mgmtSalary - correct answer e) Salary1

21) ASP code is....

a) a client-side executable code. b) a server-side executable code. - correct answer c) a world-wide-web executable code. d) all of the above.

22) Which programming language is most commonly used to script ASP code?

a) ASP b) JavaScript c) VBScript - correct answer

d) C++ e) Perl

23) ASP pages can contain embedded HTML code.

a) True - correct answer b) False

24) What happens when a user types in a URL that requests an ASP page?

a) Browser requests ASP code, server returns code, browser executes code into HTML form b) Browser requests ASP code, server executes ASP code and returns HTML document to browser - correct answer c) Browser requests code, server returns code, Windows executes code since ASP is Microsoft code.

25) If the default pages in HTML are index.htm, default.html, etc, what are the default pages in ASP?

a) index.asp b) default.asp c) home.asp d) Both A and B - correct answer e) Both B and C

26) When writing ASP code, what are the correct delimiters to use?

a) <!-- code --> b) < code > c) <% code > d) <% code %> - correct answer

27) It is imperative when writing ASP code is to begin every file with which statement?

a) <% Language=VBScript %> b) <% ASPLanguage = VBScript %> c) <%@ Language=VBScript %> - correct answer

28) In order for you to execute ASP code on your computer, you need to be running web server software such as Personal Web Server.

a) True - correct answer b) False

29) ASP code can be written in any text editor such as Notepad.

a) True - correct answer b) False

30) Thinking Question: ASP code can be written to show the current time. Is it possible to show a live, ticking clock using ASP?

a) Yes, ASP will pull the time from the web server and feed it to the client browser. b) No, once the ASP script has finished executing, it cannot do any more after the page reaches the client browser. - correct answer
ASP ADO Quiz Result
Scrolldown to review your answer and view your score. Passing grade is 70% = C.

1) Database connectivity with ADO has 3 main objects:

a) ADODB.Connection b) ADODB.Recordset c) ADODB.Command d) All of the above - correct answer

2) What is the sequential procedure in working with databases?

a) Open the database, interact with the db, close the database b) Open a connection, interact with the db, close the connection - correct answer

3) ActiveX Data Objects (ADO) comes installed with ASP and allows your pages to easily connect to databases. Which two ADO objects are used to open a connection and interact with the database?

a) Connection object, RecordingSet object b) Connection object, Recordset object - correct answer c) Connect object, RecordingSet object

d) Connect object, Recordset object

4) What is a connection object?

a) Specifies whether to use a DSN or DSN-less connection b) Specifies which type of database is being used c) Specifies the type of driver to use, database format and filename d) First opens the initial connection to a database before giving any database information - correct answer

5) What is a connection string?

a) Specifies whether to use a DSN or DSN-less connection b) Specifies which type of database is being used c) Specifies the type of ODBC driver to use, database format and filename - correct answer d) Opens the initial connection to a database

6) There are two methods of connecting to an Access database. Which are they?

a) DNS, DNS-less b) DSN, DSN-less - correct answer c) ODBC, ADO d) OLEDB, ADO

7) Which connection method requires a connection object?

a) DSN b) DSN-less c) Both - correct answer

8) Which connection method requires a connection string?

a) DSN b) DSN-less c) Both - correct answer

9) What information can a connection string contain about the database you are trying to connect to?

a) Type of database b) Type of driver to use c) Location of database d) username e) All Of The Above - correct answer

10) What must your ASP code have if you are using the DSN method of connecting?

a) Connection object

b) Connection string c) Both - correct answer

11) What must your ASP code have if you are using the DSN-less method of connecting?

a) Connection object b) Connection string c) Both - correct answer

12) Which connection method is this code using?...Dim dbConn Set dbConn = Server.CreateObject("ADOBD.Connection") dbConn.Connectionstring = "DSN=Quiz; uid=login; pwd=password" dbConn.Open

a) DSN b) DSN-less c) Neither - the code is wrong - correct answer

13) Which connection method is this code using?.. Dim dbConn Set dbConn = Server.CreateObject("ADODB.Connection") dbConn.Connectionstring = "DSN=Quiz; uid=login; pwd=password" dbConn.Open

a) DSN - correct answer b) DSN-less c) Neither - the code is wrong

14) Which connection method is this code using?..Dim dbConn Set dbConn = Server.CreateObject("ADODB.Connection") dbConn.ConnectionString =

"Driver={Microsoft Access Driver (*.mdb)};" & _ "DBQ=C:\wwwroot\username\database.mdb" dbConn.open

a) DSN b) DSN-less c) Both A and B d) Neither - the code is wrong - correct answer

15) Which connection method is this code using?..Dim dbConn Set dbConn = Server.CreateObject("ADODB.Connection") dbConn.ConnectionString = "Driver={Microsoft Access Driver (*.mdb)};" & _ "DBQ=C:\wwwroot\username\database.mdd" dbConn.Open

a) DSN b) DSN-less c) Neither - the code is wrong - correct answer

16) While it is important to properly open the connection to the database, it is equally important to close the connection. Leaving a connection open is the same as leaving your house with the door open...Dim dbConn Set dbConn = Server.CreateObject("ADODB.Con

a) True b) False - correct answer

17) It is okay to have connections open to multiple Access databases

a) True - correct answer b) False

18) What is the sequential procedure in working with databases?

a) Connection string, connection object, close connection string, close connection object b) Connection object, connection string, close connection string, close connection object - correct answer c) Connection object, connection string, close connection object, close connection string
ASP Server Side Include Quiz Result
Scrolldown to review your answer and view your score. Passing grade is 70% = C.

1) Server-Side Includes (also known as SSI) allows you to do what?

a) Allows you to include server executed code into any ASP application. b) Allows you to use one file in several different web pages. c) Allows you to use a piece of code more than once. d) All of the above - correct answer

2) The include files can be written in which scripting language?

a) HTML b) JavaScript c) VBScript d) Perl e) All of the above - correct answer

3) Changing an include file will affect all the pages that link to it such as a navigation bar. Suppose you want certain pages to display a certain navigation

bar not available on other pages. Which is the BEST method to do this?

a) Write a separate include file for those unique pages. b) Forget the include file. It is easier to just put the unique menu in using HTML code. c) Have the include file test for the type of page and then print out the correct menu. - correct answer

4) An include file can be saved with a .asp extension.

a) True - correct answer b) False

5) Which of these page extensions WILL NOT recognize and execute an include file?

a) .shtml b) .shtm c) .stm d) .html - correct answer e) .asp

6) Which is the correct format of an include statement?

a) <% '#include virtual="banner.asp" %> b) <!-- #include virtual="banner.asp" --> - correct answer c) <-- #include virtual="banner.asp" -->

d) <-- #include virtual="banner.asp" -->

7) An include file that contains ASP code can be saved with a .inc extension.

a) True - correct answer b) False

8) Where would you place an include statement that has functions, subroutines and other configuration type of code?

a) At the beginning to keep the code neat and tidy. - correct answer b) Anywhere in the code where it is actually needed.

9) Lets say that your include file is a piece of code that will print out your navigation menu. Where would you place the include statement?

a) At the beginning to keep the code neat and tidy b) Anywhere in the code where it is actually needed. - correct answer

10) You are working on a file called index.asp and have put in the include statement below. Where is the include file actually located on the web server? ..<!-- #include file="config\functions.asp" -->

a) The include file is in the same directory as the file that is requesting it. - correct answer b) The include file is in another directory away from the file that is requesting it.

11) When viewing the source code of a web page, the JavaScript code can be seen and copied; thus, the code is not secure. Since JavaScript and include statements are both written with the same HTML delimiters: <!-- and -->, this also means that the include st

a) True b) False - correct answer


ASP.NET Quiz Result
Scrolldown to review your answer and view your score. Passing grade is 70% = C.

1) Which of the following languages can be used to write server side scripting in ASP.NET?

a) C-sharp b) VB c) C++ d) a and b - correct answer

2) When an .aspx page is requested from the web server, the out put will be rendered to browser in following format.

a) HTML - correct answer b) XML c) WML d) JSP

3) The Asp.net server control, which provides an alternative way of displaying text on web page, is

a) < asp:label > - correct answer b) < asp:listitem > c) < asp:button >

4) The first event to be triggered in an aspx page is.

a) Page_Load() b) Page_Init() - correct answer c) Page_click()

5) Postback occurs in which of the following forms.

a) Winforms b) HTMLForms c) Webforms - correct answer

6) What namespace does the Web page belong in the .NET Framework class hierarchy?

a) System.web.UI.Page - correct answer b) System.Windows.Page c) System.Web.page

7) Which method do you invoke on the Data Adapter control to load your generated dataset?

a) Fill( ) - correct answer b) ExecuteQuery( )

c) Read( )

8) How do you register a user control?

a) Add Tag prefix, Tag name b) Add Source, Tag prefix c) Add Src, Tagprefix, Tagname - correct answer

9) Which of the following is true?

a) User controls are displayed correctly in the Visual Studio .NET Designer b) Custom controls are displayed correctly in VS.Net Designer - correct answer c) User and Custom controls are displayed correctly in the Visual Studio .NET Designer.

10) To add a custom control to a Web form we have to register with.

a) TagPrefix b) Name space of the dll that is referenced c) Assemblyname d) All of the above - correct answer

11) Custom Controls are derived from which of the classes

a) System.Web.UI.Webcontrol b) System.Web.UI.Customcontrol c) System.Web.UI.Customcontrols.Webcontrol - correct answer

12) How ASP.Net Different from classic ASP?

a) Scripting is separated from the HTML, Code is interpreted seperately b) Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server correct answer c) Code is separated from the HTML and interpreted Code is interpreted separately

13) What's the difference between Response.Write() andResponse.Output.Write()?

a) Response.Output.Write() allows you to flush output b) Response.Output.Write() allows you to buffer output c) Response.Output.Write() allows you to write formatted output - correct answer d) Response.Output.Write() allows you to stream output

14) Why is Global.asax is used?

a) Implement application and session level events - correct answer b) Declare Global variables c) No use

15) There can be more than 1 machine.config file in a system

a) True - correct answer b) False

16) What is the extension of a web user control file?

a) .Asmx b) .Ascx - correct answer c) .Aspx

17) Which of the following is true?

a) IsPostBack is a method of System.UI.Web.Page class b) IsPostBack is a method of System.Web.UI.Page class c) IsPostBack is a readonly property of System.Web.UI.Page class - correct answer

18) The number of forms that can be added to a aspx page is.

a) 1 - correct answer b) 2 c) 3

d) More than 3

19) How do you manage states in asp.net application

a) Session Objects b) Application Objects c) Viewstate d) All of the above - correct answer

20) Which property of the session object is used to set the local identifier?

a) SessionId b) LCID - correct answer c) Item d) Key

21) Select the caching type supported by ASP.Net

a) Output Caching b) DataCaching c) a and b - correct answer d) none of the above

22) Where is the default Session data is stored in ASP.Net?

a) InProcess - correct answer b) StateServer c) Session Object d) al of the above

23) Select the type Processing model that asp.net simulate

a) Event-driven - correct answer b) Static c) Linear d) Topdown

24) Does the EnableViewState allows the page to save the users input on a form?

a) Yes - correct answer b) No

25) Which DLL translate XML to SQL in IIS?

a) SQLISAPI.dll - correct answer b) SQLXML.dll

c) LISXML.dll d) SQLIIS.dll

26) What is the maximum number of cookies that can be allowed to a web site?

a) 1 b) 10 c) 20 - correct answer d) More than 30

27) Select the control which does not have any visible interface.

a) Datalist b) DropdownList c) Repeater - correct answer d) Datagrid

28) How do you explicitly kill a user session?

a) Session.Close( ) b) Session.Discard( ) c) Session.Abandon - correct answer d) Session.End

e) Session.Exit

29) Which of the following is not a member of ADODBCommand object?

a) ExecuteReader b) ExecuteScalar c) ExecuteStream d) Open - correct answer e) CommandText

30) Which one of the following namespaces contains the definition for IdbConnection?

a) System.Data.Interfaces b) System.Data.Common c) System.Data - correct answer d) System.Data.Connection


CSS Quiz Result
Scrolldown to review your answer and view your score. Passing grade is 70% = C.

1) What does CSS stand for?

a) Creative Style Sheets b) Computer Style Sheets c) Cascading Style Sheets - correct answer d) Cascade Style Sheets

e) Colorful Style Sheets

2) Where in an HTML document is the correct place to refer to an external style sheet?

a) In the <body> section b) At the end of the document c) At the top of the document d) In the <head> section - correct answer e) Between head and body

3) Which HTML tag is used to define an internal style sheet?

a) css b) text/style c) style - correct answer d) script

4) Which HTML attribute is used to define inline styles?

a) font b) styles c) css d) text

e) style - correct answer

5) Which is the correct CSS syntax?

a) body {color: black} - correct answer b) body:color=black c) {body:color=black(body} d) {body;color:black}

6) How do you insert a comment in a CSS file?

a) /* this is a comment */ - correct answer b) ' this is a comment c) // this is a comment // d) // this is a comment

7) Which property is used to change the background color?

a) bgcolor: b) background-color: - correct answer c) color:

8) How do you add a background color for all "<h1>" elements?

a) all.h1 {background-color:#FFFFFF} b) h1.all {background-color:#FFFFFF} c) h1 {background-color:#FFFFFF} - correct answer

9) How do you change the text color of an element?

a) text-color: b) color: - correct answer c) text-color= d) font-color:

10) Which CSS property controls the text size?

a) font-style b) text-style c) font-size - correct answer d) text-size

11) What is the correct CSS syntax for making all the <p> elements bold?

a) p {text-size:bold} b) p {font-weight:bold} - correct answer

c) style:bold d) p{font:bold}

12) How do you display hyperlinks without an underline?

a) a {decoration:no underline} b) a {text-decoration:no underline} c) a {underline:none} d) a {text-decoration:none} - correct answer

13) How do you make each word in a text start with a capital letter?

a) text-transform:uppercase b) text-transform:capitalize - correct answer c) You can't do that with CSS

14) How do you change the font of an element?

a) fon-face: b) font-family: - correct answer c) f: d) font-style:

15) How do you make the text bold?

a) font:b b) style:bold c) font-weight:bold - correct answer

16) How do you display a border like this: The top border = 10 pixels, The bottom border = 5 pixels, The left border = 20 pixels, The right border = 1pixel?

a) border-width:10px 20px 5px 1px b) border-width:10px 1px 5px 20px - correct answer c) border-width:10px 5px 20px 1px d) border-width:5px 20px 10px 1px

17) How do you change the left margin of an element?

a) padding: b) indent: c) margin: d) text-indent: e) margin-left: - correct answer

18) To define the space between the element's border and content, you use the padding property, but are you allowed to use negative values?

a) Yes b) No - correct answer

19) How do you make a list that lists its items with squares?

a) type: square b) list-style-type: square - correct answer c) list-type: square d) style-list: square

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

a) <link rel="stylesheet" type="text/css" href="mainstyle.css"> - correct answer b) <style src="mainstyle.css"> c) <stylesheet>mainstyle.css</stylesheet> d) <link url="stylesheet" type="text/css" href="mainstyle.css">

21) Which HTML tag is used to define an internal style sheet?

a) <script> b) <css> c) <stylesheet> d) <style> - correct answer

22) Which HTML attribute is used to define inline styles?

a) styles b) class c) font d) style - correct answer

23) What is the correct CSS syntax for making all the <p> elements bold?

a) p {font-weight:bold} - correct answer b) p {text-size:bold} c) <p style="text-size:bold"> d) <p style="font-size:bold">

24) How do you make each word in a text start with a capital letter?

a) text-transform:capitalize b) ext-transform:uppercase - correct answer c) You can't do that with CSS

25) How do you change the left margin of an element?

a) left-margin: b) margin: c) margin-left: - correct answer d) text-indent:

26) What are the three methods for using style sheets with a web page

a) Dreamweaver, GoLive or FrontPage b) Inline, embedded or document level and external - correct answer c) Handcoded, Generated or WYSIWYG
HTML Quiz Result
Scrolldown to review your answer and view your score. Passing grade is 70% = C.

1) Intrepret this statement: <strong>Michelle</strong>

a) It makes Michelle strong b) It highlights Michelle as being strong c) It will print out Michelle in bold font - correct answer

2) Tables can be nested (table inside of another table).

a) True - correct answer b) False

3) Which is correct?

a) <b>Click Here<b> b) <strong>Click Here<strong> c) <b>Click Here</b> - correct answer d) </strong>Click Here</strong>

4) Which of the following is a two sided tag?

a) DT b) LI c) DD d) DL - correct answer

5) The Browser applies the feature of a tag until it encounters_____tag.

a) Quit b) Closing - correct answer c) Exit d) Anti e) Deactivate

6) _______are the HTML codes that control the apearance of the document contents

a) Tags - correct answer b) Codas c) Slashes d) Properties e) Code

7) What are the genral syntax for inline image?

a) src=img b) src=image c) img=file d) img src=file - correct answer e) image src=file

8) An HTML_____takes text in one format and changes it to HTML code.

a) Browser b) Editor c) Converter - correct answer d) Processor e) Parser

9) To create a link to an anchor, you use the______property in A tag.

a) Name b) Tag c) Link d) Href - correct answer

10) HTML Tags are case sensitive.

a) True b) False - correct answer

11) Relative path make your hypertext links______.

a) Portable - correct answer b) Discrete c) Uniform

12) A_____structure starts with a general topic that includes link to more specific topics.

a) Hierarchical - correct answer b) Linear c) Mixed

13) Which of the following path is supported by HTML?

a) Ralative b) Defererenced c) Absolute and Relative - correct answer

14) You cannot designate an inline image as a hypertext link.

a) True b) False - correct answer

15) Because each computer differs in terms of what fonts it can display, each individual browser determines how text is to be displayed.

a) True - correct answer b) False

16) You do not have to connect to the internet to verify changes to a Web page on your computer.

a) True - correct answer b) False

17) You can combine structures e.g, linear and hierarchical.

a) True - correct answer b) False

18) What is HTML stands for?

a) Hypertext Mailing List b) Hypertext Mark Language c) Hypertext Markup Language - correct answer

19) What is the tag for an inline frmae?

a) Iframe - correct answer b) Inframe c) frame d) inlineframe

20) Within the MAP tag, you use the AREA tag to specify the areas of the image that will act as a hotspot.

a) True - correct answer b) False

21) Can you create an e-mail form with auto responder using form action method=mailto:youdomainname.com?

a) Yes b) No - correct answer

22) What is the most widely use e-mail form script?

a) ASP b) PHP - correct answer c) Perl CGI d) JSP

23) There are_____color names recognized by all version of HTML.

a) 6 b) 8 c) 256 d) 16 - correct answer

24) Software programs, like your Web browser, use a mathemathical approach to define color.

a) True - correct answer b) False

25) If you want to increase the font size by 2 relative to the sorounding text, you enter +2 in the tag.

a) True - correct answer b) False

26) What operator makes converts 00110011 into 11001100?

a) ~ - correct answer b) ! c) & d) |

27) The default statement of a switch is always executed.

a) True b) False - correct answer

28) H1 is the smallest header tag.

a) True b) False - correct answer

29) The page title is inside the____tag.

a) Body b) Head - correct answer c) Division d) Table

30) _____refers to the way the GIF file is saved by the graphics software.

a) Dithering b) Interlacing - correct answer c) Balancing


JavaScript 2 Quiz Result
Scrolldown to review your answer and view your score. Passing grade is 70% = C.

1) Inside which HTML element do we put the JavaScript?

a) <scripting> b) <javascript> c) <script> - correct answer d) <js>

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

a) response.write("Hello World") b) document.write("Hello World") - correct answer c) ("Hello World")

d) echo("Hello World")

3) How do you call a function named "myFunction"?

a) call function myFunction b) myFunction() - correct answer c) call myFunction()

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

a) if i==5 then b) if i=5 then c) if (i==5) - correct answer d) if i=5

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

a) if (i <> 5) b) if (i != 5) - correct answer c) if =! 5 then d) if <> 5

6) How many different kind of loops are there in JavaScript?

a) Two. The "for" loop and the "while" loop - correct answer b) Four. The "for" loop, the "while" loop, the "do...while" loop, and the "loop...until" loop c) One. The "for" loop

7) How does a "for" loop start?

a) for (i = 0; i <= 5) b) for (i = 0; i <= 5; i++) - correct answer c) for i = 1 to 5 d) for (i <= 5; i++)

8) What is the correct way to write a JavaScript array?

a) var txt = new Array(1:"tim",2:"shaq",3:"kobe") b) var txt = new Array="tim","shaq","kobe" c) var txt = new Array("tim","shaq","kobe") - correct answer

9) How do you round the number 8.25, to the nearest whole number?

a) Math.rnd(8.25) b) Math.round(8.25) - correct answer c) round(8.25)

d) rnd(8.25)

10) How do you find the largest number of 6 and 8?

a) Math.max(6,8) - correct answer b) top(6,8) c) ceil(6,8) d) Math.ceil(6,8)

11) What is the correct JavaScript syntax for opening a new window called "window5" ?

a) new("http://www.ex-designz.net","window5") b) window.open("http://www.ex-designz.net","window5") - correct answer c) open.newwindow("http://www.ex-designz.net","window5") d) new.window("http://www.ex-designz.net","window5")

12) How do you put a message in the browser's status bar?

a) window.status = "put your message here" - correct answer b) statusbar = "put your message here" c) status("put your message here") d) window.status("put your message here")

13) How do you find the client's browser name?

a) browser.name b) navigator.appName - correct answer c) client.navName

14) You define an array using

a) var myarray = new Array(); - correct answer b) var myarray = array new; c) var new Array() = myarray; d) var new array = myarray;

15) Onclick is equivalent to which two events in sequence

a) onmouseover and onmousedown b) onmousedown and onmouseout c) onmousedown and onmouseup - correct answer d) onmouseup and onmouseout

16) Whicj best describe void?

a) A method

b) A function c) An operator - correct answer d) A statement

17) Which property would you use to redirect visitor to another page?

a) window.location.href - correct answer b) document.href c) java.redirect.url d) link.redirect.href

18) Which of the following JavaScript statements use arrays?

a) setTimeout("a["+i+"]",1000) - correct answer b) k = a & i c) k = a(i)


Javascript Fundamental Quiz Result
Scrolldown to review your answer and view your score. Passing grade is 70% = C.

1) You are a junior web designer. Your company assigns you to work on a JavaScript project. Which of the following are the advantages of using JavaScript for form validation?

a) Conservation of client CPU resources b) Increased validity of form submission c) Conservation of bandwidth d) Increase end-user satisfaction

e) Either BCD - correct answer

2) Your company assigns you to work on a JavaScript project. With the DATE object, which of the following allows you to call a function based on an elapsed time?

a) setElapsedTime() b) Timeout() c) setTimeout() d) setTime() - correct answer

3) You are working on a JavaScript project. What is used to restart the inner most loop?

a) Abort b) Breakloop c) Stop d) Continue label - correct answer

4) You work on a JavaScript project. Which of the following correctly describe the relationships of JavaScript and "objects"?

a) JavaScript is Object-oriented b) JavaScript is Object-based - correct answer c) JavaScript is Object-driven d) JavaScript has no relationship with objects

5) You work on a JavaScript project. How do you prompt users with messages and at the same time requesting user inputs?

a) Alert() b) Display() c) Prompt() - correct answer d) Confirm()

6) Which of the following is the correct syntax of FOR?

a) for ( increment; initialize; test) b) for ( initialize; test), increment c) for ( initialize; test; increment) - correct answer d) for ( test; initalize; increment)

7) In your JavaScript code, how do you find out which character occurs at the 5th position in a string "How are you"?

a) Substring() b) String() c) Stringlength() d) CharAt() - correct answer

8) Which of the following do you use for a multi-way branch?

a) If b) Ifthen c) Ifelse d) switch - correct answer e) for

9) You want to design a form validation mechanism. Using string methods, which of the following are the steps involved ?

a) Check for the presence of certain characters b) Check the position of substrings c) Test the length of data d) Check the variable type of the strings e) Either ABC - correct answer

10) Which of the following is the minimum browser version that supports JavaScript

a) Navigator v2.0 - correct answer b) Mozilla V1.5 c) IE 2.0 d) Navigator V1.0

11) Under which of the following conditions will you need to include semi colons on a line of code?

a) When you have multiple statements on multiple lines b) When you have multiple statements on a line - correct answer c) When you have single statement on multiple lines d) When you have single statement on a line

12) Which of the following are the valid JavaScript versions?

a) Version 1.2 b) Version 1.1 c) Version 1.3 d) Version 1.4 e) All of the above - correct answer

13) Which of the following languages will you consider as being similar to JavaScript?

a) C b) C++ c) Pascal d) PHP e) Either A & C - correct answer

14) You plan the coding of your project. When must the object references be ready?

a) at run time - correct answer b) at compile time c) at debug time d) at code time

15) Which of the following correctly describe cookies ?

a) Often referred to as "persistent cookies" b) Often referred to as "persistent HTML" c) Small memory-resident pieces of information sent from a server to the client d) Small memory-resident pieces of information sent from a client to the server e) Either AB&C - correct answer

16) A program written by JavaScript is driven by

a) Events - correct answer b) Classes c) Objects d) DLL e) Components

17) What are JavaScript relations with the underlying operating platform?

a) Platform dependent b) Platform linkage c) Platform independent - correct answer d) Platform binding

18) When you plan for the JavaScript variable names, the first character must be?

a) Underscore b) Comma c) Hyphen d) Letter e) Either A&D - correct answer

19) Which of the following correctly describe JavaScript as a language?

a) It is based on object creation b) It focuses on component building c) It focuses on logic flow d) It emphasis on SCRIPTING - correct answer

20) When authoring web page with Javascript, why should you explicitly include the window object into your codes?

a) this is a good practice - correct answer b) this is REQUIRED c) this ensures browser compatibility d) this ensures OS compatibility

S-ar putea să vă placă și