NAME: Question Points TOTAL 100

Similar documents
CMPSCI 120 Fall 2016 Professor William T. Verts

CMPSCI 120 Fall 2015 Midterm Exam #2 Solution Key Monday, November 16, 2015 Professor William T. Verts

NAME: Question Points TOTAL 100

COMPSCI 120 Fall 2017 Review Questions for Midterm #2 Professor William T. Verts

CMPSCI 105 Midterm Exam Spring 2015 March 5, 2015 Professor William T. Verts

CMPSCI 105 Midterm Exam Solution Key. Fall 2013 October 17, Professor William T. Verts

COMPSCI 120 Review for Final Exam Professor William T. Verts MISCELLANEOUS. What is rule # 34? List 3 Anti-Virus programs. BIAS, POLLS, AND SEARCHING

CMPSCI 105 Midterm Exam Solution Spring 2004 March 25, 2004 Professor William T. Verts

CMPSCI 120 Extra Credit #1 Professor William T. Verts

CMPSCI 105 Midterm Exam Solution Spring 2008 March 27, 2008 Professor William T. Verts

CMPSCI 120 Fall 2017 Lab #2 Professor William T. Verts

CMPSCI 120 Fall 2017 Lab #1 Professor William T. Verts

CMPSCI 120 Fall 2017 Lab #4 Professor William T. Verts

CMPSCI 105 Midterm Exam Solution Spring 2013 March 7, 2013 Professor William T. Verts

CMPSCI 105 Midterm Exam Solution Spring 2007 March 30, 2007 Professor William T. Verts

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

CMPSCI 120 Fall 2013 Lab #2 Professor William T. Verts

CMPSCI 105 Midterm Exam Solution Fall 2009

Fairly advanced HTML

East Tennessee State University Department of Computer and Information Sciences CSCI 1710/Section 001 Web Design I TEST 1 for Fall Semester, 2000

CMPSCI 105 Midterm Exam Solution Spring 2005 March 24, 2005 Professor William T. Verts

Tables *Note: Nothing in Volcano!*

CMPSCI 105 Midterm Exam Solution Spring 2010 March 10, 2010 Professor William T. Verts

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

CSC 121 Computers and Scientific Thinking

UNIX and Operating System Topics

CITS1231 Midterm Test (A total of 45 marks)

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

CMPSCI 120 Fall 2017 Midterm Exam #1 Solution Key Friday, October 6, 2017 Professor William T. Verts

CMPSCI 120 Spring 2010 Review for Midterm Professor William T. Verts

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

Exercise #2: your Profile

WTAD Text Editors for HTML. Text Editors: Kate HTML. (HyperText Markup Language)

A Balanced Introduction to Computer Science, 3/E

WTAD. Unit -1 Introduction to HTML (HyperText Markup Language)

The City School. Prep Section. ICTech. 2 nd Term. PAF Chapter. Class 8. Worksheets for Intervention Classes

The City School. Prep Section. ICTech. 2 nd Term. PAF Chapter. Class 7. Worksheets for Intervention Classes

USQ/CSC2046 Web Publishing

Introduction to WEB PROGRAMMING

Week 8: HyperText Transfer Protocol - Clients - HTML. Johan Bollen Old Dominion University Department of Computer Science

To get multiple area selections add one or more id's to the areas rel attribute.

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

:

Html basics Course Outline

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

Modify cmp.htm, contactme.htm and create scheduleme.htm

Web Design and Application Development

Introduction to Computer Science (I1100) Internet. Chapter 7

ADOBE Dreamweaver CS3 Basics

Category: Informational August A Proposed Extension to HTML : Client-Side Image Maps

Chapter 5. Introduction to XHTML: Part 2

HTML Tags <A></A> <A HREF=" CNN </A> HREF

Hyper Text Markup Language HTML: A Tutorial

CMPSCI 120 Lab #1 Professor William T. Verts

Table Basics. The structure of an table

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1

Web Development & Design Foundations with XHTML. Chapter 4 Key Concepts

Create a three column layout using CSS, divs and floating

Layout with Layers and CSS

Problem 1: Textbook Questions [4 marks]

Chapter 4 Creating Tables in a Web Site Using an External Style Sheet

HTML5 and CSS3--Images Page 1

LING 408/508: Computational Techniques for Linguists. Lecture 14

INFS 2150 / 7150 Intro to Web Development / HTML Programming

Start by launching Mozilla To start making a web page, go to File -> New -> Composer Page

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

CMPSCI 119 Fall 2018 Thursday, November 29, 2018 Midterm #3 Solution Key Professor William T. Verts

1.264 Lecture 12. HTML Introduction to FrontPage

How to lay out a web page with CSS

HTML WORKSHEET Explain HTML HEAD Tag Title Tag BASEFONT Tag

* HTML BASICS * LINKING BY: RIHAM ALSMARI, PNU. Lab 2

Title: Jan 29 11:03 AM (1 of 23) Note that I have now added color and some alignment to the middle and to the right on this example.

HTML Text Formatting. HTML Session 2 2

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

CMPSCI 119 Fall 2018 Wednesday, November 14, 2018 Midterm #2 Solution Key Professor William T. Verts

Lava New Media s CMS. Documentation Page 1

UNIT 3 SECTION 1 Answer the following questions Q.1: What is an editor? editor editor Q.2: What do you understand by a web browser?

How to Create a NetBeans PHP Project

PIC 40A. Midterm 1 Review

Making Backgrounds With Paint Shop Pro

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

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

Objective % Select and utilize tools to design and develop websites.

Adding Items to the Course Menu

SAMLab Tip Sheet #5 Creating Graphs

Management Information Systems

IBM Forms V8.0 Custom Themes IBM Corporation

Hyperlinks, Tables, Forms and Frameworks

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

A340 Laboratory Session #5

COMSC-031 Web Site Development- Part 2. Part-Time Instructor: Joenil Mistal

Creating web pages Chapter 5. Structuring contents

THE ASIAN SCHOOL. Class-10. ch8. A. Check the Right Answer (1*9)

Shatin Tsung Tsin Secondary School S.3 Computer and Technology Web Page Design by HTML Introduction to HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "

Student, Perfect Midterm Exam March 24, 2006 Exam ID: 3193 CS-081/Vickery Page 1 of 5

Page Content. Inserting Text To add text to your document, you can type the text directly or use Cut or Copy and Paste or Paste Special.

Welcome. Web Authoring: HTML - Advanced Topics & Photo Optimisation (Level 3) Richard Hey & Barny Baggs

Chapter 4 Notes. Creating Tables in a Website

Dear Candidate, Thank you, Adobe Education

Transcription:

CMPSCI 120 Fall 2013 Midterm Exam #2 Solution Key Friday, November 8, 2013 Professor William T. Verts NAME: Question Points 1 20 2 20 3 20 4 20 5 20 TOTAL 100 Score

<1> 20 Points Quick Answers. Do any 10 for full credit (2 points each); do more for extra credit (1 point each over 10). rw----r-- r-xr-xr-x ug+w,o-w index.html index.html glop.gif public_html blank mkdir public_html No New #1DE2EB Cyan or Teal or Turquoise #2FD No favicon or <NOFRAMES> <INS>.PNG or.jpg What are the permissions on the file mine.html after the command chmod 604 mine.html (use rwxrwxrwx form)? If the permissions on mine.html are currently r--r-x---, what are the permissions after the command chmod a+x,go+r mine.html? What pattern do I use in the chmod mine.html command to add write permission to user and group, but deny it from others? What is the name of the actual resource file returned from http://elsrv3.cs.umass.edu/~verts/? What is the name of the actual resource file returned from http://elsrv3.cs.umass.edu/~verts/frog/? What is the name of the actual resource file returned from http://elsrv3.cs.umass.edu/~verts/frog/glop.gif? What UNIX folder is used to store xyz.html in the following URL? http://elsrv3.cs.umass.edu/~verts/xyz.html I log in to my UNIX account via PuTTY/ssh, and type the command emacs index.html Will the editor screen show the file or be blank? I log in to my UNIX account and want to create a folder called public_html. What command will I type? Do I need to create the public_html folder more than once? I change my UNIX password through PuTTY/ssh. When I log in to the same account with WinSCP/Fugu, do I use the old password or the new? I want to create a color where the red value is 29, the green value is 226, and the blue value is 235. What is the HTML code for this? Approximately what visible color is described by the color definition in the previous problem? What is the short hex version of the color #22FFDD? Is the color Cornsilk browser safe? Cornsilk is #FFF8DC What is the special name for the tiny graphic images that can appear in the title bar or tabs for a Web page? What do I type in to encode the Euro ( ) symbol into a Web page? What HTML tag is used to activate HTML code when frames are not supported by a browser? What HTML tag is recommended instead of the deprecated <U> tag? I have a.bmp of a photograph of a natural scene. What file format(s) should I convert it to in order to use it in my Web page? Page 1 of 5

<2> 20 Points What HTML code is written out by the following JavaScript fragment? (The fragment is located somewhere between <BODY> and </BODY>.) <SCRIPT TYPE="text/javascript"> <!-- document.writeln ("<TABLE BORDER>") N = 1 ; while (N <= 3) { document.writeln ("") ; document.writeln ("<TD>", N, "</TD>") ; document.writeln ("<TD>", N*N, "</TD>") ; document.writeln ("") ; N = N + 1 } document.writeln ("</TABLE>") --> </SCRIPT> <TABLE BORDER> <TD>1</TD> <TD>1</TD> <TD>2</TD> <TD>4</TD> <TD>3</TD> <TD>9</TD> </TABLE> <2½> 5 Points EXTRA CREDIT When the HTML from problem 2 is rendered on screen by the browser, what will it look like? Page 2 of 5

<3> 20 Points Design an HTML table to look like the diagram to the right. The News link is to www.cnn.com, and the Weather link is to www.weather.com. <TABLE BORDER> <TD COLSPAN="2"> <A HREF="http://www.cnn.com"> News </A> </TD> <TD ROWSPAN="2"> 2013</TD> <TD>Verts</TD> <TD> <A HREF="http://www.weather.com/"> Weather </A> </TD> </TABLE> Page 3 of 5

<4> 20 Points The following image shows a 400 200 pixel graphic containing four objects: a circle, a rectangle, and two polygons. Complete the HTML code below to turn the image, called My Map.png, into a client-side image map, where the circle and rectangle both link to www.frog.edu, the triangle links to www.toad.edu, the 4-point polygon links to www.newt.com, and the background of the image links to www.bat.com. In the image the gray grid (normally not shown) is at a 10-pixel spacing, and all coordinates are shown. All points of interest are on 10-pixel boundaries (i.e., a point might be at coordinates <30,20>, but not at <32,18>, for example). <IMG SRC="My%20Map.png" USEMAP="#WhateverMyMapNameIs"> <MAP NAME="WhateverMyMapNameIs"> </MAP> <AREA SHAPE="rect" COORDS="10,10,240,80" HREF="http://www.frog.edu/"> <AREA SHAPE="circle" COORDS="100,100,40" HREF="http://www.frog.edu/"> <AREA SHAPE="poly" COORDS="180,100,130,180,230,180,180,100" HREF="http://www.toad.edu/"> <AREA SHAPE="poly" COORDS="200,100,250,180,310,180,360,100,200,100" HREF="http://www.newt.com/"> <AREA SHAPE="default" HREF="http://www.bat.com/"> Page 4 of 5

<5> 20 Points Fill in the Web page code below as follows: 1. In the <STYLE> </STYLE> block, define all H1 headings to be colored PowderBlue and centered, and all HR tags to be 75% of the current browser width. 2. In the <SCRIPT> </SCRIPT> block, write the JavaScript code to compute the square root of 2 and write out the answer inside its own H1 heading. 3. In the Links section, write the HTML code for a hypertext link to www.cs.umass.edu with the clickable link an image called Computer.png. 4. In the last H1 heading, override the color style to make this one tag green instead of the default value, and fill in the blank with the code for the copyright symbol. <HTML> <HEAD> <TITLE>My Web Page</TITLE> <STYLE TYPE="text/stylesheet"> </STYLE> </HEAD> H1 {color:powderblue ; text-align:center} HR {width:75%} <BODY> <H1>Welcome!</H1> <SCRIPT TYPE="text/javascript"> <!-- May be document.writeln ("<H1>") ; combined into document.writeln (Math.sqrt(2)) ; one statement document.writeln ("</H1>") ; --> </SCRIPT> <H1>Links</H1> <A HREF="http://www.cs.umass.edu/"> <IMG SRC="Computer.png"> </A> <H1 STYLE="color:green" >Copyright 2013</H1> </BODY> or </HTML> Page 5 of 5