CA2026Proposed solution included

CSC 308 Java Programming CA 2026

About this paper

CSC 308: Test 1, University of Buea, Faculty of Science, Department of Computer Science, Course CSC308 Java Programming, Second Semester 2025/2026, Instructor Nyanga B., 45 minutes. Section A (15 marks): 15 true/false statements with justification covering Java fundamentals -- platform independence, classes vs objects, primitive types, default initialization, encapsulation, identifiers, operators, control-flow conditions, instance vs local variables, constructors, void methods, array immutability, switch on Strings, and array indexing. Section B (8 marks): a Smart Home System design exercise requiring a Light class and a Room class demonstrating composition, package access, and a static import for a constant. Section C (8 marks): short-answer questions on classes vs objects, shared methods, polymorphism, class interfaces, and tracing the console output of a Java code fragment using print/println with escape sequences.

Open in Shoracy

Opens this paper in the app on your phone.

University of Buea

Faculty of Science - FS

Computer Science - CSC

CSC3082026

Java Programming

CA · Second Semester · Level 300

From this paper

  1. Section A: True or False [15 marks]

    Answer true or false, giving justification for your answer to earn complete marks.

  2. 1.

    Java is a platform-independent language because the Java compiler produces bytecode rather than machine code.

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

View solutionOpen in Shoracy

At a glance

Course code
CSC308 (CSC 308)
Type
CA
Year
2026
Level
Level 300
Semester
Second Semester
Proposed solution
Included

Where it's from

  1. University

    University of Buea
  2. Faculty

    Faculty of Science - FS
  3. Department

    Computer Science - CSC

Read CSC308 2026 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