CSE 11 – Fall 2020- Final Exam Collaborative Review Sheet Exam format
Release time: 11:30 am on Saturday 12/12/2020 Due time: 11:30 am on Monday 12/14/2020
Length: 3 hours and 10 minutes from the time you start the exam. We offer people 10 extra minutes to count for potential internet issues.
The final exam is open book, open notes, open compiler, and open internet. We want to stress that the open internet policy allows you to search for java doc only. No other websites are allowed. No posting on any online forum or social media other than our own piazza site. We do not answer any questions during the entire exam period. If there are any ambiguities or typoes in the exam, we will take care of that when we grade the exam.
Our piazza site will be set to private post only during the midterm period.
You should always select the best answer. For example, if you are supposed to select a single choice for a question and there are multiple correct choices and there is a choice stating that multiple choices are correct, then you should select the choice that states multiple given choices are correct.
The sample final exams are from 8B. Certain topics including multi-threading, GUI, or vim related questions are not covered in 11.
CSE 11 topics
The midterm is meant to be comprehensive that may reflect materials covered in PAs, lectures, discussion, and reading materials. Everything that we have covered in classes may appear in the final exam.
●
●
V ariables
○ primitive types (boolean, char, short, int, long, float, double)
■ How values are stored in primitive types
■ pre and post increment (decrement)
■ integer division
■ casting between primitive types
○ reference types
■ String, StringBuilder, etc
■ What is stored in reference type variables
String type
CSE 11 – Fall 2020- Final Exam Collaborative Review Sheet
○ basic string manipulation through string member functions (.length(), charAt(), etc)
○ String concatenation using +
○ StringBuilder operations
● Keyboard input and console output
● Use System.out.print and System.out.println to construct outputs
● Basic flow control
○ if…else and its variations (if…else if…else)
■ Use Scanner to read in data and allows EOF as input terminator
■ short circuiting
○ switch statements
○ while and do while loops
○ for loops
○ break and continue statements
● Memory models and Methods
○ What is in the stack and what is in the heap
○ Methods in Java
■ parameters and arguments
■ return value
■ How to write basic methods
● Arrays
○ 1D array and how to manipulate 1D arrays
○ 2D array basic operation (indexing and nested for loops)
○ ArrayList operations
○ Arrays class in Java
● Class and objects
○ instance variables and instance methods
○ static variables and static methods
○ constructors
○ getters and setters
○ this keyword
● File I/O
○ read from a file using Scanner
○ write to a file using PrintWriter
● Inheritance
○ is a relationship between super and sub classes
○ abstract class as parent classes (extends keyword)
○ interface (implements keywords)
● Polymorphism
○ When polymorphism happens
○ compile time overloading vs run time overriding
○ Casting
● Basic Java Collections
○ use of HashMap
CSE 11 – Fall 2020- Final Exam Collaborative Review Sheet
○ use of HashSet ● Exception handling
○ Exception hierarchy
○ try … catch … finally clause in Java
———————————–Collaboration starts below—————————————-
hi