Computer Science > EXAM > University of the People CS 2205 Final Exam (Proctored). CS2205 Web Programming 1. All 46 Questions (All)
1/20 Home ► My courses ► CS 2205 - AY2019-T5 ► Final Exam (Days 1 - 4) ► Final Exam (Proctored) Information Question 1 1.00 Question 2 1.00 Part 1: Web Design Principles Three-... tier architecture has the following three tiers: Select one: a. Presentation tier, Control Tier and Data tier b. Presentation tier, Application tier and Data tier c. Application tier, Control Tier and Data tier d. Presentation tier, Application tier and Network tier Which one of the following is true? Select one: a. In HTML Shorthand can not be used for certain attributes. b. In XHTML Attribute values must not be enclosed by quotes. c. In HTML Certain elements don’t need a closing tag, in XHTML all elements must be explicitly closed. d. In CSS you can not have more than one of the same class on each page CS 2205 Web Programming 1 2/20 Question 3 1.00 Question 4 1.00 Question 5 1.00 The home page should, at least provide the following: Select one: a. deÕne the main goal of the site and provide an overview, lead people further into the site, show what’s new. b. deÕne the main goal of the site and provide an overview, show what’s new, introduce the brand, provide navigation to other areas of the site. c. deÕne the main goal of the site and provide an overview, show what’s new, introduce the brand. d. show what’s new, introduce the brand, provide navigation to other areas of the site. Which of the following is true Select one: a. The primary colours consist of red, green and blue, and they’re called primary colours because you don’t need to mix colours to make these three hues. b. The primary colours consist of red, yellow and blue, and they’re called primary colours because you don’t need to mix colours to make these three hues. c. The primary colours consist of red, black and blue, and they’re called primary colours because you don’t need to mix colours to make these three hues. d. The primary colours consist of red, white and blue, and they’re called primary colours because you don’t need to mix colours to make these three hues. When designing a website, the golden rule is that "content is king!" No matter how Öashy and colorful a website is, it is virtually useless without organized, accessible content. This means that a person searching for information must be able to quickly Õnd it on your website. If not, they will leave. Select one: True False 3/20 Information Question 6 1.00 Question 7 1.00 Part 2: HTML HMTL headings are deÕned a) With the <h1> to <h6> tags. b) with the <h0> to <h6> tags. c) with the <h1> to <h5> tags. d) with the <h1> to <h7> tags. Select one: a. b. c. d. Which of the following is true a) HTML links are deÕned with the <a> tag and HTML images are deÕned with the <imge> tag. b) HTML links are deÕned with the <al> tag and HTML images are deÕned with the <img> tag. c) HTML links are deÕned with the <a> tag and HTML images are deÕned with the <img> tag. d) HTML links are deÕned with the <at> tag and HTML images are deÕned with the <img> tag. Select one: a. b. c. d. 4/20 Question 8 1.00 Question 9 1.00 Which of the following is true a) The <p> element deÕnes a paragraph in the HTML document. The element has only a start tag <p>; also the <br>tag deÕnes a line break, and does not have a closing tag b) The <p> element deÕnes a paragraph in the HTML document. The element has a start tag <p> and an end tag </p>. The <br>tag deÕnes a line break, and has also the closing tag </br>. c) The <p> element deÕnes a paragraph in the HTML document. The element has only the start tag <p> however the <br> tag which deÕnes a line break has also the closing tag </br> d) The <p> element deÕnes a paragraph in the HTML document. The element has a start tag <p> and an end tag </p>. The <br>tag deÕnes a line break, and does not have a closing tag Select one: a. b. c. d. In XHTML, XML, and future versions of HTML, HTML elements with no end tag (closing tag) are not allowed. Select one: True False 5/20 Question 10 1.00 Question 11 1.00 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. Select one: True False Which one of the following is correct a) The <meta> tag provides metadata about the HTML document. Metadata will be displayed on the page, and will be machine parsable. b) The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page and will not be machine parsable. c) The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable. d) The <meta> tag provides metadata about the HTML document. Metadata will be displayed on the page, and will be machine parsable. Select one: a. b. c. d. 6/20 Question 12 1.00 Question 13 1.00 Which of the following is true and more complete How does the WWW work? Select one: a. Web information is stored in documents called web pages. Web pages are Õles stored on computers called web clients. Computers reading the web pages are called web servers. Web clients view the pages with a program called a web browser. Popular browsers are Internet Explorer and Firefox. b. Web information is stored in documents called web Õles. Web Õles are stored on computers called web servers. Computers reading the web pages are called web clients. Web clients view the pages with a program called a web browser. Popular browsers are Internet Explorer and Firefox. c. Web information is stored in documents called web pages. Web pages are Õles stored on computers called web servers. Computers reading the web pages are called web clients or customers. Web clients or customers view the pages with a program called a web browser. Popular browsers are Internet Explorer and Firefox. d. Web information is stored in documents called web pages. Web pages are Õles stored on computers called web servers. Computers reading the web pages are called web clients. Web clients view the pages with a program called a web browser. Popular browsers are Internet Explorer and Firefox. DNS stands for Domain Name System. A DNS server is responsible for informing all other computers on the Internet about the domain name and the web site address. Select one: True False 7/20 Question 14 1.00 Question 15 1.00 Question 16 1.00 Question 17 1.00 You can add names to each frame window using which setting ? Select one: a. name b. src c. ur Which of the following will NOT be found in the <head> section ? Select one: a. Metatags b. Title c. Table How do you add a link which will allow the visitor to send an email from your page ? a) Add an image of an envelope b)Add <a href="sendmailtoyouraddress"> c) Add <a href="mailto:youraddress"> Select one: a. b. c. A Õle that speciÕes how the screen is divided into frames is called a __________ Select one: a. frameset b. frametable c. tablelink 8/20 Question 18 1.00 Information Question 19 1.00 What is the correct HTML for creating a hyperlink? a)<a name="http://www.uopeople.org">University of People</a> b) <a href="http://www.uopeople.org"> University of People </a> c) <a>http://www.uopeople.org</a> d) <a url="http://www.uopeople.org"> University of People </a> Select one: a. b. c. d. Part 3: CSS Which of the following statements is true Select one: a. CSS stands for Cascading Style Sheets. Styles deÕne how to display XTML elements. Styles were added to HTML 5.0 to solve a problem. External Style Sheets can save a lot of work. External Style Sheets are stored in CSS Õles b. CSS stands for Cascading Style Sheets. Styles deÕne how to display HTML elements. Styles were added to HTML 5.0 to solve a problem. External Style Sheets can save a lot of work. External Style Sheets are stored in CSS Õles c. CSS stands for Cascading Style Sheets. Styles deÕne how to display HTML elements. Styles were added to HTML 4.0 to solve a problem. External Style Sheets can save a lot of work. External Style Sheets are stored in CLSS Õles d. CSS stands for Cascading Style Sheets. Styles deÕne how to display HTML elements. Styles were added to HTML 4.0 to solve a problem. External Style Sheets can save a lot of work. External Style Sheets are stored in CSS Õles 9/20 Question 20 1.00 Which of the following statements is true Select one: a. a) In addition to setting a style for a HTML element, CSS allows you to specify your own selectors called "id" and "object". The id selector is used to specify a style for a single, unique element. The id selector uses the id attribute of the HTML element, and is deÕned with a "&". b. b) In addition to setting a style for a HTML element, CSS allows you to specify your own selectors called "id" and "reference". The id selector is used to specify a style for a single, unique element. The id selector uses the id attribute of the HTML element, and is deÕned with a "#". c. c) In addition to setting a style for a HTML element, CSS allows you to specify your own selectors called "id" and "class". The id selector is used to specify a style for a single, unique element. The id selector uses the id attribute of the HTML element, and is deÕned with a "#". d. d) In addition to setting a style for a HTML element, CSS allows you to specify your own selectors called "id" and "class". The id selector is used to specify a style for a single, unique element. The id selector uses the id attribute of the HTML element, and is deÕned with a "@". 10/20 Question 21 1.00 Question 22 1.00 Which of the following is true a) An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one Õle. Each page must link to the style sheet using the <link> tag. The <link> tag goes inside the body section. b) An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one Õle. Each page must link to the style sheet using the <ref> tag. The <ref> tag goes inside the head section. c) An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one Õle. Each page must link to the style sheet using the <link> tag. The <link> tag goes after the head section. d) An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one Õle. Each page must link to the style sheet using the <link> tag. The <link> tag goes inside the head section. Select one: a. b. c. d. In CSS A:link deÕnes the style for Select one: a. active links b. visited links c. Virtuallinks d. normal unvisited links 11/20 Question 23 1.00 Question 24 1.00 <link rel=stylesheet href="whatever.css" type="text/css"> is used for adding CSS to the entire site ? a) Yes - if present on all pages in the site. b) Only if written in the <body>-section of the page. c) No d) none Select one: a. b. c. d. What is the correct HTML for referring to an external style sheet? a) <stylesheet>mystyle.css</STYLESHEET> td <> b) <link rel="stylesheet" type="text/css" href="mystyle.css"> c) <style src="mystyle.css"> d) none Select one: a. b. c. d. 12/20 Question 25 1.00 Question 26 1.00 Question 27 1.00 Information How do you insert a comment in a CSS Õle? Select one: a. ' this is a comment b. /* this is a comment */ c. // this is a comment // d. // this is a comment Which property is used to change the background color? Select one: a. bgcolor: b. background-color: c. color: What is the correct CSS syntax for making all the <p> elements bold? Select one: a. p {text-size:bold} b. p {font-weight:bold} c. style:bold d. p{font:bold} Part 4: JAVASCRIPT 13/20 Question 28 1.00 Which of the following sentences is true (all items should be true) and more complete ? Select one: a. JavaScript was designed to add interactivity to HTML pages. JavaScript is a scripting language. A scripting language is a lightweight programming language. JavaScript is an interpreted language (means that scripts execute without preliminary compilation). Everyone can use JavaScript without purchasing a license. b. JavaScript was designed to add interactivity to HTML pages. JavaScript is a scripting language. A scripting language is a lightweight programming language. JavaScript is usually embedded directly into HTML pages. JavaScript is an interpreted language (means that scripts execute without preliminary compilation). c. JavaScript was designed to add interactivity to HTML pages. JavaScript is a scripting language. A scripting language is a heavyweight programming language. JavaScript is usually embedded directly into HTML pages. JavaScript is an interpreted language (means that scripts execute without preliminary compilation). Everyone can use JavaScript without purchasing a license. d. JavaScript was designed to add interactivity to HTML pages. JavaScript is a scripting language. A scripting language is a lightweight programming language. JavaScript is usually embedded directly into HTML pages. JavaScript is an interpreted language (means that scripts execute without preliminary compilation). Everyone can use JavaScript without purchasing a license. 14/20 Question 29 1.00 Question 30 1.00 Question 31 1.00 Which of the following sentences is true (all items should be true) and more complete? Select one: a. A cookie is a variable that is stored on the visitor's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With JavaScript, you can create but not retrieve cookie values. b. A cookie is a variable that is stored on the visitor's computer. Each time the same computer requests a page with a browser, it will send the cookie too. c. A cookie is a variable that is stored on the visitor's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With JavaScript, you can both create and retrieve cookie values. d. A cookie is a variable that is stored on the visitor's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With JavaScript, you can not create but only retrieve cookie values. What is the correct JavaScript syntax to write "Hello World"? Select one: a. response.write("Hello World") b. document.write("Hello World") c. ("Hello World") d. echo("Hello World") How do you call a function named "myFunction"? Select one: a. call function myFunction b. myFunction() c. call myFunction() 15/20 Question 32 1.00 Question 33 1.00 Question 34 1.00 How do you write a conditional statement for executing some statements only if "i" is equal to 5? Select one: a. if i==5 then b. if i=5 then c. if (i==5) d. if i=5 How do you write a conditional statement for executing some statements only if "i" is NOT equal to 5? Select one: a. if (i <> 5) b. if (i != 5) c. if =! 5 then d. if <> 5 How does a "for" loop start? Select one: a. for (i = 0; i <= 5) b. for (i = 0; i <= 5; i++) c. for i = 1 to 5 d. for i = 1 to 5 e. for (i <= 5; i++) 16/20 Question 35 1.00 Question 36 1.00 Information Question 37 1.00 What is the correct JavaScript syntax for opening a new window called "window5" ? Select one: a. new("http://www.ex-designz.net","window5") b. window.open("http://www.ex-designz.net","window5") c. open.newwindow("http://www.ex-designz.net","window5") d. new.window("http://www.ex-designz.net","window5") You deÕne an array using Select one: a. var myarray = new Array(); b. var myarray = array new; c. var new Array() = myarray; d. var new array = myarray; Part 5: XML What does XML stand for? Select one: a. eXtensible Markup Language b. X-Markup Language c. Example Markup Language d. eXtra Modern Link 17/20 Question 38 1.00 Question 39 1.00 Question 40 1.00 Which statement about XML is true? Select one: a. Elements may nest but not overlap b. Quoting attributes is optional c. Elements may have multiple attributes with the same name what is the correct declaration syntax for the version of XML document? a) <?xml version="1.0" /> b) <?xml version="1.0"?> c) <xml version="1.0" /> Select one: a. b. c. Every XML document must be well formed Select one: True False 18/20 Question 41 1.00 Question 42 1.00 Question 43 1.00 What is a correct way of referring to a stylesheet called "style.xsl"? a) <stylesheet type="text/xsl" href="style.xsl" /> b) <link type="text/xsl" href="style.xsl" /> c) <?xml-stylesheet type="text/xsl" href="style.xsl" ?> Select one: a. b. c.. What does DTD stand for? Select one: a. Document Type DeÕnition b. Dynamic Type DeÕnition c. Direct Type DeÕnition Unlike most other markup languages, including HTML, XML allows you to do what? Select one: a. Create new tags b. Exchange information over the Web c. Put your tags in any order, with closing tags optional 19/20 Question 44 1.00 Question 45 1.00 Question 46 1.00 ◄ Review Quiz Jump to... 44) The following XML documents is correct: <?xml version="1.0" encoding="ISO-8859-1"?> <note> <to>Tove</to> <from>Jani</Ffrom> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> Select one: True False With the XMLHttpRequest object the developer can update a web page without reloading the page. Request data from a server after the page has loaded. Receive data from a server after the page has loaded. Send data to a server in the background Select one: True False All modern browsers have a built-in XML parser. An XML parser converts an XML document into an XML DOM object - which can then be manipulated with a JavaScript Select one: True False [Show More]
Last updated: 10 months ago
Preview 1 out of 20 pages
Computer Science> EXAM > AZ-204 RENEWAL EXAM QUESTIONS AND ANSWERS 2022 (All)
1) You plan to deploy an Azure web app that will have the following settings: Name: WebApp1 Publish: Docker container Operating system: Windows Region: West US Windows Plan (West US):...
By ELIANA , Uploaded: Jul 22, 2022
$10.5
Computer Science> EXAM > AZ 303 Final Exam Complete Questions and Answers Latest 2022/2023 Update (All)
AZ 303 Final Exam Complete Questions and Answers Latest 2022/2023 Update You have an Azure subscription that contains 10 virtual machines on a virtual network. You need to create a graph visualizati...
By Topmentor , Uploaded: Dec 14, 2022
$14
Computer Science> EXAM > Robot Modeling and Control First Edition Mark W. Spong, Seth Hutchinson, and M. Vidyasagar (All)
Robot Modeling and Control First Edition Mark W. Spong, Seth Hutchinson, and M. Vidyasagar
By best browsegrades doc , Uploaded: Sep 08, 2022
$14.5
Computer Science> EXAM > AZ-104 Renewal Exam updated 2022 With verified answers (All)
You plan to deploy an Azure web app that will have the following settings: Name: WebApp1 Publish: Docker container Operating system: Windows Region: West US Windows Plan (West US): AS...
By Topstudies , Uploaded: Jul 17, 2022
$8
Computer Science> EXAM > VSP - Foundation 2019 (All)
VSP - Foundation 2019 VSP - Foundation 2019 1 Which of the following best describes the VSP accreditation program? A Helps sellers develop basic solution expertise for VMware core products, as wel...
By Prof.Pierro , Uploaded: Jun 20, 2022
$10
Computer Science> EXAM > OCR GCE Computer Science H446/01: Computer systems A Level Mark Scheme for June 2022 (All)
OCR GCE Computer Science H446/01: Computer systems A Level Mark Scheme for June 2022
By kingamor , Uploaded: Jun 21, 2023
$10
Computer Science> EXAM > TM112 - Introduction To Computing 2- TMA03 (Marked)/TMA03 TM112 (All)
TM112 - Introduction To Computing 2- TMA03 (Marked) TMA03 TM112 TMA03 TM112 Question 1 Within a HDD are sectors that can store 512 bytes of data which are grouped together into a cluster, a file...
By PaulMarks , Uploaded: Sep 04, 2021
$9.5
Computer Science> EXAM > NETWORK+ N10-008 ACRONYMS EXAM QUESTIONS AND ANSWERS (2023) (VERIFIED ANSWERS BY EXPERT) (All)
NETWORK+ N10-008 ACRONYMS EXAM QUESTIONS AND ANSWERS (2023) (VERIFIED ANSWERS BY EXPERT)
By Smartdov , Uploaded: Feb 07, 2023
$10
Computer Science> EXAM > AZ-104 Renewal Exam Questions (All)
You plan to deploy an Azure web app that will have the following settings: Name: WebApp1 Publish: Docker container Operating system: Windows Region: West US Windows Plan (West US): ASP...
By markstudys , Uploaded: Jun 27, 2022
$8
Computer Science> EXAM > AzureAZ-104 Renewal Exam- QUESTIONS AND ANSWERS (NEW) (2022) (All)
1. A company named Contoso, Ltd. has an Azure subscription that is linked to an Azure Active Directory (Azure AD) tenant named contoso.com. The Azure subscription contains the following virtual netw...
By James003 , Uploaded: Aug 09, 2022
$15
Connected school, study & course
About the document
Uploaded On
Dec 15, 2021
Number of pages
20
Written in
This document has been written for:
Uploaded
Dec 15, 2021
Downloads
0
Views
460
Avoid resits and achieve higher grades with the best study guides, textbook notes, and class notes written by your fellow students
Your fellow students know the appropriate material to use to deliver high quality content. With this great service and assistance from fellow students, you can become well prepared and avoid having to resits exams.
Your fellow student knows the best materials to research on and use. This guarantee you the best grades in your examination. Your fellow students use high quality materials, textbooks and notes to ensure high quality
Get paid by selling your notes and study materials to other students. Earn alot of cash and help other students in study by providing them with appropriate and high quality study materials.
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·