exam3-2007-Fall - CS 1331 Test 3 Name(Print very clearly GT...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS 1331 Test 3 November 16, 2007 Name: (Print very clearly.) GT Number/username (Print very clearly; prism email one, not an alias): TA: Commenting your code on this test is not required. Other style issues such as using good variables names and indentation are required. Problem Points Possible Points Received Graded By 1 inheritance / subclass writing 20 2 polymorphism 15 3 exception handling 10 4 constructor behavior 10 5 binary search 10 6 quicksort 10 7 selection sort 15 8 recursion 10 9 BONUS 5 TOTAL 100 (105 with bonus) CELL PHONES, PAGERS, PDAS, etc. ARE NOT ALLOWED IN ANY WAY DURING THE EXAM - NOT EVEN TO PROVIDE THE TIME. TURN THEM OFF AND PUT THEM AWAY. IF YOUR PHONE RINGS, YOU WILL LOSE CREDIT ON THIS EXAM. Please remember: Any academic misconduct (including, but not limited to, the list below) could result in a 0 (zero) on the exam and/or an F grade in the course or worse. It can also go on your permanent record at GT.: • Communication with anyone other than a proctor for ANY reason in ANY language in any manner. • Sharing of ANYTHING (e.g. pencils, paper, erasers). • Writing on paper that is not given to you by a proctor. • Failure to follow directions given by the proctor. • Use of cell phones, beepers, handheld computers, calculators, during the exam. • Using books or other reference material. • Disruption of the exam setting. By taking this exam, you signify that it is your work and that you have neither given nor received inappropriate help during the taking of this exam in compliance with the Academic Honor Code of Georgia Tech. Signature: (You must sign this for your exam to be graded.) CS 1331 Test 3 Page 2 of 9 1. inheritance / subclass writing [20 pts ] public class Dog { private String name; public Dog(String name) { this.name = name; } public String toString() { return "Name:" + name; } public void groom() { System.out.println("brush and wash"); } } Write a subclass of Dog called ShowDog ....
View Full Document

{[ snackBarMessage ]}

Page1 / 9

exam3-2007-Fall - CS 1331 Test 3 Name(Print very clearly GT...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online