James Madison University, Spring 2019 Semester
Exam #1 logistics and preparation
About the Exam
Each exam will have two distinct parts: a written exam and a computer-based progamming exam.
In general, the written part of an exam will contain three kinds of questions: short answer (e.g., true-false, multiple choice, matching, fill in the blank), code tracing (i.e., you are given a code fragment and asked to trace its execution or explain why it will not compile), and code completion (i.e., you are asked to write small portions of a program).
In general, the computer-based programming part of an exam will require you to write code (and/or tests) that demonstrates your ability to complete substantial programming assignments completely on your own. Because of time constraints, these tasks may be smaller than a typical programming assignment. However, their nature will be the same.
The following samples will give you an idea of the structure and length of exams. Sample exams are not a study guide. In other words, they do not provide information about what you should and/or shouldn't study. Note that the answers to the sample exams will not be made available. You should avoid focusing too much attention on the specifics of these questions.
Written Exam
Sample Written Exam (coming soon)
Objectives
Students will be able to...- Recognize vocabulary/concepts from Ch 1–4.
- Declare and assign variables and constants.
- Evaluate arithmetic expressions (type and value).
- Define and invoke methods with parameters.
- Predict the output of programs with 2+ methods.
- Write methods that require I/O and arithmetic.
Logistics
This is a closed-book, closed-notes, no-calculator exam. Do not refer to any materials other than the exam itself.
Do not look at anyone else's exam. Do not talk to anyone but the instructor during the exam. Turn off all cell phones, etc.
Use the restroom and take care of personal needs before you arrive. If you need to leave during the exam, ask for permission.
Coding Exam
Sample Coding Exam (coming soon)
Objectives
Students will be able to...- Meet any objectives from HW 1–4.
- Perform integer division and modulo.
- Invoke methods from the Math class.
Logistics
You must use a Linux lab machine and log in with the student account (no password). It's strongly recommended that you practice the sample exam in the lab so there will be no surprises on Friday.
Eclipse Workspace for CS149 Exams
Extract this archive directly into /home/studentAs a reference during the exam, you may access the PDF version of Think Java. However, since searching through the textbook will take time away from the exam, you should use it only "in case of emergency".
Think Java: How to Think Like a Computer Scientist
See the PDF bookmarks for the table of contentsYou may only run the following programs: Eclipse (or other editor), a terminal, a PDF viewer, and a web browser. All windows should be arranged so that the instructor can see what you're doing.
The use of any pre-existing code (other than that provided as part of the exam), other documents/pages/sites, and/or other programs will be considered a violation of the Honor Code.
At the end of the exam, you will submit your code via Autolab. You may not use Autolab for any other purpose (e.g., looking at solutions to prior labs) during the exam.