This is the Final Exam of COMP 1006 Introduction to Computer Science II (Java Programming). The Exam duration is 120 minutes therefore the exam will start at 14:00 PM EST to 16:00 PM on Wednesday, December 15th, 2021. I will send you the screenshots of the question to solve and code the program.
Fall 2021 - COMP1006/1406 COMP 1006 A / 1406 A Introduction to Computer Science II Course Outline for Fall 2021 updated September 8, 2021 Course Details Instructor: Jason Hinek (
[email protected]) Lectures: 1006 Section A - Monday & Wednesday, 1:05pm - 2:25pm (online) 1406 Section A - Tuesday & Thursday , 1:05pm - 2:25pm (online) Tutorials: 1006 Section A1 - Friday, 8:35am - 9:55am (online) 1406 Section A2 - Friday, 8:35am - 9:55am (online) 1406 Section A1 - Friday, 10:05am - 11:55am (online) 1006 Section A2 - Friday, 2:35pm - 3:55pm (online) Lab Coordinator: Lars Doyle (contact info on Brightspace) Teaching Assistants: TBA (contact info will be posted on Brightspace) Course Calendar Description A second course in programming [for BCS students], emphasizing problem solving and computational thinking in an object-oriented language. Topics include abstraction, mutable data structures, methods, inheritance, polymorphism, recursion, program efficiency, testing and debugging. Precludes additional credit for COMP 1006, SYSC 1101 (no longer offered), SYSC 2004. Prerequisite(s): one of COMP 1405, COMP 1005, ECOR 1606, SYSC 1005, BIT 1400. Learning Modality This course is entirely online. Lectures will be a combination of live classes (held during the scheduled class times) and pre-recorded classes. Live classes will be recorded and posted to the course webpage within 24 hours. Pre-recorded lectures will be posted 24 hours before the scheduled class time and class time will be spent in some combination of watching the pre-recorded lecture, working through examples, live coding, class discussions and Q&A. Note: Discord will be used for tutorials and office hours. Piazza will be used for our class forum. Brightspace will be used to post course materials, submit assignments, write quizzes and the final exam and store grades. Communication The majority of communication will be using Piazza. All questions about the course should be posted there. You should only email the instructor, a teaching assistant or the lab & course coordinator if the contents of the email are personal. Do not send private direct messages to the course teaching team on discord unless asked to do so. All emails must be sent from your university cmail account. Any email should have "COMP1406" in the subject along with something related to the content of the email. Assessment Assignments: 5 main assignments + 2 midterm assignments 52% Tutorials: weekly 8% Quizzes: two in-tutorial quizzes: Friday October 22 and Friday November 26 20% Final Exam (Date TBA by university) 20% Assignments Assignments will mostly involve writing Java code but may also include other tasks. The majority (if not all) of the coding marks will be based on the correctness of your code. All submitted code must compile and run in order to receive any correctness grades (for that question). Code that breaks any marking programs will receive zero correctness marks. All assignments are due on a Friday at 11:59pm. However, you can submit up to 48-hours late without penalty. Note that there will be no office hours or available help during this 48 hour time though. You may speak with TA’s or the instructor if you need help, and are encouraged to discuss things with other classmates. But, you must write your own responses and code. Do not post or share solutions or partial solutions with anyone. A breakdown of each assignment (due date) will be given when classes start. Midterm assignments will be due when your midterm starts. More details of the midterm assignments will be given in class. Tutorials Tutorials will be held online. You can work alone or choose to work with others collaboratively. Tutorial grades will be based on attendance, participation and making progress on the tutorial problems. Quizzes will also be written during tutorial times (we will not have a tutorial on those days). Quizzes Quizzes will be written, online, during the regular scheduled tutorial times. Appeals You have 1 week (from when grades are posted) to verify the correctness of your grades. You must email the TA that graded your assignment/quiz within 1 week of the grades being posted to seek a correction. No appeals will be accepted after this 1 week period. Final Exam Scheduling The examination period is December 11-23. The time for our exam will be announced by the University by October 8th. Be sure that you are not in transit during this period of time. Travel plans are not an excuse to miss the final exam. Attendance Attendance is optional for classes. Attendance is mandatory for tutorials. Note that class and tutorial times will be opportunities to ask the instructor/TAs questions and get real-time feedback. Some material may be presented only in class. A video recording of class times will be posted after the class. Workload The expected workload is high. In typical offerings of this course, it is expected that students in this course will spend an average of 10 hours or more each week for this course. Textbook Content for this course will come from posted course slides/notes. We will also be using Dr Lanthier's COMP1406 Notes http://people.scs.carleton.ca/%7Elanthier/teaching/COMP1406/notes.html Additional notes/videos may be posted to Brightspace. Recordings from lecture time will be posted to Brightspace (barring any technical issues). http://people.scs.carleton.ca/%7Elanthier/teaching/COMP1406/notes.html Undergraduate Academic Advisor The Undergraduate Advisor for the School of Computer Science is available by email (
[email protected]). The undergraduate advisor can assist with information about prerequisites and preclusions, course substitutions/equivalencies, understanding your academic audit and the remaining requirements for graduation. The undergraduate advisor will also refer students to appropriate resources such as the Science Student Success Centre, Learning Support Services and the Writing Tutorial Services. University Policies Student Academic Integrity Policy Every student should be familiar with the Carleton University student academic integrity policy. A student found in violation of academic integrity standards may be awarded penalties which range from a reprimand to receiving a grade of F in the course or even being expelled from the program or University. Some examples of offences are: plagiarism and unauthorized co-operation or collaboration. Information on this policy may be found in the Undergraduate Calendar. Plagiarism/Unauthorized Co-operation or Collaboration As defined by the University Senate, "plagiarism is presenting, whether intentional or not, the ideas, expression of ideas or work of others as one's own". Such reported offences will be reviewed by the office of the Dean of Science. Senate policy states that "to ensure fairness and equity in assessment of term work, students shall not co-operate or collaborate in the completion of an academic assignment, in whole or in part, when the instructor has indicated that the assignment is to be completed on an individual basis". mailto:
[email protected] For more information about the consequences of academic violations, please read https://science.carleton.ca/academic-integrity/ In particular, note the standard penalties in the Faculty of Science for violations to Carleton’s Policy on Academic Integrity Academic Accommodations Requests for Academic Accommodation You may need special arrangements to meet your academic obligations during the term. For an accommodation request, the processes are as follows: Pregnancy obligation Please contact your instructor with any requests for academic accommodation during the first two weeks of class, or as soon as possible after the need for accommodation is known to exist. For more details, visit the Equity Services website: carleton.ca/equity/wp-content/uploads/Student-Guide-to-Academic-Accommodation.pdf Survivors of Sexual Violence As a community, Carleton University is committed to maintaining a positive learning, working and living environment where sexual violence will not be tolerated, and is survivors are supported through academic accommodations as per Carleton's Sexual Violence Policy. For more information about the services available at the university and to obtain information about sexual violence and/or support, visit: carleton.ca/sexual-violence-support Religious obligation Please contact your instructor with any requests for academic accommodation during the first two weeks of class, or as soon as possible after the need for accommodation is known to exist. For more details, visit the Equity Services website: carleton.ca/equity/wp-content/uploads/Student-Guide-to-Academic-Accommodation.pdf Academic Accommodations for Students with Disabilities If you have a documented disability requiring academic accommodations in this course, please contact the Paul Menton Centre for Students with Disabilities (PMC) at 613-520-6608 or https://science.carleton.ca/academic-integrity/ http://carleton.ca/equity/wp-content/uploads/Student-Guide-to-Academic-Accommodation.pdf http://carleton.ca/equity/wp-content/uploads/Student-Guide-to-Academic-Accommodation.pdf http://carleton.ca/sexual-violence-support http://carleton.ca/equity/wp-content/uploads/Student-Guide-to-Academic-Accommodation.pdf http://carleton.ca/equity/wp-content/uploads/Student-Guide-to-Academic-Accommodation.pdf
[email protected] for a formal evaluation or contact your PMC coordinator to send your instructor your Letter of Accommodation at the beginning of the term. You must also contact the PMC no later than two weeks before the first in-class scheduled test or exam requiring accommodation (if applicable). After requesting accommodation from PMC, meet with your instructor as soon as possible to ensure accommodation arrangements are made. carleton.ca/pmc Accommodation for Student Activities Carleton University recognizes the substantial benefits, both to the individual student and for the university, that result from a student participating in activities beyond the classroom experience. Reasonable accommodation must be provided to students who compete or perform at the national or international level. Please contact your instructor with any requests for academic accommodation during the first two weeks of class, or as soon as possible after the need for accommodation is known to exist. https://carleton.ca/senate/wp-content/uploads/Accommodation-for-Student-Activities-1.pdf For more information on academic accommodation, please contact the departmental administrator or visit: students.carleton.ca/course-outline http://carleton.ca/pmc http://carleton.ca/pmc https://carleton.ca/senate/wp-content/uploads/Accommodation-for-Student-Activities-1.pdf https://carleton.ca/senate/wp-content/uploads/Accommodation-for-Student-Activities-1.pdf http://students.carleton.ca/course-outline COMP 1006/1406 - Summer 2019 Sample Final Questions Choose the best answer for each and record your solution in both the scantron sheet and this exam. If you think there is no answer to any question then answer (e). Good luck! This sample is meant to show you the style of questions that will appear on the final exam. The questions on the final will be similar to these. This sample is NOT meant to indicate the proportion of questions of any type (or topic) that will be on the final exam. The exam covers the entire semester from start to end. All topics are not necessarily included in this sample. There will be four pages on the final exam similar to page 2 of this sample. 1) Consider method overriding. Which object-oriented programming principle is method overriding NOT a part of? (a) polymorphism (b) encapsulation (c) inheritance 2) What is the correct term for the situation when the compiler cannot make a decision about the specific behaviour that should be executed by an object and this behaviour is instead determined at runtime? (a) early binding (b) mid binding (c) late binding 3) How many primitive data types does Java have? (a) 4 (b) 6 (c) 8 4) What is the accessibility of a private attribute? (a) Any class in the same directory has access to this attribute (b) Only the class itself has access to the this attribute (c) Only the class and its subclasses have access to this attribute Page 1/7 COMP 1006/1406 - Summer 2019 Sample Final Questions 1 public class Top{ 2 public int top = 1; 3 public Top(int top){ this.top = top; } 4 } 5 6 public class Middle extends Top{ 7 public Middle(int top){ 8 super(top); 9 this.top = this.top + top; 10 } 11 } 12 13 public class Bottom