MSU B.Sc Computer Science 3rd Semester Programming in C++ Important Questions November 2026

Manonmaniam Sundaranar University B.Sc Computer Science C++ Important Questions November 2026

Manonmaniam Sundaranar University B.Sc Computer Science 2nd Year 3rd Semester Programming in C++ Important Questions November 2026

Manonmaniam Sundaranar University – B.Sc Computer Science – Second Year – Third Semester – Programming in C++ – November 2026 Semester Examination.

Students preparing for the Manonmaniam Sundaranar University November 2026 Semester Examination can use the following important questions for Programming in C++. This study material covers all five units, including Part A (1 Mark), Part B (5 Marks), Part C (8 Marks), important C++ programs and last-minute revision topics.

Note: These questions are provided for examination preparation and revision. They are not an official or confirmed university question paper.

SUBJECT DETAILS

University: Manonmaniam Sundaranar University

Course: B.Sc. Computer Science

Year: Second Year

Semester: Third Semester

Subject: Programming in C++

Examination: November 2026

Question Pattern: Part A, Part B and Part C

Topics for Revision

  • this pointer
  • Constructors and destructors
  • Inheritance (types and programs)
  • Operator overloading
  • Key concepts or advantages of OOP
  • Friend function, static members, array of objects, type conversion, abstract class
  • File handling (stream classes, modes, random access)
  • Templates, exception handling, new/delete, virtual base class

UNIT I

Part B (5 Marks)

  1. Advantages of OOP
  2. Inline functions with example
  3. Function overloading with syntax and example
  4. Compare continue and break
  5. For / while / do-while loops with examples
  6. Structure of a C++ program, or a program to add two numbers using cin and cout

Part C (8 Marks)

  1. Key concepts of OOP with examples (objects, classes, abstraction, encapsulation, inheritance, polymorphism, dynamic binding, message passing)
  2. Decision-making and control statements: if-else, switch-case, goto, break, continue, with syntax and examples
  3. Looping statements in C++
  4. C++ declarations (variable and function declarations)

UNIT II

Part B

  1. Static data members and static member functions
  2. Friend function with example
  3. Array of objects
  4. Classes and objects, including defining member functions inside and outside the class
  5. Rules or characteristics of constructors, and the destructor
  6. Bit fields and classes
  7. Overloading member functions
  8. Characteristics of a const object

Part C

  1. Constructors and destructors: types (default, parameterized, copy, overloaded) with programs, plus constructors with static members
  2. Friend function: need, characteristics, and a program to find the maximum of two numbers
  3. Array of objects program, such as total and average marks of 5 students
  4. Define class and object with an example
  5. Programs: complex number addition using constructors, copy a string using constructors, power of a number with default arguments

UNIT III

Part B

  1. Overloading unary operators (++, −−, −)
  2. Rules for operator overloading
  3. Overloading operators with friend functions
  4. Type conversion: basic to class, class to basic, class to class
  5. Virtual base class: what it is and why it's used
  6. Abstract class with example

Part C

  1. Types of inheritance with diagrams and examples (single, multilevel, multiple, hierarchical, hybrid, multipath)
  2. Program: employee pay bill using inheritance
  3. Unary and binary operator overloading with a program, or a + operator program for string concatenation
  4. Virtual base class program, or abstract class program
  5. Compare multiple and multilevel inheritance
  6. Type conversion operators with examples

UNIT IV

Part B

  1. this pointer with example
  2. new and delete operators and dynamic memory allocation
  3. Pure virtual function
  4. Pointer to objects or pointer to class
  5. Read the contents of an array using a pointer
  6. Virtual functions: rules and example

Part C

  1. Virtual functions and polymorphism: compile-time vs run-time, early vs late binding, with program
  2. Pointers: declaration, initialization, pointer to object, pointers to base and derived classes
  3. this pointer in detail, plus the program to find the elder of two persons using this
  4. Dynamic memory allocation and dynamic objects using new and delete
  5. Types of arrays, and array of classes
  6. Dynamic object binding

UNIT V

Part B

  1. File modes with example (ios::in, out, app, ate, binary, trunc)
  2. File stream classes (ifstream, ofstream, fstream)
  3. Templates: syntax of function and class templates
  4. Exception handling with try, throw and catch
  5. Random access functions (seekg, seekp, tellg, tellp)
  6. String class: any five functions, or a program to copy one file to another
  7. Manipulators

Part C

  1. File stream classes and operations, with a program to write and read text using ofstream and ifstream
  2. Random access in files with a seekg() and tellg() program
  3. Exception handling mechanism with a program
  4. Templates: function and class templates, sorting or swapping with templates
  5. Binary and ASCII files
  6. String class attributes and operations
  7. Handling file I/O errors

Dark Horse Topics

These are additional topics from your syllabus for revision:

  • Pointers to derived and base classes
  • Memory models
  • String class
  • Manipulators
  • Binary vs ASCII files
  • Bit fields

Part A Quick Facts (Easy 10 Marks)

  • Execution starts at main().
  • A destructor is written with ~.
  • A default constructor takes 0 parameters.
  • A class is the blueprint of an object.
  • new allocates memory dynamically and delete frees it.
  • Pure virtual function: virtual void f() = 0;
  • Abstract classes can't be instantiated.
  • this is passed as a hidden argument to non-static member functions.
  • do-while runs at least once.
  • Inline functions are expanded at compile time.
  • Virtual functions use late (run-time) binding.
  • A friend function overloading a binary operator takes 2 arguments, and one overloading a unary operator takes 1.
  • Multipath inheritance causes duplication, and a virtual base class fixes it.
  • ofstream writes, ifstream reads, and fstream does both.
  • seekg() / tellg() work on the get (read) pointer, and seekp() / tellp() on the put (write) pointer.
  • The template keyword defines templates, and try, throw, catch handle exceptions.
  • << is the insertion operator and >> is the extraction operator.
  • Encapsulation binds data and functions together.

PART A: 1-Mark MCQs (10 × 1 = 10 Marks)

Each is written as question → answer, so learn the answers, because the options get reworded or reordered.

UNIT I: Introduction, Control Structures, Functions

  1. Data type supported in C++ but not in C → bool
  2. Execution of a C++ program starts from → main() function
  3. Which is not a fundamental data type in C++ → string
  4. Statement used for input in C++ → cin
  5. Loop that checks the condition at the end → do-while
  6. Loop executed at least once → do...while
  7. Control structure for multi-way branching → switch-case
  8. When is an inline function expanded → Compile time
  9. Inline functions increase speed by reducing → function call overhead
  10. The << operator is called the → insertion operator
  11. The >> operator is called the → extraction operator
  12. Header file needed for cin and cout → iostream
  13. Scope resolution operator → ::
  14. Statement used to exit a loop immediately → break
  15. Same function name with different parameters is called → function overloading (compile-time polymorphism)
  16. Concept of OOP that binds data and functions together → Encapsulation
  17. Concept that lets the same function be used in different ways → Polymorphism
  18. The continue statement → skips the rest of the current iteration

UNIT II: Classes, Objects, Constructors

  1. A class is a ______ for creating an object → blueprint
  2. Correct way to declare an object of a class → classname object;
  3. Number of parameters of a default constructor → 0 (zero)
  4. Destructor is preceded by the symbol → ~ (tilde)
  5. Group of objects stored in a single variable → Array (of objects)
  6. Constructor that handles static data member initialization → Default
  7. Statement that creates a destructor call for a const object → called when the object goes out of scope
  8. Default access specifier of a class → private
  9. A constructor has the same name as the → class
  10. Return type of a constructor → none (no return type, not even void)
  11. Keyword that declares a friend function → friend
  12. Static data members are shared by → all objects of the class
  13. A static member function can access → only static members
  14. A friend function is called → like a normal function, without an object and dot operator
  15. Bit fields specify → the number of bits a member occupies
  16. Order of destructor calls compared with constructors → reverse order
  17. Constructor that creates an object from another object of the same class → Copy constructor
  18. Can a destructor be overloaded → No

UNIT III: Operator Overloading, Inheritance

  1. Binary operator among the options → + (addition), since ++, -- and * (dereference) are unary
  2. Deriving new classes from existing classes → Inheritance
  3. Derived class inheriting from more than one base class → Multiple inheritance
  4. Derived class with only one base class → Single inheritance
  5. Inheritance that may duplicate grandparent members → Multipath inheritance (fixed by a virtual base class)
  6. Class that cannot be instantiated → Abstract class
  7. Arguments needed to overload a binary operator using a friend function → Two
  8. Narrowing conversion → double to int
  9. Keyword used to overload an operator → operator
  10. Arguments for a binary operator overloaded as a member function → One
  11. Arguments for a unary operator overloaded as a member function → Zero
  12. Dummy int argument in an operator function indicates → postfix form (a++)
  13. Operators that cannot be overloaded → ::, ., .*, ?:, sizeof
  14. Basic-to-class conversion is done using a → constructor
  15. Class-to-basic conversion is done using a → conversion (casting) operator function
  16. Derived class that is also a base for another class → Multilevel inheritance
  17. Many classes derived from one base class → Hierarchical inheritance
  18. Combination of two or more types of inheritance → Hybrid inheritance
  19. Default inheritance mode for a class → private
  20. Members accessible in derived classes but not outside → protected

UNIT IV: Pointers, Dynamic Memory, Polymorphism

  1. this pointer is passed as a hidden argument to → all non-static member functions
  2. Operator for dynamic memory allocation → new
  3. Operator used to destroy dynamically created objects → delete
  4. Delete operator is used to → deallocate dynamically created memory
  5. Declare a pure virtual function → virtual void f() = 0;
  6. Binding associated with virtual functions → Dynamic (late/run-time) binding
  7. In late binding the function call is resolved at → run time
  8. A virtual function is a member of the ______ class → Base
  9. Compile-time polymorphism is implemented using → Templates (also function and operator overloading)
  10. Declare an array of 10 integers → int arr[10];
  11. Declare an array of 10 objects of class Student → Student arr[10];
  12. Dynamic constructors → allow dynamic memory allocation during object creation
  13. General declaration of a pointer variable → datatype *pointervariable;
  14. Address-of operator → &
  15. Dereferencing operator → *
  16. Operator to access members through an object pointer → -> (arrow)
  17. this pointer points to → the current (calling) object
  18. A base class pointer can point to → a derived class object
  19. Early binding is also called → static / compile-time binding
  20. Runtime polymorphism is achieved using → virtual functions
  21. Pointer that stores no address → NULL / nullptr
  22. Memory allocated by new comes from the → heap (free store)
  23. Array index starts from → 0
  24. Freeing a dynamically allocated array → delete[]

UNIT V: Files, Templates, Exceptions, Strings

  1. Stream class used to read from files → ifstream
  2. Stream class used to write into a file → ofstream
  3. Class used for both reading and writing → fstream
  4. Operation that reads or writes data in order → Sequential
  5. Keyword used to define templates → template
  6. Keyword used to catch exceptions → catch
  7. Abnormal behavior of a program should be written under the ______ block → try
  8. Validity of template parameters → inside that block only (the template declaration or definition)
  9. Asynchronous exceptions are caused by → events beyond the program's control (e.g. keyboard interrupts)
  10. Purpose of ofstream → to write data to a file
  11. Header file for file handling → fstream
  12. Mode to append data at the end of a file → ios::app
  13. Mode to open a file for reading → ios::in
  14. Mode to open a file for writing → ios::out
  15. Mode used for binary files → ios::binary
  16. seekg() moves the → get (read) pointer
  17. seekp() moves the → put (write) pointer
  18. tellg() returns the → current get pointer position
  19. tellp() returns the → current put pointer position
  20. Function that checks end of file → eof()
  21. Function that closes a file → close()
  22. Keyword that raises an exception → throw
  23. Handler that catches any type of exception → catch(...)
  24. Header file for the string class → string
  25. Function that returns the length of a string → length() (or size())
  26. Header file for manipulators like setw → iomanip
  27. Manipulator for a new line plus buffer flush → endl

A Few Tricky Ones

  • The paper had two ambiguous questions: "Which class handles output streams?" (the options included ofstream but not ostream) and "Which function moves the file pointer?" (seekg and seekp both fit). If you see these, pick the option that best fits the exact wording.
  • Questions such as "Which operator allocates memory?" can show malloc, calloc and new together. The C++ operator is new, because malloc is a C function.
  • cout and cin are objects, not statements or keywords, but the question papers still call them "statements". Answer as the paper expects.

Important Topics to Revise Before Examination

  • Constructors and destructors
  • Inheritance and its types
  • Operator overloading
  • this pointer
  • Friend functions and static members
  • File handling and stream classes
  • Templates and exception handling
  • Virtual functions and abstract classes
  • Dynamic memory allocation
  • Random access file functions

Preparation Tips for November 2026 Examination

  • Revise all five units carefully.
  • Practise the important C++ programs by writing them yourself.
  • Study the definitions and key concepts of Object-Oriented Programming.
  • Prepare the constructors, destructors and inheritance topics thoroughly.
  • Understand the differences between virtual functions and pure virtual functions.
  • Practise file handling programs and random access functions.
  • Revise Part A questions and answers before the examination.
  • Use your prescribed syllabus, textbooks and classroom notes for complete preparation.

Conclusion

We hope these Manonmaniam Sundaranar University B.Sc Computer Science Second Year Third Semester Programming in C++ Important Questions for November 2026 will help students prepare effectively for their semester examinations.

Study all five units, practise C++ programs and revise the important questions regularly. All the best for your November 2026 semester examination!

For more university important questions, study materials, previous year question papers and educational updates, keep visiting:

www.mheducationalblog.in

Educational Disclaimer

This article is published for educational and examination preparation purposes only. The questions and answers are provided as revision material and are not an official or confirmed Manonmaniam Sundaranar University November 2026 examination paper. Students are advised to refer to the latest official university syllabus, prescribed textbooks and faculty guidance for complete preparation.

Keywords: Manonmaniam Sundaranar University Important Questions November 2026, MSU B.Sc Computer Science 3rd Semester, Programming in C++ Important Questions, B.Sc CS 2nd Year, C++ 5 Marks Questions, C++ 8 Marks Questions, C++ 1 Mark MCQs, MSU Study Materials.

Labels: Manonmaniam Sundaranar University, B.Sc Computer Science, Programming in C++, November 2026, Important Questions, Third Semester, MSU Study Materials.

Next Post Previous Post
No Comment
Add Comment
comment url