Resit2023Proposed solution included

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.

Open in Shoracy

Opens this paper in the app on your phone.

University of Buea

College of Technology - COT

Computer Engineering - CET

CEC3022023

Object Oriented Programming

Resit · Second Semester Resit · Level 300

Open in the app to read the full paper and its proposed solution.

View solutionOpen in Shoracy
Proposed solution included

At a glance

Course code
CEC302 (CEC 302)
Type
Resit
Year
2023
Level
Level 300
Semester
Second Semester Resit
Proposed solution
Included

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
Open in Shoracy