Final Exam CIS 228: The Internet Prof. St. John Lehman College City University of New York 12 December 2007

Similar documents
Final Examination CIS 228: The Internet Prof. St. John Lehman College City University of New York 18 December 2008

Sample Exam 2 (Version 1) CIS 228: The Internet Prof. St. John Lehman College City University of New York 7 November 2007

ANSWER KEY Exam II CIS 228: The Internet Prof. St. John Lehman College City University of New York 2 April 2009

Exam II CIS 228: The Internet Prof. St. John Lehman College City University of New York 5 November 2009

ANSWER KEY Final Examination CIS 228: The Internet Prof. St. John Lehman College City University of New York 22 May 2008

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

ANSWER KEY Exam I (Yellow Version) CIS 228: The Internet Prof. St. John Lehman College City University of New York 26 February 2009

CIS 228 (Fall 2011) Exam 2, 11/3/11

Title: Dec 11 3:40 PM (1 of 11)

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

Web Publishing Intermediate 2

Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points)

Implementing a chat button on TECHNICAL PAPER

GIMP WEB 2.0 MENUS. Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar.

Lab 4 CSS CISC1600, Spring 2012

Vebra Search Integration Guide

Creating an HTML file (Mac)

CSS: Layout Part 2. clear. CSS for layout and formatting: clear

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

Introduction to HTML5

Hoster: openload.co - Free PLUGIN_DEFECT-Error: 08d a1830b60ab13ddec9a2ff6

Creating a Job Aid using HTML and CSS

Ministry of Higher Education and Scientific Research

LA TROBE UNIVERSITY SEMESTER ONE EXAMINATION PERIOD CAMPUS AW BE BU MI SH ALLOWABLE MATERIALS

Block & Inline Elements

In the early days of the Web, designers just had the original 91 HTML tags to work with.

Module Contact: Dr Graeme Richards, CMP. Copyright of the University of East Anglia Version 1

Introduction to Web Design CSS Reference

Introduction to Web Design CSS Reference

Wireframe :: tistory wireframe tistory.

Design Project. i385f Special Topics in Information Architecture Instructor: Don Turnbull. Elias Tzoc

Cascading Style Sheets (CSS)

Dreamweaver CS3 Lab 2

CSS Cascading Style Sheets

How the Internet Works

CSS. CSS - cascading style sheets CSS - permite separar num documento HTML o conteúdo do estilo. DAW css 1/1

Create a cool image gallery using CSS visibility and positioning property

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3

Fundamentals: Client/Server

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

Dreamweaver: Portfolio Site

Web Publishing Basics I

Basic CSS Lecture 17

introduction to XHTML

Styles, Style Sheets, the Box Model and Liquid Layout

HyperText Markup Language (HTML)

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

CSS: Cascading Style Sheets

Getting Started with Eric Meyer's CSS Sculptor 1.0

Lab: Create JSP Home Page Using NetBeans

CIS 228 (Spring, 2012) Final, 5/17/12

DAY 4. Coding External Style Sheets

XHTML & CSS CASCADING STYLE SHEETS

Introduction to WEB PROGRAMMING

New Media Production HTML5

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles

Graded Project. HTML Coding

Part A Short Answer (50 marks)

Dreamweaver CS5 Lab 2

5 Snowdonia. 94 Web Applications with C#.ASP

The default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows:

Adding CSS to your HTML

3. Each of these mark examples contains an error. a. <input name= country value= Your country here. /> b. <checkbox name= color value= teal />

Introduction to HTML & CSS. Instructor: Beck Johnson Week 5

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

CSS مفاهیم ساختار و اصول استفاده و به کارگیری

Guidelines for doing the short exercises

Designing and Developing a Website. December Sample Exam Marking Scheme

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors

CSS means Cascading Style Sheets. It is used to style HTML documents.

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

Advanced Dreamweaver CS6

Introduction to using HTML to design webpages

Creating HTML files using Notepad

CSS. Lecture 16 COMPSCI 111/111G SS 2018

CSS: The Basics CISC 282 September 20, 2014

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Perfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5

Shane Gellerman 10/17/11 LIS488 Assignment 3

EM208: Web Development I 1. EM208: Web Development I. Final Project. Trina VanderLouw. Professor John Basco. Colorado Technical University

CSE 154: Web Programming Autumn 2018

CS134 Web Site Design & Development. Quiz1

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Chapter 2 HTML and CSS

CSS Selectors. element selectors. .class selectors. #id selectors

Positioning in CSS: There are 5 different ways we can set our position:

Microsoft Expression Web Quickstart Guide

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

COSC 2206 Internet Tools. CSS Cascading Style Sheets

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5

First, create a web page with a submit button on it (remember from creating forms in html?):

Programmazione Web a.a. 2017/2018 HTML5

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

CSS Tutorial Part 1: Introduction: A. Adding Style to a Web Page (3 options):

Creating and Building Websites

CMPT 165: More CSS Basics

CSS Lecture 16 COMPSCI 111/111G SS 2018

HTML Overview. With an emphasis on XHTML

Lab 1: Introducing HTML5 and CSS3

Transcription:

Final Exam CIS 228: The Internet Prof. St. John Lehman College City University of New York 12 December 2007 NAME (Printed) NAME (Signed) E-mail Exam Rules Show all your work. Your grade will be based on the work shown. The exam is closed book and closed notes. When taking the exam, you may have with you pens or pencils, and an 8 1/2 x 11 piece of paper filled with notes, programs, etc. You may not use a computer or calculator. All books and bags must be left at the front of the classroom during this exam. Do not open this exams until instructed to do so. (Blue exam) Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Question 7 Question 8 Question 9 Question 10 TOTAL

1. True or False: (a) (b) (c) (d) (e) (f) Opening tags can have attributes. An empty element consists of only one tag. You cannot use more than one attribute at a time for the <a> element. JPEG is a lossless format for presenting images. Strict HTML style is the same as XHTML style. The document type tag (<doctype>) is used to tell the browser which version of HTML your web page is written in. (g) The META tag is not needed to the transitional XHTML 1.0. (h) (i) (j) A <span> elements joins up pieces created by the <div> element. You can nest tables inside tables. In JavaScript, arrays can be of any length. 2. Answer in two sentences or less the following: (a) What is HTML? What is it used for? (b) What is CSS? What is it used for? (c) What is the difference between them? 3. Fill in the following table with the corresponding decimal or hexcode representation of the number. For partial credit, show your work. Decimal 15 31 Hexcode #15 #aa #f1

4. What does the following JavaScript code do? Write the ending value for each variable in the box below. (Show your work for partial credit.) var meenie, miney, moe = 3, all = "it s "; meenie = moe +2; miney = meenie % moe; all = all+moe+"!"; moe--; meenie miney moe all 5. Write Javascript functions that will do the following: (a) Say hello world. (b) Take as input a number, digit, and return true if digit is less than 16, otherwise return false. (c) Prompt the user for their grades on the last 10 assignments and tell them the average of their grades.

6. Be the browser with the following HTML and CSS files. On the following page of the exam, draw the page and indicate any style (color, borders, etc) on your page: HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>starbuzz Coffee</title> <link rel="stylesheet" type="text/css" href="starbuzz.css" /> </head> <body> <div id="header"> <img src="images/header.gif" alt="starbuzz Coffee header image" /> <div id="drinks"> <h1>beverages</h1> House Blend, $1.49 Mocha Cafe Latte, $2.35 Cappuccino, $1.89 <div id="sidebar"> <p class="beanheading"> <img src="images/bag.gif" alt="bean Machine bag" /> <br /> ORDER ONLINE with the <a href="form.html">bean MACHINE</a> <br /> <span class="slogan"> FAST <br /> FRESH <br /> TO YOUR DOOR <br /> </span> Why wait? You can order all our fine coffees right from the Internet with our new, automated Bean Machine. <div id="main"> <h1>quality COFFEE, QUALITY CAFFEINE</h1> At Starbuzz Coffee, we are dedicated to filling all your quality coffees and teas. caffeine needs through our <h1>our STORY</h1> "A man, a plan, a coffee bean". Okay, that doesn t make a palindrome, but it resulted in a damn good cup of coffee. Starbuzz s CEO is that man, and you already know his plan: a Starbuzz on every corner. <h1>starbuzz COFFEE BEVERAGES</h1> We ve got a variety of caffeinated beverages to choose from at Starbuzz, including our <a href="beverages.html#house" title="house Blend">House Blend</a>, <a href="beverages.html#mocha" title="mocha Cafe Latte">Mocha Cafe Latte</a>, <a href="beverages.html#cappuccino" title="cappuccino">cappuccino</a>, and a favorite of our customers, <a href="beverages.html#chai" title="chai Tea">Chai Tea</a>. <div id="footer"> 2005, Starbuzz Coffee <br /> All trademarks and registered trademarks appearing on this site are the property of their respective owners. </body> </html> CSS: body { background-color: #b5a789; font-family: Georgia, "Times New Roman", Times, serif; font-size: small; margin: 0px; #main { background: #efe5d0 url(images/background.gif) top left; font-size: 105%; padding: 15px; margin: 0px 10px 10px 10px; #sidebar { background: #efe5d0 url(images/background.gif) bottom right; font-size: 105%; padding: 15px; margin: 0px 10px 10px 10px; #footer { background-color: #675c47; color: #efe5d0; text-align: center; padding: 15px; margin: 10px; font-size: 90%; #header { background-color: #675c47; margin: 10px; height: 108px; #drinks { background: #efe5d0 url(images/background.gif) top left; font-size: 105%; padding: 15px; margin: 0px 10px 10px 10px; h1 { font-size: 120%; color: #954b4b; h2 { font-size: 110%;.slogan { color: #954b4b;.beanheading { text-align: center; line-height: 1.8em;.beanheading img { width: 60%; a:link { color: #b76666; text-decoration: none; border-bottom: thin dotted #b76666; a:visited { color: #675c47; text-decoration: none; border-bottom: thin dotted #675c47; #sidebar { float: right; width: 180px; #main { margin-right: 230px; margin-left: 165px; #drinks { float: left; width: 115px; #footer { clear: both;

(Space for Answer to #6:)

7. Write the HTML code for the table with the following information. Include any style rules needed to display the table: CIS 228: The Internet Section Code Open Seats Day and Time Instructor Bldg/Rm 01 0292 13 T,TH Wilson, E. GI/207 4:00-5:50 PM 02 0293 14 T,TH St John, K. GI/217 11:00-12:50 PM 03 0294 3 S Krishnakumar, P. GI/217 9:00-12:30 PM

8. Write the style sheet that will arrange the following page: fonts should be sans-serif, headings should be gray, the elixirs sidebar should be on the right side of the page, the footer should not overlap other sections of the page, CD names should be boldface, and the artists names should be in italic. (Hint: Do not change any of the HTML code.) <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>head First Lounge</title> <link type="text/css" rel="stylesheet" href="lounge.css" media="screen" /> </head> <body> <img src="images/logo.gif" alt="head First Lounge" /> <div id="elixirs"> <h2>weekly Elixir Specials</h2> <h3>lemon Breeze</h3> The ultimate healthy drink, this elixir combines herbal botanicals, minerals, and vitamins with a twist of lemon. <h3>chai Chiller</h3> Not your traditional chai, this elixir mixes chai spices and adds an extra chocolate kick for a caffeinated taste sensation. Join us any evening for these and all our other wonderful <a href="beverages/elixir.html" title="head First Lounge Elixirs">elixirs</a>. <h1>welcome to the Head First Lounge</h1> The Head First Lounge is, no doubt, the biggest trendsetter in Webville. During your stay at the lounge, you ll enjoy a smooth mixture of ambient and mystic sounds. <p id="guarantee"> Our guarantee: at the lounge, we re committed to providing you, our guest, with an exceptional experience every time you visit. But that s not all; at night, join us in the backroom as our resident DJ spins a choice selection of trance and drum&bass beats across our spacious tiki-themed dance floor. Now that you ve experienced the lounge <em>virtually</em>, isn t it time to check us out <em>for real</em>? We re located right in the heart of Webville, and we ve created some <a href="about/directions.html" title="detailed Directions to the Lounge">detailed directions</a> <h2>what s playing at the Lounge</h2> We re frequently asked about the music we play at the lounge, and no wonder, <ul> <li><span class="cd">buddha Bar</span>, <span class="artist">claude Challe</span></li> <li><span class="cd">when It Falls</span>, <span class="artist">zero 7</span></li> <li><span class="cd">earth 7</span>, <span class="artist">l.t.j. Bukem</span></li> <li><span class="cd">le Roi Est Mort, Vive Le Roi!</span>, <span class="artist">enigma</span></li> <li><span class="cd">music for Airports</span>, <span class="artist">brian Eno</span></li> </ul> <div id="footer"> Copyright 2005, Head First Lounge<br /> </body> </html>

9. Create a form for ordering ice cream from the 228 Ice Cream Shop. Your form should have the following choices (the name used by the web application is included in parenthesis): first and last names (fname and lname) type of ice cream cone (cone) kind of ice cream (icecream), extra toppings (extras[]), and a text area for comments and special instructions (comments) For the first four, you should allow only one answer (i.e. radio buttons or pull-down menu), while for extras (i.e. sprinkles, whipped cream, etc), multiple answers are expected (i.e. checkboxes). The web application for processing the form is located at: http://comet.lehman.cuny.edu/stjohn/teaching/cis228/order.php

10. Write a COMPLETE file that does the following: Uses cookies to keep track of when the user has visited in the last year. If this is the first visit, the user is prompted for their name and the program replies that it is nice to meet them, using their name (i.e. if they say their name is Herbert, the program then says, Nice to meet you, Herbert ). Store their name in a cookie. If this isn t their first visit, then welcome them back to the page. For example, if the name stored in the cookie is Lehman, you would say Welcome back, Lehman!. You can assume that the following functions have been written for you: setcookie(name, value, days), getcookie(name), and delcookie(name).