DELFT UNIVERSITY OF TECHNOLOGY Faculty of Electrical Engineering, Mathematics and Computer Science
CSE1100 Object-Oriented Programming (computer exam)
Mock exam week 1.6, 2 hours (2:00)
Created by A. Zaidman and F. Mulder
STEP 1: Log into the computer with your personal netID/password combination.
STEP 2: Start up Eclipse (this might take a few minutes) → STEP 3.
STEP 3: Carefully read the assignment for this mock exam.
You can make use of the following during this exam:
? One book on Java, e.g., Java in Two Semesters (Charatan & Kans) or Introduction to Java Programming and Data Structures (Lang).
? The slides are available in PDF format via Brightspace
? The Java API document (javadoc) is available through a link from Brightspace
This exam contains 1 assignment (10 points) (total exam: 5 pages).
HINT 1: Read the entire assignment and only then start implementing
HINT 2: Copy the file trains.txt from Brightspace into your Eclipse project folder. Put it in the root of your project (so not /src).
HINT 3: Look at the last page to get an overview of how your score is built up for this exam. We will not score this mock exam for you, but this overview provides perspective on how well you are doing.
HINT 4: It might be that JUnit 4.0 (or 5.0) is not in your Eclipse build path by default. If you add a unit test case through the “New” JUnit wizard, then Eclipse will notice that JUnit is not in the build path and Eclipse will direct you to the build path menu. Go to the “Libraries” tab, click “Add Library” and Eclipse will suggest to add JUnit.
HINT 5: At the end of the exam, you can take your solution with you (e.g., email it to yourself)
HINT 6: While Google is available to you during this mock exam, it will not be during the actual exam… (so if you want to experience “the real deal”, don’t use any internet!)