exam3C-2006-Summer-typosFixed - CS 1322 Test 3 Summer July...

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

View Full Document Right Arrow Icon
CS 1322 Test 3 Summer July 21, 2006 Name: (Print very clearly.) GT Prism Emal (Print very clearly; prism email one, not an alias): TA and Section (Catie, Rita, Dan, Jon): 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 exceptions 20 2 true/false 20 3 polymorphism 20 4 exception handling 20 5 recursion 10 6 recursion 10 EC extra credit 6 TOTAL 100 (106) 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!)
Background image of page 1

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

View Full DocumentRight Arrow Icon
CS 1322 Test 3 Summer July 21, 2006 1. exceptions [ 20 pts] You are given the following class. Answer the questions that follow it. import java.io.IOException; public class ExceptionTrouble { public static void main(String args []) { ExceptionTrouble thisProgram = new ExceptionTrouble(); System.out.println(thisProgram.weird()); } public String weird() { try { System.out.println("one"); meth1(); System.out.println("two"); return "seven"; } catch (IOException io) { System.out.println("three"); return "eight"; } catch (Exception e) { System.out.println("four"); return "nine"; } finally { System.out.println("five");
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/23/2011 for the course COMPUTER S 1331 taught by Professor Sweat,monica during the Fall '07 term at Georgia Institute of Technology.

Page1 / 7

exam3C-2006-Summer-typosFixed - CS 1322 Test 3 Summer July...

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