CMSC132 Midterm #1
Date: Monday, Oct 1, 2007
Time/Location: Your exam will
take place in lecture (NOT IN LAB).
Exam Structure
- The exam will have a duration of 50 minutes.
- The exam will be closed book/closed notebooks. No calculators are
allowed. (We recommend using a pencil and eraser, rather than a
pen.)
- Format:
- Short answer questions: This includes for example,
multiple choice, True/False and fill-in-the-blank type
questions.
- Code analysis questions: We will give a short segment of code
and you may be asked to identify syntax and logical errors, generate
code output, etc.
- Code Writing: Write a program/code snippets to solve a
few given problems. (You should be prepared to give a complete
program, including full class heading, import, package statement,
and main methods, but we may also ask you to provide just a single
method or a code fragment.)
Topics
The exam will include all the material covered in discussion session (lab),
lecture, quizzes, and projects including the following topics:
- Object-Oriented Programming Principles (Abstraction, Encapsulation,
etc.)
- Generics & Generic Programming (be prepared to define generic classes)
- Program Correctness
- Algorithm Complexity
- Linear Data Structures (linked lists, stacks, queues, etc.)
- Sets, Maps
- Hashing
- Specific Java Topics
- Definition and use of classes in inheritance relationships
- Defiinition and Use of Java Interfaces
- ArrayList
- Iterators
- Comparable Interface
- Comparator Classes
- "this"
- "super"
- Collections Class Methods (those used for the projects)
- Enhanced For Loop
- Enumerated Types
- Autoboxing and Unboxing
- Exceptions Fundamentals
- Visibility Modifiers
- Method Overloading/Overriding
- Packages
- Inner Classes
- I/O Streams
- Program Testing - JUnit testing
The exam will NOT cover the following topics::
- Eclipse, Trees, Recursion, Heaps, Compression & Huffman Trees
Practice Material
-
Practice Questions
-
Previous Exams
-
Notes
- Material covered by old exams may not be the same material
we are covering this semester
- We recommend you complete the following midterms in the
time allocated
- Do not read a question and assume you know how to solve
it; try actually solve the problem.
Web Accessibility