100 likes | 120 Views
Announcement for the upcoming exam in the programming course, including information on the exam format, topics covered, and review questions. Get prepared and ace the exam!
E N D
Exam 2 Wed 5/2 5:30-7:30 GEO 2.216 TRIPS Announcement Monday 4/30 5-6pm ACES 2.302 Wednesday: No class Friday: Exams returned Course Review: Exam format What have we learned? Topics you understand Things you can do Question/Answer Questions? A lot! Announcements & Review Lecture 37: Course Review
Basic Exam Format Open book, open notes - No computers or cell phones - I suggest you print out your programming assignment solutions and my in class examples 5 questions: • 4 short answer • two dimensional arrays • Boyer Moore searching • GUI • I/O and ArrayList • Inheritance, Abstract Classes, & Interfaces Lecture 37: Course Review
Topics you understand • for loops • while loops • I/O • conditionals • classes, objects, methods, instance variables • inheritance, abstract classes, & interfaces • arrays • Image manipulation • GUI Lecture 37: Course Review
Things you can do • Allocate: base types, objects, arrays, arrays of objects, etc. • Copy versus Deep Copy • Pick the appropriate one: • for or while • Print & Read input from • stdin and from a file • Program with multi demensional arrays • Program with ArrayLists • Pick GUI elements • Solve simple problems such as those in the discussion section Lecture 37: Course Review
Review Questions • What is object-oriented programming? • What is a base type? What is an object? What’s the difference? • What is a class? • When should you use a for loop? • When should you use a while loop? • What does public/private/protected mean? Lecture 37: Course Review
Review Questions • What is the purpose of inheritance? • What is the purpose of an interface? • What is the purpose of an abstract class? • What GUI elements might you need to implement a nice user interface for the Set game? • What instances and methods would you need to implement the Checkers game? Lecture 37: Course Review
Review Questions • How many references of type Items does the following create? Items[] myGrocery = new Items[100]; • How many objects of type Items does the following create? Items[] myGrocery = new Items[100]; Lecture 37: Course Review
Review Questions • What does call-by-value mean? • What does call-by-reference mean? • Which does Java implement? Lecture 37: Course Review
Review Questions • How does Java change objects even though it uses call-by-value? • What is a collection? What is an iterator? • Why use ArrayList<Type> instead of <Type>[]? Lecture 37: Course Review
More Questions? Lecture 37: Course Review