HamroCSIT Logo
HAMRO CSIT
  • Course New
  • Entrance
    • Entrance Preparation
    • MCQ Questions
    • Colleges
    • Entrance Class
    • Entrance Books
    • Free Entrance Video Course
  • Semester
    • First Semester
    • Second Semester
    • Third Semester
    • Fourth Semester
    • Fifth Semester
    • Sixth Semester
    • Seventh Semester
    • Eight Semester
  • Questions
  • Subscription Automated
  • Notices
  • Articles
  • More
    • Ask Question
    • College Ambassadors
    • Financial Support Program
    • Contribute
    • Contact Us
Login Register
Hamro CSIT User Account
  • Sign In
  • Create Account


Shape | Hamro CSIT Shape | Hamro CSIT Shape | Hamro CSIT Shape | Hamro CSIT
Subject

Object-Oriented Programming

The course covers the basic concepts of object oriented programming using C++ programming language.

Subject Image | Hamro CSIT
  • Chapters
  • Syllabus
  • Question Banks
  • Questions
  • Text Book
  • Practical
  • Viva

Exam Year

  • OOP Question Bank 2081
  • OOPS Question Bank 2080(new)
  • OOPS Question Bank 2080
  • OOPS Question Bank 2079
  • OOPS Question Bank 2075
  • OOPS Question Bank 2076
  • OOPS Question Bank 2078

Tribhuvan University

Institute of Science and Technology

2081

Bachelor Level / second-semester / Science

Computer Science and Information Technology( CSC166 )

Object-Oriented Programming

Full Marks: 60 + 20 + 20

Pass Marks: 24 + 8 + 8

Time: 3 Hours

Candidates are required to give their answers in their own words as far as practicable.

The figures in the margin indicate full marks.

Group A

Attempt any TWO questions.

1

What types of exception can be encountered in file handling? Write a program to create a class named MOVIE with data members name and genre. If the genre of the movie is comedy then write it to COMEDY.DAT and if the genre is action, write it to ACTION.DAT

2

Discuss the chain of constructor and destructor in derived class. Write a program to define a class named Employee with data members name, age and gender. Then create another class named EmployeeSalary inherited from Employee. In this class, the user should give the monthly salary of the employee and calculate the yearly salary after 15% tax deduction. In the main function, you should get the employee’s basic information and salary using inheritance.

3

When do we use static member functions? Explain the types of constructors with an example.

Group B

Attempt any EIGHT questions.

4

Write a function template that returns the greater number between two integers.

5

Describe the characteristics of object oriented programming approach.

6

List the five types of storage classes with their keyword, lifetime, and visibility.

7

Write a program to create a class PERSON with data members name and age. Overload the greater than (>) symbol, to display the name of elder one.

8

Define virtual base class. Differentiate between function overloading and function overriding.

9

What types of instructions are written in try block? Illustrate the use of friend function with an example.

10

Create a class BOOK with data members name and price. Write a member function that will take two objects of BOOK class and return the object with lower price.

11

Design a class TIME with hour and minutes. Write a program to convert integer type to TIME class type.

12

Illustrate the advantage of return by reference with an example.

Object-Oriented Programming Question Bank Solution 2081
Solution Video
Solution
Share

Share this link via

Or copy link

logoHAMROCSIT

Hamro CSIT is a comprehensive web and mobile platform that provides B.Sc. CSIT students with resources like notes, syllabi, question banks, solved past papers, practical files, and free entrance preparation materials — all in one place.

  • [email protected]
Semester
  • First Semester
  • Second Semester
  • Third Semester
  • Fourth Semester
  • Fifth Semester
  • Sixth Semester
  • Seventh Semester
  • Eighth Semester
Links
  • About Us
  • FAQs
  • Sitemap
  • Privacy Policy
  • Terms and Conditions
  • College Ambassadors
  • Financial Support Program
Hits Counter
20252958
Google Play App Store
Follow Us

Copyright 2026 | HAMROCSIT | All Right Reserved

Official Payment Partner Esewa Logo
HAMROCSIT.COM

Copyright 2024 | HAMROCSIT.COM | All Right Reserved - Nymna Technology