This download link is referred from the post: PTU MCA Last 10 Years 2011-2021 Previous Question Papers|| Punjab Technical University
Total No. of Pages : 02
Total No. of Questions : 08
--- Content provided by FirstRanker.com ---
MCA (2015 to 2018) (Sem.-1)
OBJECT ORIENTED PROGRAMMING IN C++
Subject Code : MCA-102
M.Code : 72708
Time : 2 Hrs. Max. Marks : 30
--- Content provided by FirstRanker.com ---
INSTRUCTIONS TO CANDIDATES :
- Attempt any FIVE question(s), each question carries 6 marks.
- What are classes and what are its various types of members? Give relevant examples to explain.
- Write a class to represent a vector (a series of float values). Include member functions to perform the following tasks :
- To create the vector
- To modify the value of a given element
- To multiply by a scalar value
- To display the vector in the form (10, 20,-30,...) Write a program to test your class.
--- Content provided by FirstRanker.com ---
- What is a constructor and destructor? What is the use of default & copy constructors? Is a constructor mandatory for a Class? Explain by giving examples in each case.
- What are the various bit wise operators? Explain with example.
- What do you understand by inheritance? Give its various types and access mechanisms.
- Explain how base class member functions can be invoked in a derived class if the derived class also has a member function with the same name.
- Write a program in C++ to overload the +, —, x, % operator to find the addition, subtraction, multiplication and division of Complex numbers.
- Write a program to copy the content of a data file to another file. Make use of the exception handling conditions also.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Note: Any student found attempting answer sheet from any other person(s), using incriminating material or involved in any wrong activity reported by evaluator shall be treated under UMC provisions.
Student found sharing the question paper(s)/answer sheet on digital media or with any other person or any organization/institution shall also be treated under UMC.
Any student found making any change/addition/modification in contents of scanned copy of answer sheet and original answer sheet, shall be covered under UMC provisions.
--- Content provided by FirstRanker.com ---
This download link is referred from the post: PTU MCA Last 10 Years 2011-2021 Previous Question Papers|| Punjab Technical University