CS1150 (Spring 2013): Midterm 1
Variables and Expressions
- (25 points) What is the difference between a class and an object?
Why/how is Object-oriented programming helpful/useful? Give a real-world example
when you might make use of OOP. What is encapsulation?
- What are the three different types of loops and how do they differ? What is an
array and how are arrays and loops well-suited for each other?
- What are scope and state? What is the difference between global state and
instance state? How do local scope and class scope differ and what do visibility
modifiers (public, private) do to affect this (can they change both local and class variables to
be more or less visible or do they only affect one or the other)?
Hand in paper copy at the beginning of class on the day of the in-class exam.