Midterm. You have two and a half hours to complete this exam (but you shouldn t need it).

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

CS244a: An Introduction to Computer Networks

What You Need to Know When Buying a New Computer JackaboutComputers.com

Creating Web Pages. Getting Started

CSCI 1100L: Topics in Computing Spring 2018 Web Page Project 50 points

Chapter Two Bonus Lesson: JavaDoc

CS 31: Intro to Systems Storage and Memory. Kevin Webb Swarthmore College March 17, 2015

Project 1 Balanced binary

Using your Siemens S55 with the Logitech wireless hub

Properties and Definitions

COS 109 Final Exam, Fall 2016

Lab 1: Setup 12:00 PM, Sep 10, 2017

ORB Education Quality Teaching Resources

Basic Internet Skills

SPEED UP YOUR CODING PROCESS HTML INSIGHTS YOU DIDN T KNOW ABOUT. 1

Computer Networks - Midterm

CSC-105 Exam #1 October 10, 2013

Analyzing PDFs with Citavi 6

How to Make a Book Interior File

Midterm II December 4 th, 2006 CS162: Operating Systems and Systems Programming

Computer Networks - Midterm

Exam Review Lectures. Tim Capes. November 29, 2011

[Video] and so on... Problems that require a function definition can be phrased as a word problem such as the following:

Session 1: Physical and Web Infrastructure

Homework Assignment #1 Due 9/19 at 5:00pm EE122 Fall 2011

Basic Reliable Transport Protocols

DATA STORAGE. Chapter One. Chapter Summary. Comments

Introduction to computers

1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document.

1 GSW Bridging and Switching

Intro. Scheme Basics. scm> 5 5. scm>

Midterm Exam Solutions and Grading Guidelines March 3, 1999 CS162 Operating Systems

The World Wide Web is a technology beast. If you have read this book s

Imagery International website manual

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

Final Examination CS 111, Fall 2016 UCLA. Name:

CS 103, Fall 2008 Midterm 1 Prof. Nakayama

Site Audit Boeing

UNIVERSITY REGULATIONS

BACK TO BASICS PART I. Hardware & it s Associated Terminology

CS Final Exam. Stanford University Computer Science Department. June 5, 2012 !!!!! SKIP 15 POINTS WORTH OF QUESTIONS.!!!!!

HTML. LBSC 690: Jordan Boyd-Graber. October 1, LBSC 690: Jordan Boyd-Graber () HTML October 1, / 29

AOS Lab 4 HTML, CSS and Your Webpage

Divisibility Rules and Their Explanations

Using Dreamweaver CS6

Advanced Computer Architecture

Introduction, Notepad++, File Structure, 9 Tags, Hyperlinks 1

RAGE WebDesign Quick Start 1 of 18. Welcome To RAGE WebDesign

VERSION Lab 3: Link Layer

Page design and working with frames

A Quick-Reference Guide. To access reddot:

TDTS06 Computer Networks Final Exam: 14:00-18:00, Friday, November 1, 2013

Department of Electrical Engineering and Computer Sciences Spring 2001 Instructor: Dan Garcia CS 3 Midterm #2. Personal Information

Site Owners: Cascade Basics. May 2017

Full Website Audit. Conducted by Mathew McCorry. Digimush.co.uk

WHITE PAPER. Attract shoppers in less than 10 seconds or lose them.

Essay & Assignment Preparation using MindGenius

JavaScript Assignment. parta: slideshow part B: add n subtract. COGS3 Introduction to Computing Assignment

ECEN Final Exam Fall Instructor: Srinivas Shakkottai

This assignment is worth 100 points and is due on the crashwhite.polytechnic.org server at 23:59:59 on the date given in class.

Rethinking Usability for Responsive Web Design

FIT 100 LAB Activity 3: Constructing HTML Documents

Site Audit SpaceX

Getting to JATS and BITS. Presented by Bruce D. Rosenblum CEO Inera Incorporated

Midterm 1 Review Sheet CSS 305 Sp 06

Header. Article. Footer

Midterm Exam, October 24th, 2000 Tuesday, October 24th, Human-Computer Interaction IT 113, 2 credits First trimester, both modules 2000/2001

Authoring World Wide Web Pages with Dreamweaver

Improved Web Development using HTML-Kit

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

HTML is a mark-up language, in that it specifies the roles the different parts of the document are to play.

USING DRUPAL. Hampshire College Website Editors Guide

Publishing is no longer about just print. Documents exist in electronic

Microsoft Expression Web Quickstart Guide

CMT111-01/M1: HTML & Dreamweaver. Creating an HTML Document

Bits and Bytes. Here is a sort of glossary of computer buzzwords you will encounter in computer use:

Using Tiny ebook Reader Online

DIRECTV Message Board

Part A: Getting started 1. Open the <oxygen/> editor (with a blue icon, not the author mode with a red icon).

Project 2: After Image

CS 111. Operating Systems Peter Reiher

What is version control? (discuss) Who has used version control? Favorite VCS? Uses of version control (read)

Creating an HTML file (Mac)

IMPORTANT: Circle the last two letters of your class account:

Search Engine Optimization and Placement:

CS244a: An Introduction to Computer Networks

Chapter 2 Creating and Editing a Web Page

GIRLS SECONDARY, L-IMRIEĦEL HALF YEARLY EXAMINATIONS 2015/2016

Comm 244 Week 3. Navigation. Navigation. Websites need a formalized system of links to allow users to navigate the site

PLEASE READ CAREFULLY BEFORE YOU START

:

avenue.quark TUTORIAL

Using Dreamweaver CC. 3 Basic Page Editing. Planning. Viewing Different Design Styles

Chapter 25. Build Creations with Your Photos

c122jan2714.notebook January 27, 2014

FCKEditor v1.0 Basic Formatting Create Links Insert Tables

CS244 Advanced Topics in Computer Networks Midterm Exam Monday, May 2, 2016 OPEN BOOK, OPEN NOTES, INTERNET OFF

Part II Composition of Functions

Seema Sirpal Delhi University Computer Centre

IMPORTANT WORDS AND WHAT THEY MEAN

Transcription:

Midterm LBSC 690 October 29, 2012 Name: }{{} by writing my name I swear by the honor code Read all of the following information before starting the exam: Show all work, clearly and in order, if you want to get full credit. I reserve the right to take off points if I cannot see how you arrived at your answer (even if your final answer is correct). You have two and a half hours to complete this exam (but you shouldn t need it). This exam is open book and open notes, but you cannot use a computer. You may use a calculator, but you shouldn t need to. Justify your answers algebraically whenever possible to ensure full credit. Be sure to have units for all answers that call for them. Circle or otherwise indicate your final answers. Please keep your written answers brief; be clear and to the point. I will take points off for incorrect or irrelevant statements. This test has six problems, but you only need to complete four questions. If you answer more than four questions, I will grade the first four completed questions. (If you change your mind on which questions you want graded, be sure to clearly identify which question shouldn t be graded.) Each question is worth ten points. Good luck! 1

1. You re in charge of providing students with tablets filled with 750 ebooks. The tablets don t have much memory only 200MB. You thought that you were on the ball, double checking that the books that would go on the device would actually fit. While the files you checked do actually fit (they only take up 150MB), you checked plain ASCII files (no markup, just paragraphs separated by line breaks). What s actually going on the devices are EPUB files. Just to refresh your memory, EPUB books have: An XHTML file for every chapter (or whatever the atomic unit of the book is) Two XML files (a NCX file and an OPF file) with metadata and a linear order of the book The EPUB vendor hasn t given you the books yet, but they assure you that all of the XML files with the order and metadata are under 10KB per book. You re still worried that the books won t fit; let s see if they do. 1 (a) (3 points) How much in total do the extra XML metadata files take up for all the books in MB? ANSWER: 10KB book 1MB 1KB 750books = 7.5MB (b) (5 points) How much more would an XHTML version of the book take up than the ASCII version? Make reasonable assumptions and explain why you made them. Give your answer as a conversion ratio (XHTML over ASCII). [Hint: this should be a unitless number greater than one (XHTML takes up more space) but probably less than two (XHTML doesn t double the size)]. ANSWER: We need an XHTML page for every chapter. That XHTML will have a header and additional markup in the text. Let x be the number of chapters, let H be the size of the header, let y be the number of paragraphs per chapter, and let P be the amount of markup added for each paragraph. A reasonable assumption would be H =.1K and P =.01KB for books with x = 100 chapters and y = 1000 paragraphs per chapter (erring on the side of caution), that gives a total of 20KB per book. Given that the average book is about 200KB, that s a ratio of 1.1. (c) (2 points) Given your above estimate, would the books fit? ANSWER: Given the answers to the previous parts, that s an additional 7.5 MB and 15MB, which is still less than 200 MB. 1 EPUB files are typically compressed. To make life easier on you, ignore all compression. If you don t know what that is, that s totally fine (we haven t covered it yet). 2

2. Someone has been downloading big files from your library s web server, slowing down your Internet connection. To fix the problem, you look at the server s logs, but it s storing the IP address as a hexadecimal number. For instance, it would store 131.215.239.141 as 83D7EF8D. The computer that s doing the downloaded is recorded as 12091645; how would you write that in the conventional way of writing IP4 addresses? Make sure to explain how you got your answer. ANSWER: Every pair of hex digits corresponds to an octet. 12 1 16 + 2 = 18 09 0 16 + 9 = 9 16 1 16 + 6 = 22 45 4 16 + 2 = 170 So the IP address is 18.9.22.170. 3

3. Consider the vertical scroll bar of a web browser or word processor. For each of the interface principles below, give one way that the scrollbar uses the principle for effective design. (a) (2.5 points) Affordance ANSWER: Affordance means that the appearance of the interface should make the element s function obvious. Buttons are for pushing and live on either end of the scroll bar. (b) (2.5 points) Constraints ANSWER: The scroll bar can only move up and down, not left or right. When you ve reached the end of the document, you can t move any further. (c) (2.5 points) Mapping ANSWER: The relative position of the scroll par matches the position of the document. As you move through the document, the bar moves closer the bottom of the scroll bar. (d) (2.5 points) Causality ANSWER: Any motion is the scroll bar, it is immediately reflected in the document. 4

4. In previous offerings of this class, I was able to talk about RAM and hard drives as two different things. Now things have gotten all confusing with these newfangled solid state drives (SSD). (a) (3 points) Here s a picture of one example of a SSD. I ve circled three parts of it. What are they and what do they do? (Think about other pieces of the computer that we passed around in class.) A C B ANSWER: There are RAM chips (A) attached to the main board. The heatsink (B) radiates off excess heat from the main board, which connects to the rest of the computer through the connector (C). (b) (3 points) This particular SSD needs to have a battery (not visible). Why is that? Do magnetic hard drives have a battery? Does RAM? ANSWER: Commodity RAM is volatile, which is why this SSD needs a battery to hold data long term when the computer is turned off. Magnetic hard drives do not have this, as they are not volatile. RAM typically does not need a battery because it s designed to forget its contents when the computer is powered down. (c) (4 points) I have a task that requires reading 10 9 sectors from my drive in a random order. How long would it take to do that with a latency of 0.05ms? ANSWER: 10 9 sectors 0.05ms sector = 5 109 10 5 s = 50000s = 14hours 5

5. You have files laid out as follows: public_html index.html people images bob index.html logo.png index.html main.css (a) (2.5 points) Every page includes the file main.css; what must be in that CSS file so that links: are red, aren t underlined by default, but are underlined when the user hovers over them? a { text d e c o r a t i o n : none ; c o l o r :# f f 0 0 0 0 ; } a : hover { text d e c o r a t i o n : u n d e r l i n e ; } (b) (2.5 points) What HTML would you need in the file index.html to use the CSS file? <l i n k r e l = s t y l e s h e e t type= t e x t / c s s h r e f= main. c s s > (c) (2.5 points) What HTML would you need to display the image logo.png in the file index.html in the root directory? <img s r c= images / logo. png / > (d) (2.5 points) What HTML would you need to display the image logo.png in the file index.html in Bob s directory and make it link to the file index.html in the root directory? <a h r e f =.. /.. / index. html ><img s r c =.. /.. / images / logo. png / ></a> 6

6. One of the most contentious recent issues in Internet policy is net neutrality, which basically says that folks on the Internet should treat all packets as equal. For example, Comcast might have a streaming movie service that competes with Netflix. It might slow down Netflix s packets or speed up its own packets to make its offering more attractive. (a) (4 points) How does Comcast have the ability to do this? Explain in detail what aspects of IP packets allows them to do this (Hint: Netflix uses port 80 for its video the same as for HTTP, so it s not as simple as just looking at the port number). ANSWER: Every IP packet has both a from field and a to field that gives the IP address of the server and and the requester. If Comcast has a list of a bunch of Netflix servers, they could do something malicious like holding Netflix packets with a delay or just give priority to their own Netflix-like services. (b) (3 points) Let s say that Comcast throttles Netflix to 1.0 Mbs. What is the largest movie file size that Netflix can stream in realtime? (As usual, make reasonable assumptions.) ANSWER: In two hours (a reasonable movie length), you d get: 1 Mb 2 60 60s s 1 1MB 8Mb = 900MB (c) (3 points) What bandwidth would Comcast need to stream DVD-quality movies? ANSWER: A DVD hold about 4GB, and if we assume a movie lasts two hours 4GB 2hours = 32 103 Mb 2 60 60s = 4.4Mbs 7