CTI-110 Lesson 1-7
The four elements that make up the skeleton of an HTML document are "DOCTYPE, html, title, body" "DOCUMENT, html, head, body" "DOCTYPE, html, heading, body" "DOCTYPE, html, head, body"
"DOCTYPE, html, head, body"
How many paragraphs will the following HTML code display? <p>Current HTML standards are defined by the <a href="http://www.w3.org/">World Wide Web Consortium</a></p><p>Be sure to follow the current standards!</p> 1 2 3 4
2
How many assignment operations do you see in this algorithm? itemCost = 20.00 tax = itemCost *0.07 total = itemCost + tax display total
3
How many different variables do you see in this algorithm? oldInventory = 520 unitsSold = 30 newInventory = oldInventory - unitsSold display newInventory
3
How many rows and columns will be displayed by this table? <table border = "1" > <tr><td>France</td><td>Paris</td></tr> <tr><td>England</td><td>London</td></tr> <tr><td>Italy</td><td>Rome</td></tr> </table> 1 row and 3 columns 2 rows and 3 columns 3 rows and 2 columns 3 rows and 6 columns
3 rows and 2 columns
What will be displayed if this algorithm is executed? oldInventory = 520 unitsSold = 30 newInventory = oldInventory - unitsSold display newInventory
490
Which of the following pseudocode statements is NOT a valid assignment statement? yearsToRetire = 23 yearsToRetire = 65 - age 65 - age = yearsToRetire age = 65 - yearsToRetire
65 - age = yearsToRetire
Which of the following correctly creates a form designed to run a program named contact-list.php when the Submit button is pressed?
<form action = "contact-list.php" method = "post"> <input type = "submit" value = "submit"> </form>
Which tag is used to indicate a first level heading? <h0> <h1> <head> <heading1>
<h1>
Which of the following correctly displays an image, or else a text message describing the image if the browser cannot display images (for example a Braille browser)? <img>"college.jpg"</img><alt>"Image of the College"</alt> <img src = "college.jpg" alt="Image of the College"> <img src = "college.jpg">"Image of the College"> <img src = "college.jpg" /><alt "Image of the College">
<img src = "college.jpg" alt="Image of the College">
Which of the following is an example of client/server design? An algorithm A compiler A Web application A standalone program
A Web application
Look at the following form. Which input method is the form using to receive the user's favorite activity? <form action = "calculate.php" method = "post" > <p>What is your favorite activity? <select name = "activity"> <option>Running</option> <option>Swimming</option> <option>Cycling</option> </select> </p><p><input type = "submit" value = "Submit" ></p> </form>
A drop down List
Which type of language provides tags that are used to describe data? Pseudocode A markup language A high-level programming language A machine language
A markup language
What is PHP? A domain name A markup language A standalone Web server A programming language
A programming language
Is the following an example of an absolute or relative address? <a href = "http://www.oursite.com/contact.html">Contact Us</a> Absolute address Relative address
Absolute address
The span elements is: An inline container used to group a discrete section on a page An inline container used to group a few words in a paragraph A block-level container used to group a discrete section on a page A block-level container used to group a few words in a paragraph
An inline container used to group a few words in a paragraph
What type of operation is used to store a value in a variable? Assignment operation Sequential operation Arithmetic operation Repetition (loop) operation
Assignment operation
HTML is a Computer-side technology Client-side technology Component-side technology Computing-side technology
Client-side technology
The head element Contains the content of a web page Contains all of the HTML within a document Contains all of the content displayed at the top of a web page Contains non-visual directives
Contains non-visual directives
An interpreter: Converts a program written in a high level language into executable code, one line at a time. Converts a entire program written in a high level language to produce an executable file. Is a server application that interprets requests from a client application. Is another name for the microprocessor.
Converts a program written in a high level language into executable code, one line at a time.
What is the purpose of <!-- and --> tags in HTML documents? Display LEFT and RIGHT arrows graphically Display comments for someone viewing the page in a Web browser Display comments for someone reading the file that contains the document These are not valid HTML tags
Display comments for someone reading the file that contains the document
True or False? In an assignment operation, the variable that is to RECEIVE a value appears on the RIGHT of the = operator, and the value, or expression that produces a value, appears on the LEFT of the = operator.
False
Which of the following is true about text files? Only files with .txt file extensions can be text files. Files with .txt, .html and .php file extensions are all examples of text files. Files with .jpg and .mp3 file extensions are examples of text files. Text files may contain plain text but may not contain HMTL or PHP code.
Files with .txt, .html and .php file extensions are all examples of text files.
Which statement is true? HTML elements must have an opening and closing tag HTML elements must include an argument or property HTML is case-insensitive Tags without arguments are called non-container tags
HTML is case-insensitive
Which of the following is NOT true about HTML tables? HTML tables are used to display information neatly in rows and columns. HTML tables can be used to display information in either rows or columns but not both. The appearance of tables can be modified in a style sheet. HTML tables can be used to lay out various components on a Web page.
HTML tables can be used to display information in either rows or columns but not both.
HTML stands for Hyper Text Markup Language Hyper Text Mockup Language Hyper Tools Markup Language Hyperlinks and Text Markup Language
Hyper Text Markup Language
Where should you indicate that a Web page is to refer to a file that contains a style sheet file? In the <head> section. In the <body> section. In the <title> section. In the comment section.
In the <head> section.
Consider the following address: C:\Projects\Website\index.html Inside wage1.html Inside the Projects folder At the root of the C: drive In the htdocs folder
Inside the Projects folder
Which of the following will generate a syntax error in a computer program? Instructions that are not efficient Instructions that do produce correct results Instructions that are not understandable None of these will generate syntax errors
Instructions that are not understandable
What is wrong with the following URL? http:\\www.myweb.com\images\home.html Internet addresses must use the forward slash / as a separator. The drive letter is missing. The domain name is the wrong location. You cannot specify folders in URL's.
Internet addresses must use the forward slash / as a separator.
In programming, instructions that are understandable but do not produce correct results are said to contain: Syntax errors Logical errors Sequential statements Selection statements
Logical errors
Which language does the computer actually understand when it executes instructions for a program? PHP Machine language HTML or other markup language Any high-level programming language
Machine language
What does an executable file contain? Program instructions written in source code. Program instructions that have been compiled into machine language. Program instructions that have been interpreted. A microprocessor and a set of instructions.
Program instructions that have been compiled into machine language.
Which of the following is NOT true? Writing and communicating effectively are important skills for programmers. Software designers and their clients need to refer to well-written documents. Programmers do not need to document their code. Programmers often give presentations.
Programmers do not need to document their code.
Is the following an example of an absolute or relative address? <a href = "contact.html">Contact Us</a> Absolute address Relative address
Relative address
Which markup language was HTML initially based on? FTP SGML XML telnet
SGML
Programming instructions written in a programming language are known as: Machine language Source code Markup language Pseudocode
Source code
Which of the following is NOT a basic feature of a style sheet? Style sheets allow a person viewing a Web page to change the styles on the page to suit their personal preferences. Style sheets allow the developer to define customized styles for HTML tags and attributes. Style sheets allow the developer to apply a consistent look and feel to multiple Web pages. Changes in a style sheet are automatically applied to pages when they are next displayed.
Style sheets allow a person viewing a Web page to change the styles on the page to suit their personal preferences.
Which is a good approach in the EARLY stages of application design?
Take time to explore and develop your ideas.
How do you know this is a Windows address? C:\Windows\Temp\winLog.log The folder name is Windows The address contains a Windows log file The address begins with a drive letter The folder names all begin with an upper-case letter
The address begins with a drive letter
How does the Web browser handle white space (multiple spaces, tabs, blank lines, indents) in your HTML document? The browser ignores white space. The browser displays white space the same way that it appears in your document. The browser displays white space if this space is included inside HTML tags. The browser displays white space if this space is included inside <p> </p> tags.
The browser ignores white space.
What is wrong with the following URL? http://images/www.myweb.com/home.html
The domain name is the wrong location.
Which statement is true? The head element is a semantic tag that marks a section header The div element is a semantic tag that marks a division of a section The header element is a semantic tag that marks a section header Hyperlinks and Text Markup Language
The header element is a semantic tag that marks a section header
Consider the following instructions carefully. What is wrong? Drive to the store Pay the cashier Select your purchases Drive home
The instructions are not correctly ordered
Which of the following is true about an algorithm? Algorithms must always include instructions to receive input. The instructions in an algorithm must include a selection structure The instructions in an algorithm must be clear and unambiguous. The instructions in an algorithm must perform a calculation.
The instructions in an algorithm must be clear and unambiguous.
Which does the term rendering refer to? The process of organizing and formatting text to appear a certain way The process of converting programming code to machine language The process of converting requirements into an algorithm The process of using <img> tags to add images to a Web page
The process of organizing and formatting text to appear a certain way
What is wrong with this HTML code segment? <strong>This is a test <strong>
The second <strong> tag should be </strong >
Which of the following is NOT a characteristic of compiled programs? Compiled programs tend to run faster. The end user does not have access to the source code. The source code must be compiled separately for different platforms. The source code is translated and executed one instruction at a time.
The source code is translated and executed one instruction at a time.
True or False? If a program has been compiled, the user does not have access to the source code and cannot change the program.
True
True or false? Domain names are equivalent to IP addresses - either can be used to create valid URL's, for example http://127.0.0.1 is equivalent to http://localhost.
True
Which of the following is an example of an IP address? http://127.0.0.1 C:\Windows\Temp\someFile.txt http://www.abtech.edu http://localhost
True http://127.0.0.1
Which of the following is NOT a basic protocol of the Internet? FTP ping XML telnet
XML
What is the tag to create lists in HTML? a. <ul> - unordered list b. <al> - arranged list c. <li> - listed list d. <il> - illustrated list
a. <ul> - unordered list
HTML comments a. start with <!-- and end with --> b. start with <comment> and end with </comment> c. start with <document> and end with </document> d. start with <#-- and end with -->
a. start with <!-- and end with -->
How can you make a numbered list? a. <dl> b. <ol> c. <list> d. <ul>
b. <ol>
Which of these are all tags a. <thead><body><tr> b. <table><tr><td> c. <table><tr><tt> d. <table><head><tfoot>
b. <table><tr><td>
A CSS rule consists of two parts a. A selection and declaration b. A selector and declaration c. A selection and property d. A selector and property
b. A selector and declaration
Which statement about hexadecimal values is true? a. Refers to the base 10, rather than base 16 numbering system b. Colors are defined in two-digit red, green, and blue (RGB) values c. Use defined names for colors d. All of the above
b. Colors are defined in two-digit red, green, and blue (RGB) values
Which HTML element adds line breaks?
br
Which uses proper syntax for an inline style? (Choose all that apply) a. <p style="color=red, font- family='Arial',">Hello</p> b. <p style="color: red, font-family: ' Arial',">Hello</p> c. <p style="color: red; font-family: 'Arial';">Hello</p> d. <p style="color: red; font-family: Arial;">Hello</p>
c. <p style="color: red; font-family: 'Arial';">Hello</p> d. <p style="color: red; font-family: Arial;">Hello</p>
How can you make a bulleted list? a. <list> b. <dl> c. <ul> d. <ol>
c. <ul>
Which statement best describes internal style sheets? a. Defined with the style attribute in the head of a HTML document b. Defined with the style attribute in an HTML element's opening tag c. Defined with the style element in the head of a HTML document d. Defined with the style element in an HTML element's opening tag
c. Defined with the style element in the head of a HTML document
What are <div> tags used for? a. To replace paragraphs. i.e. p tags b. To logically divide the paragraphs c. To logically divide the document d. To provide space between tables
c. To logically divide the document
Each list item in an ordered or unordered list has which tag? a. list tag b. ls tag c. li tag d. ol tag
c. li tag
This attribute specifies a CSS file's relationship with the HTML document a. id b. href c. rel d. type
c. rel
You've created an external CSS file for your web page, named styles.css. Which is the proper way to reference the file in the head of an HTML page? a. <link href="styles.css" rel="stylesheet"></link> b. <link href="stylesheet" rel="styles.css"></link> c. <link href="stylesheet" rel="styles.css"/> d. <link href="styles.css" rel="stylesheet"/>
d. <link href="styles.css" rel="stylesheet"/>
Which is the correct to create a Roman Numeric list a. <ul type = "I"> b.<il type = "I"> c. <li type = "I"> d. <ol type = "I">
d. <ol type = "I">
Which of the following is correct about Short Hex Code format of CSS colors? a. This is a shorter form of the six-digit notation. b. In this format, each digit is replicated to arrive at an equivalent six-digit value. c. Each hexadecimal code will be preceded by a pound or hash sign '#'. d. All of the above.
d. All of the above.
Which of the following is an attribute of <table> tag? a. src b. link c. bold d. cellpadding
d. cellpadding
Which two properties define typeface and text size? a. font-type and font-size b. font-family and font-weight c. font-type and font-weight d. font-family and font-size
d. font-family and font-size
Which of the following protocols added the World Wide Web to the Internet? http ftp mail telnet
http
Consider the following address: C:\Projects\Website\index.html index.html Website Projects localhost
index.html
Which is the correct syntax to define the style for a <p> tag in a CSS file? { p font-family: Arial, Helvetica, Sans-serif; font- size:10pt; } p { font-family: Arial, Helvetica, Sans-serif; font- size:10pt; } <p> { font-family: Arial, Helvetica, Sans-serif; font- size:10pt; } <p>font-family: Arial, Helvetica, Sans-serif; font- size:10pt; </p>
p { font-family: Arial, Helvetica, Sans-serif; font-size:10pt; }
Look at the following form. What is the name of program that will be executed when this form is submitted? <form action = "retire.php" method = "post" > <p>What is your age?<input type="text" size="10" name="age"></p> <p><input type="submit" value = "Calculate " ></p> </form> Calculate post retire.php age
retire.php
Which of the following is an example of an Internet domain name? 127.0.0.1 xampp www.abtech.edu my-first.html
www.abtech.edu