Skip to content

Object Oriented Programming

SWE · Quiz · Spring 26

Paper 2 of 2Section HSwitch

Section H

Paper 2 of 2

This browser can’t show the PDF here

Open it, and your phone’s PDF viewer takes it, or download it.

Read the questions as text

Read off the PDF by AI, so it may have mistakes. The PDF is the original.

Daffodil International University Department of Software Engineering SE311 Quiz-1 Sec: H 1. Create a class Student with private fields (name, id, cgpa). Write a separate class StudentTest to verify that fields cannot be accessed directly. 6 2. Create class ExceptionHandling with a calculate method inside it. The method will add two integers and return the result. For user input, handle the InvalidInputException in your code. 6 3. Explain Abstraction with an Example related to OOP. 3