CEC 302 Object Oriented Programming Resit 2023
About this paper
CEC 302: University of Buea, College of Technology, Department of Computer Engineering, Second Semester Resit Examination 2022/2023, July 2023, Instructor Dr Denis Nkweteyim, all code in Java: Question 1, ten Java MCQs (2-D array lengths, public-class/filename rules, constructors, access modifiers, default field values, class/static variables, inheritance, a tricky true/false MCQ about extends direction, polymorphism, and String == vs equals), tracing three short Java programs (a constructor incrementing a field, 2-D array indexing, and instance vs static field initialization across multiple objects), writing three overloaded Point constructors (including one delegating via this()), and nine Java True/False conceptual statements on interfaces, single inheritance, constructor chaining, overloading, String immutability, private-member access and equals/== semantics; Question 2, finding three bugs in a buggy minimum-finding array loop and completing a table of Java expression types/values (integer vs double division, boolean logic, string concatenation with mixed types); Question 3, writing an abstract Shape class, completing a concrete Rectangle subclass (constructor, area, perimeter), a Circle subclass constructor, and rewriting Shape/Rectangle for an interface-based design; Question 4, designing a small Date/Student/UGStudent class hierarchy with constructors and toString methods using code reuse (inheritance and super calls), and writing an object-creation statement for a sample undergraduate student.
Opens this paper in the app on your phone.
University of Buea
College of Technology - COT
Computer Engineering - CET
Object Oriented Programming
Resit · Second Semester Resit · Level 300
At a glance
- Course code
- CEC302 (CEC 302)
- Type
- Resit
- Year
- 2023
- Level
- Level 300
- Semester
- Second Semester Resit
- Proposed solution
- Included
Where it's from
University
University of BueaFaculty
College of Technology - COTDepartment
Computer Engineering - CET
Read CEC302 2023 in Shoracy.
- Every page, with zoom for diagrams and small print
- The proposed solution, one tap away
- Stays on your phone after the first open, even offline
Don't have the app yet?