ENCT 151Bachelor in Computer Engineering · Semester 22 Papers Available

Object Oriented Programming

Past examination question papers and complete curriculum syllabus for Object Oriented Programming (ENCT 151), Bachelor in Computer Engineering Semester 2 under Institute of Engineering (IOE), Tribhuvan University.

Past Question Papers (PDF)

Switch tabs to view different exam papers
Available Papers:

2nd-sem_Object Oriented Programming.pdf

IOE Past Examination Paper

Download PDF
Served via fast CDN. Read in full view or download for offline study.

Document information: This past examination paper is identified as an IOE/TU academic document and was cataloged from a public Google Drive archive. This independent website did not create the examination paper and is not affiliated with TU or IOE.

Rights holders can request correction or removal by emailing subeshgaming@gmail.com with this page URL and supporting details.

Most Frequently Asked Questions

Top recurring IOE board exam questions for Object Oriented Programming with verified mark schemes, formula notation, and recurrence frequency.

Showing 40 of 40 top repeated questions
9 Chapters · Click any chapter to expand
·

Year-wise & Session-wise Exam Papers

Complete questions from each exam session (Regular & Back exams from 2082 to 2069) for Object Oriented Programming. Click any session paper to expand.

Showing 273 questions across 22 exam session papers
Institute of Engineering • 2083 Baishakh Board Examination
Q1[1 Marks]Basics of C++ Programming
When do we use default argument in functions? When can conflict occur when default argument and function overloading are used together? Create a C++ program to illustrate the concept of default arguments. Define a function named printMessage that takes two parameters: a message and a count. The function should print the string for count number of times. Set the default value of count to 1.
Q2[3 Marks]Operator Overloading
Explain different ways of how binary operator overloading is performed? Using a class to model a matrix, overload the + and- operator to add and subtract two matrices.
Q3[2 Marks]Inheritance
What is the difference between private and protected access specifier? Define function overriding. Write a program with a class to represent cricketer that has data members to represent name, age and number of matches played. From this class derive two classes bowler and batsman. The bowler class should have number of wickets as data member and batsman class should have number of runs and number of centuries as data members. Implement the concept of function overriding in your program and also mention the type of inheritance involved in the program.
Q4[1 Marks]Virtual Functions
Why do you need virtual destructor? Distinguish between function overloading and overriding with example.
Q5[3 Marks]Stream Computation
Explain how abnormal situations are handled in I/O process. Write a program that writes text to source file after reading from the user. Copy the content from source file, change the case of letters to uppercase if they are in lowercase and then store in destination file. Also, display the content of destination file too.
Q6[2 Marks]Introduction to Object Oriented Programming
What are the drawback of procedural programming and advantages of object oriented programming. With a program code differentiate between procedure object oriented programming and object oriented programming.
Q7[1 Marks]Objects and Classes
What do you mean by a constructor? Explain with example types of constructors in C++. Create a class person with data members name, age, address and citizenship_number. Define constructor to initialize the value of the person. Assign citizenship number if the age of the person is greater than 16 otherwise assign value zero to citizenship number. Also create a function to display the values.
Q8[2 Marks]Templates
Why are templates in C++ referred to as a form of generic programming? What are containers and iterators in STL? Briefly explain default arguments with Class Template with suitable example.
Q9[2 Marks]Exception Handling
How is explain exception handling mechanism in C++ better than tradition techniques? Write a program to read name, roll number and marks that catches multiple exceptions using exception class if roll number is negative and marks greater than full marks. Also, handle the exceptions.

Curriculum Syllabus & Course Topics

Sourced from TU curriculum portal
Chapter-wise Units & Micro-Syllabus Topics (9 Units)
  1. 1. Introduction to Object Oriented Programming

    • 1.1History of programming languages
    • 1.2Need of object oriented programming(OOP)
    • 1.3Object oriented programming versus procedure oriented programming
    • 1.4Concepts of object oriented programming
    • 1.5P opular object oriented languages
    • 1.6Advantages of OOP
    • 1.7Disadvantages of OOP
  2. 2. Basics of C++ Programming

    • 2.1C++ Program structure
    • 2.2Character set and tokens
    • 2.3Variable declaration and expression
    • 2.4Data types
    • 2.5Type conversion and casting
    • 2.6User defined constant const
    • 2.8Conditions and looping
    • 2.9Namespace scope
    • 2.10Functions
    • 2.10.1Function overloading
    • 2.10.2Inline function
    • 2.10.3Default arguments
    • 2.10.4Pass by reference and return by reference
    • 2.11Array, pointer and string
    • 2.12Structure and unions
    • 2.13Enumeration
    • 2.14Dynamic memory allocation
  3. 3. Objects and Classes

    • 3.1C++ classes
    • 3.2Objects and the member access
    • 3.3Relation of object, class and memory
    • 3.4Defining member function
    • 3.5Defining outer function inline
    • 3.6Objects as member
    • 3.7Constructors and destructors
    • 3.8Object as function arguments
    • 3.9Returning objects from functions
    • 3.10Array of objects
    • 3.11Pointer to objects
    • 3.12Dynamic memory allocation for objects
    • 3.13Dynamic constructors
    • 3.14Pointer
    • 3.15Static data member and static member function
    • 3.16Constant member functions and constant objects
    • 3.17Friend functions and friend classes
  4. 4. Operator Overloading

    • 4.1Overloadable and non- overloadable operators
    • 4.2Syntax of operator overloading
    • 4.3Operator overloading using member operator functions
    • 4.4Operator overloading using non member functions
    • 4.5Unary operator overloading
    • 4.6Binary operator overloading
    • 4.7Type conversion between objects
    • 4.8Explicit constructors
  5. 5. Inheritance

    • 5.1Base class and derived class
    • 5.2protected access specifier
    • 5.3Derived class declaration
    • 5.4Is_a relation and Has_a relation
    • 5.5Public, protected and private inheritance
    • 5.6Member overriding
    • 5.7Forms of inheritance
    • 5.8Constructors in derived class
    • 5.9Destructor in derived class
    • 5.10Need of virtual base class
  6. 6. Virtual Functions

    • 6.1What is virtual function
    • 6.2Need of virtual function
    • 6.3Pointer to derived class
    • 6.4Array of pointers to base class
    • 6.5Pure virtual functions and abstract class
    • 6.6Virtual destructors
    • 6.7Reinterpret cast operator
    • 6.8Run-time type information
  7. 7. Stream Computation

    • 7.1Input/output stream class hierarchy
    • 7.2Testing stream errors
    • 7.3Unformatted input/output and formatted input/output
    • 7.4Stream operator overloading
    • 7.5File input/output with streams
    • 7.6File stream class hierarchy
    • 7.7ASCII and binary files
    • 7.8Read/Write from file
    • 7.9Sequential access to file
    • 7.10Random access to file
    • 7.11File access pointers and their manipulators
    • 7.12Testing errors during file operations
    • 7.13File input/output with member functions
  8. 8. Templates

    • 8.1Function template
    • 8.2Overloading function template
    • 8.3Class template
    • 8.4Derived class template
    • 8.5Introduction to standard template library
    • 8.5.1Components of STL
    • 8.5.2Container
    • 8.5.3Iterators
    • 8.5.4Algorithms
  9. 9. Exception Handling

    • 9.1Basics of exception handling
    • 9.2Advantage over conventional error handling
    • 9.3Exception handling mechanism
    • 9.4Multiple handlers
    • 9.5Catching all exceptions
    • 9.6Rethrowing exception
    • 9.7Exception with arguments
    • 9.8Exceptions specification for function
    • 9.9Exceptions in constructors and destructors
    • 9.10Handling uncaught exceptions
    • 9.11Handling unexpected exception

Examination Scheme & Marks Distribution

Evaluation Structure

  • Final Board Theory Exam: 60 Marks (Pass mark: 24)
  • Internal Assessment: 40 Marks (Pass mark: 16)
  • Practical / Lab Exam: 25 or 50 Marks (Continuous lab evaluation + viva, where applicable)

* This is the general current IOE 60/40 scheme; verify course-specific details in the syllabus above.

Exam Preparation Guidelines

  • Review the 2 available past examination papers to identify recurring patterns, core problem types, and chapter weightage.
  • Practice writing clean algorithms and code implementations, tracing dry runs with sample inputs, and explaining complexity trade-offs.
  • Structure answers with labeled diagrams, concise bullet points, and highlight final answers in numerical solutions.
Authentic IOE Past Papers
Free Direct PDF Download
Curriculum Syllabus & Marking Scheme