EXAM 1, SPRING 2009-2010 ANSWER KEY

Similar documents
Welcome to the HVAC Sales Academy Learning Management System (LMS) Walkthrough:

Introduction to the course, Eclipse and Python

GENERAL TYPING EXAMINATION

Network Security Assignments Winter Term 2013

A Python Tour: Just a Brief Introduction CS 303e: Elements of Computers and Programming

CS177 MIDTERM 2 PRACTICE EXAM SOLUTION. Name: Student ID:

Big Data and Scripting

COMMUN 101: INTRODUCTION TO INTERPERSONAL COMMUNICATION

Teacher Development Workshop ACCOUNTING GRADE 11

CSCE 110 Programming I Basics of Python: Variables, Expressions, and Input/Output

After completing SI- 539, students will have a working personal portfolio website in production.

CIS 89A: Web Page Development - Syllabus

ROCKLAND COMMUNITY COLLEGE NURSING REGISTRATION, PROGRESSION, GRADING AND TESTING POLICIES FOR CORE NURSING PROCESS COURSES

PC Applications IT102 estart Spring 2014

Arizona Constitution Online

Talent Solutions. LinkedIn Certified Professional. Program Handbook. LinkedIn Certified Professional Recruiter

COURSE SYLLABUS. Department of Social Sciences

Welcome to QMB 3200 Economic and Business Statistics - Online CRN Spring 2011* Elias T Kirche, PhD

Business Management and Supervision (MST) Accounting

SCHEDULE OF COMMISSIONS MEDICARE SUPPLEMENT

LOS ANGELES MISSION COLLEGE PSY. 1- GENERAL PSYCHOLOGY 1

CSIS 202: Introduction to Computer Science Spring term Midterm Exam

FCHD 3350: Online Family Finance Class

FCHD 3350: Online Family Finance Class

Computation and Economics - Spring 2012 Assignment #3: File Sharing

FCHD 3350: Online Family Finance Class

BUAD : Corporate Finance - Spring

SI 539, Winter 2014 Complex Web Design

Prerequisite Math 115 with a grade of C or better, or appropriate skill level demonstrated through the Math assessment process, or by permit.

To create a histogram, you must organize the data in two columns on the worksheet. These columns must contain the following data:

Course Syllabus. PSY/SPED 535 Applied Behavior Analysis. Fall Dr. Kelly M. Carrero, BCBA

Wrestling with Python Unit testing. Warren Viant

Solutions: Problems for Chapter 3. Solutions: Problems for Chapter 3

CS Client Side Web Development, Hybrid (crn # 10332) Fall 2015 Northeastern Illinois University > College of Arts & Sciences > Syllabus

Geometry Chapter 2 Study Guide

Welcome to Introduction to programming in Python

UNIVERSITY OF NEW ORLEANS Department of Economics and Finance Ph.D. in Financial Economics GRADUATE STUDENT HANDBOOK. Curriculum

Summary Box Key Product Information for our Savings Account(s)

Big Data and Scripting. (lecture, computer science, bachelor/master/phd)

Computers. An Introduction to Programming with Python. Programming Languages. Programs and Programming. CCHSG Visit June Dr.-Ing.

Answers to Sample Questions on Network Layer

Midterm Exam #2 November 10, 1999 CS162 Operating Systems

Overview of the Course

An Analysis of how Proctoring Exams in Online Mathematics Offerings Affects Student Learning and Course Integrity

MKT 403: Electronic Marketing, Class 38724

02-201: Programming for Scientists

2/1/2010. Background Why Python? Getting Our Feet Wet Comparing Python to Java Resources (Including a free textbook!) Hathaway Brown School

PHIL 1103 LOGIC AND CRITICAL THINKING (Online w/on-campus Tests) Syllabus and Schedule

Capital Protected Double Asset Bond

Final Exam Practice Set and Solutions

UM Online Practice Programming Contest September 20, 2011

Instructor Contact Information Class Location & Hours. Phone:

Department of Electrical and Computer Engineering EEL-4920 Senior Design I

Introduction to Python

Today s Topics... Intro to Computer Science (cont.) Python exercise. Reading Assignment. Ch 1: 1.5 (through 1.5.2) Lecture Notes CPSC 121 (Fall 2011)

JACKSON COMMUNITY COLLEGE ASSOCIATE DEGREE NURSING NUR 121 PHARMACOLOGY SYLLABUS

PCB 3043: Ecology Spring 2012, MMC

ACCT 3103 Intermediate Accounting I Oklahoma State University Spring 2015

Personal Training. Chapter 27. FrontDesk v PT Specific Program Options. Contract Templates. Set Member s Secure Check In Password

CS 1133, LAB 2: FUNCTIONS AND TESTING

BIRKBECK, UNIVERSITY OF LONDON Department of Earth and Planetary Sciences

Reliability Applications (Independence and Bayes Rule)

Introduction to Organizational Behavior (Business 260)

Introduction to Programming II Winter, 2014 Assignment 2

Using D2L Brightspace for the First Time

Certificate in Building Information Modelling (BIM) - Project Management

NURS 529 Nursing Informatics

Hagerstown Community College OFFICIAL COURSE SYLLABUS DOCUMENT. COURSE: MGT 203 Finance SEMESTER/YEAR: Spring 2014

Homework 8 Solutions

USING MULTIPLE ONLINE SECURITY MEASURES TO DELIVER SECURE COURSE EXAMS TO DISTANCE EDUCATION STUDENTS

Microeconomic Principles

Human Resource Management MGT 3204

CSEE 4119: Computer Networks, Spring 2014

Sage Accounting A Step by Step Guide

DSCI 3710 Syllabus: Spring 2015

FCHD 3350: Online Family Finance Class Fall Credit Hours INSTRUCTOR: Alena Johnson

PRINCIPLES OF BUSINESS MANAGEMENT AND ADMINISTRATION EVENT PARTICIPANT INSTRUCTIONS

IVY TECH COMMUNITY COLLEGE OF INDIANA REGION 14 BLOOMINGTON COURSE SYLLABUS

Revised October 2013

A guide to your. University Library.

IRIS Payroll Business. Getting Started Guide. The Payroll Cycle

Secure Computer Systems

Test of English for International Communication (TOEIC) Tests Rate Card

The Forensic Recovery of Instant Messages from. MSN Messenger and Windows Live Messenger

Point-of-Sale Updates Training Guide. Product Name: Point-of-Sale Release Version: 6.0

Transcription:

CSSE 120 INTRODUCTION TO SOFTWARE DEVELOPMENT This exam contains two parts. EXAM 1, SPRING 2009-2010 ANSWER KEY The first part is to be done on paper without using your computer. o This part is closed-everything except you may use a cheat sheet that is one 8.5 by 11 sheet of paper (both sides, or two sheets each using only one side). o Complete this first part and turn it in before beginning the second part. The second part of the exam is to be done on your computer. o This part is open-everything except that you may not communicate with anyone except an exam proctor. o So, you can use Angel, the course web site, any projects on your computer, the entire World Wide Web, and search engines like Google, among other sources. o If you have questions on the on-the-computer part, you may ask an exam proctor. In particular, we don t expect you to be experts on understanding error messages yet, so if you get an error message, first try to understand it, but then ask for help as needed. o Obtain the on-the-computer part of this exam by checking out the Exam1-201030 project from your SVN repository. It has 5 modules. Do the TODO s in each. Turn in your work by committing your project. Time limit: You have a total of 2 hours to complete the entire exam, plus an hour of bonus time, so a total of up to 3 hours. Don t spend more than 30 minutes on the paper-and-pencil part. Paper-and-pencil score: Problem Points Score P1 3 P2 5 P3 5 P4 6 P5 2 P6 3 Total 24 Totals Points Score paper 24 computer 96 Total 120 On-the-computer score: Problem Points Score Explanation of points deducted P1 10 P2 10 P3 10 P4 10 P5a 10 P5b 10 P5c 10 P5d 10 P5e 8 P5f 8 Total 96 Your total as a percent (of 100): Page 1 of 11

PROBLEMS Name: 1. () What is the value of each of the following expressions? 11 % 3 Value: 2 11 / 3 Value: 3 float(11 / 3) Value: 3.0 2. (5 points: 1, 1 and 3, respectively) What is the output of each of the following code fragments? x = 3 x *= 2 print x + x Output: 12 def fun(x): a = 2 return a + x Output: 8, 10 a = 8 b = fun(a) print a, b def g(a, b): print a, "of", b def f(n): for i in range(1, n + 1): g(i, n) return n ** 2, n ** 3 x, y = f(3) print x + y Output: 1 of 3 2 of 3 3 of 3 36 Page 2 of 11

3. (5 points) What gets printed by the following expressions: range(2, 11, 3) [2, 5, 8] On these problems, OK if they have the right idea. E.g., OK if omitted []s or outermost quotes, and any form of quotes is OK. """ hello """ hello "one" + "two" onetwo x = [10, 20, 30, 40, 50] print x[2] 30 y = "forget me not" print y[2] r 4. (6 points) For each of the following lists, write a Python range expression that produces the list: [1, 2, 3, 4, 5] range(1, 6) On these problems, half credit for any single error, no credit if two or more errors. [4, 6, 8, 10, 12] range(4, 13, 2) [5, 2, -1, -4, -7] range(5, -8, -3) Page 3 of 11

5. () What gets printed by the following expressions: quoteslist = ["Immature poets imitate; mature poets steal.", "by T.S. Eliot"] print quoteslist[1] by T.S. Eliot On these problems, OK if quotes are omitted. print quoteslist[1][1] y 6. () What gets printed by the following code: circlea = Circle(Point(25, 25), 10) circleb = circlea circlea.move(15, 0) print circlea.getcenter().getx() print circleb.getcenter().getx() Output: 40 40 When you have completed this part of the exam, turn it in to the exam proctor so you can use your computer for the next (on-the-computer) part of the exam. Begin the on-the-computer part by checking out the project called Exam1-201030 in your SVN repository. Do the five problems therein, each of which has TODO s that specify what to do. Commit your work when you are done. Recall the instructions on the computer part: Open everything EXCEPT that you may NOT communicate with anyone except the exam proctors. Page 4 of 11

4 points Page 5 of 11

Page 6 of 11

Page 7 of 11

2 point 2 point Page 8 of 11

Each TODO (other than the student s name) is 8 points: 4 points if there is a single error 0 points if there is more than one error, or if the answer is just way off Judge correctness by running the program. It is OK if style is poor or they solve the problem in an unusual way (but consider making a comment to them on the cover page). For any points deducted, mark the reason on the cover page. Page 9 of 11

Page 10 of 11

Page 11 of 11