quiz1_spring03 - 1.00 Introduction to Computers and...

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

View Full Document Right Arrow Icon
1.00 Introduction to Computers and Engineering Problem Solving Quiz 1 March 7, 2003 Name: Email Address: TA: Section: You have 90 minutes to complete this exam. For coding questions, you do not need to include comments, and you should assume that all necessary files have already been imported. Good luck. Question Points Question 1 / 14 Question 2 / 9 Question 3 / 9 Question 4 / 33 Question 5 / 35 Total / 100 1.00 Spring 2003 Quiz 1 1/8 2/28/2005
Background image of page 1

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

View Full DocumentRight Arrow Icon
(14 points) public class Quiz1 { private static int quizCount = 0; private final int pageCount; public Quiz1(int pc) { pageCount = pc; } public void printInfo() { // omitted } public static void printStats() { // omitted } public void partF() { int x = 5, y = 10; double z = (double)(x/y); System.out.println(z); } } Refer to the code above when answering the true or false questions below. Circle TRUE or FALSE for each of the following statements: A. The static data member quizCount is associated only with a specific instance of the class. TRUE FALSE B. The final data member pageCount cannot be changed after it is initialized. TRUE
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 11/29/2011 for the course CIVIL 1.00 taught by Professor Georgekocur during the Spring '05 term at MIT.

Page1 / 8

quiz1_spring03 - 1.00 Introduction to Computers and...

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