Midterm Solutions (Version 4) Fall 2013

First-page document preview for Midterm Solutions (Version 4) Fall 2013 in COE 318: Software Systems at Toronto Metropolitan University (TMU). Inspect the first page below or request the complete PDF study document for free.

Independent study archive Learn more

Materials are uploaded by users for self-study purposes. PwnHero is an independent platform, not affiliated with, sponsored by, or endorsed by any university or institution.

📄 Page 1 Preview
First page preview of Midterm Solutions (Version 4) Fall 2013 for Software Systems at Toronto Metropolitan University (TMU)

Page 1 Key Topics & Excerpt

🔍 Text Transcript

First page excerpt for quick study reference. Complete formulas, diagrams, and subsequent pages are available in the full document.

PwnHero 1 Ryerson University Department of Electrical & Computer Engineering COE318 Midterm Oct. 21, 2013 Name:________________________ Student number:________ Time: 60 minutes Circle the name of your Professor: E. Bagheri, T. Yang, O. Das This is a closed-book exam. If in doubt on any question, then you must clearly state your own assumption(s). _____________________________________________________________ Question 1. (7 marks) Fill in the blanks in the following class definition: public class Example { private double ; public void setValue( var ) { ; } public double getValue( ) { return ; } public ( double val ) { //constructor value = val; } } Answer: public class Example { private double value ; public void setValue( double var ) { value = var ; } public double getValue( ) { return value ; } public Example( double val ) { //constructor value = val; } } PwnHero.com

Related COE Courses at Toronto Metropolitan University (TMU)