Final Exam Review CSE113 B.Ramamurthy 10/13/2019 B.Ramamurthy
Exam Date December 12, 2012 (12/12/12) 8-10AM 109 Knox Please bring Pencils, pens and erasers. This is a closed book exam. 10/13/2019 B.Ramamurthy
Topics Class, objects Methods, fields/data Method definition and calls Selection statement: if.. Multi-way selection: switch..statement Loop statement: while.. Loop statement: for … Assignment statement = Arrays Arithmetic operations and operator precedence: +. -, *, /, % Chapter 1-7 10/13/2019 B.Ramamurthy
Format 10 questions 10(+/-5) points each; Each question may have many subsections. 10/13/2019 B.Ramamurthy
How to study? Review class notes Power point notes posted on ublearns Read the text book chapter 1-7 Lab exercises Class work 10/13/2019 B.Ramamurthy
Sample questions Given a word problem, define a class. Example: Calculator Given a word problem, define a method. Evaluate an arithmetic expression with parentheses and applying operator precedence Given the code for a while loop determine the outcome if it is executed Given the code for a “for” loop determine the outcome if it is executed B.Ramamurthy
Sample questions (contd.) Given a data set description define an array for it and initialize it Use a for loop to process an array data Given a switch statement determine the outcome Given a word description write a switch statement for it Method call: See the method calls from CalcDriver class for sample. Determine the outcome of method calls with parameters 10/13/2019 B.Ramamurthy