Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
82 views
9 pages
C++ Papers
Uploaded by
Priyank Jain
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save C++ papers For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
82 views
9 pages
C++ Papers
Uploaded by
Priyank Jain
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save C++ papers For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save C++ papers For Later
You are on page 1
/ 9
Search
Fullscreen
(Enroiment No. lal KADI SARVA VISHWAVIDYALAYA B.E. Semester : 3 CENT Subject Code: CET - 306 Date Subject Name: Object Oriented Programming with C++ 30/12/2016 Total Marks : 70 Time :10:30 a.m. to 01:30 p.m. Instructions: 1) All questions are compulsory. Q2 Q2 Q3 Q3 @) © © (A) @) (a) @) ) @) (a) @) 2) Figures tothe right indicate full marks. 3) Indicate elearly, the options you attempt along with its respective question number. 4) Use the last page of main supplementary for rough work. Section — 1 Explain Static Data Member and Static Member Function with their special [5] Characteristics. Also write a suitable programming example. Explain call by reference and return by reference with suitable example. 5] Explain with examples the uses of user define data types. 151 OR Explain the use of destructor in C++. Discuss its features. 5] Define following terms in C++ with suitable examples. (51 (1) copy constructor (2) this pointer (3) Function Overloading (4) new and delete keyword Define a class complex with real and imaginary as two data member with default & {5} parameterized constructors function to initialize and display data of class. It should ‘overload the + operator to add two complex objects. Write a complete C++ program to demonstrate use of complex class. OR What is Constructor? Which are the special characteristics of constructor functions? [5] What is the need of “do-nothing” implicit constructor? When the destructor function invoked? Create a class Account. It has three data member account id, name and balance. Define [5] function to assign value and display value. Define function that search account number given by the user. If account number exists, print detail of that account. Write a program using array of object. Declare at least 5 account and print details. Explain the type conversion from basic type to class type and from class type to basic [5] type with suitable example. Write C++ program to overload the = = operator to compare two strings. 1 OR Explain Function : seekp(, tell 5] What is Exception? Explain Exception Handling Mechanism. Write a program that [5] demonstrates use of multiple catch. Add at least three catch block in your Program P.T.O.Q4 Qs Qs Q6 Q6 “ ® © © (a) (B) (a) @) (a) () a) 8) Section — 2 Explain with the help of an example why templates are used in programming. Difference between Compile time polymorphism and Runtime Polymorphism. Explain Runtime polymorphism. Explain and demonstrate, how virtual function to achieve runtime polymorphism? OR Explain function Overriding with an example. Attempt any Two. (J) List error handling file functions in C++ (2) Protected Data Members (3) Define Friend Function Explain Importance of Inheritance. List its types and explain anyone with an example, OR Explain File Pointers and functions for their manipulation, What is difference between opening a file with a constructor function and opening a file with open() function? When is one method preferred over the other? Write a program in C++ to generate Fibonacci Series by using recursion. Explain the use of virtual base class with example. oR Define Operator overloading. Create class Time that has three data members hour, minute and second and two constructor, default constructor and parameterized constructor to initialize data member. Write a program to add two times by overloading operator +, ‘What is Reference variable? What is its major use? Give Example. 5) (5) 15] (5 B 15) 5) 15] 15] 6) 15) 5)KADI SARVA VISHWAVIDHYALAYA B.E.(C.E/LT) Semester-III_ = APRIL/MAY 2014 Subject Code:-CE/IT 306 Subject name:-Object Oriented Programming with C++ Date:- 02/05/2014 Time:-10:30 am to 01:30 pm Total Marks:-70 Instructions: 1. Answer each section in separate Answer shect. 2. Use of Scientific Calculator is permitted. 3. Alll questions are Compulsory. 4. Indicate Clearly, the options you attempt along with its respective question number. 5. Use the last page of main supplementary of rough work. Sectior Q1 (All compulsory) (A) List the tokens used in C++ Programming language. 151 (B)_ Explain Constructor with example. (51 (©) Using friend function convert degrees to are minutes. (1 degree = 60 arc [3] minutes) oR (©) Using constructors make a database of three students with their enrollment [5] number, name, address, Phone no and desired field of study. (use appropriate data types) Q2 Answer the following Questions. (A) Write advantages of C++ over C. 15] (B) Describe abstraction with respect to OOP. 5] OR (A) What is Virtual class and Friend class? Differentiate if necessary 15] (B) Differentiate between classes and structures. 15] Q3 Answer the following Questions. (A) Write a program (o overload the unary operator “-"(Minus) 151 (B) Explain Polymorphism. 15] OR (A) Write a program to demonstrate function overriding {S| (B) Explain inline function, 5] Page-1 of 2 PTO.Section-I Q-4 — (Alleompulsory) (A) What is abstract class? How many instances of abstract class can be [3] created? (B) Explain “public”, “private”, and “protected”. 651 (©) Write a C+ program to sort 10 numbers in an array 5] OR i (C) Write a C++ program to demonstrate constructor overloading 15] Q5 Answer the following Questions. (A)_ Explain pointer to objects with example 5] (B) Explain how to open or close a file using C++. is] OR (A) Write a program to demonstrate difference between variables and pointers [5] (B) Write about the use of different modes to open a file using C++ 15] Q-6 Answer the following Questions. (A) What is the meaning of static in C++ 65] (B) Write a program to demonstrate implicit type conversion 5] OR ; (A) Write about exception handling in C++ 65] " (B) Write a program to print contents of a given file. (Assume location of file as [5] C:ATEST) Page-2of2Subject Code CE306 KADI SARVA VISHWAVIDYALAYA B.E. Semester - II (CE and IT) EXAMINATION Nov-Dee-2013 Date:2q]ufiz Time 3 Hrs. Total Mark :70 Qu Q2 Q3 Q4 (a) Give the difference between object oriented language and procedure oriented language, (b) Define Object And Class. (c) Create a class rectangle and write program in C+ to print area of rectangle Or (©) Write a C+ program that will ask for a temperature in Fahrenheit and display it in Celsius using a class called temp and member functions. e.q.(°F - 32) / 1.8 (a) Explain various type of Access modifier in C++. (b) Explain “Pass by value “and “Pass by reference. Or (a) Explain if.. else and switch ~case statement . (b) Explain Function overloading with Example. (a) Explain the difference between overloaded and overridden functions. (b) List out various operator in C++ Or (a)Diffcrentiate between classes and structures. (b) What is operation overriding? Discuss the reasons for override (a) Describe is Virtual Class and Friend class? Differentiate if necessary inline function in C++ with example iend function? Explain with example. (©) What is Or (©) WAP to check whether a number is even or odd (a) What is type conversion? Explain the type conversion from basic type to class type and from class type to basic type with proper example. ()What are the differences between new and malloc? Or (a) What is a constructor? Explain types of constructor with example (b) What does inheritance mean in c++? What are different forms of inheritance? (a) WAP to display elements of an array (b)Explain Abstraction or (a)What is Pointer to object, (b)Describe file Modes Subject: Object Oriented Programming with C++ 6] {5} [5] 5] (5] 65) (] 15] (5) 6) (5] (5] (5] (5] (1 5} (5) 5] (5] {5} (5) 6] (5)KADI SARVA VISHWAVIDHYALAYA BE. CE/T Semester II Regular Examination-Nov-2014 Subject Code: CE/T 306 Subject Name:- Object Oriented Programming with C++ Date:-21/11/2014 Time:- 10.30 AM to 1.30 PM. ‘Total Marks: 70 Instructions: 1. Answer each section in separate Answer sheet. 2. Use of scientific calculator is permitted. 3. All questions are Compulsory. 4. Indicate clearly, the options you attempt along with its respective question number. Use the last page of main supplementary of rough work. Section —I Q-1 Answer the following questions. (All compulsory) (A) _ Differentiate POP and OOP. (5] (B) Describe data abstraction , encapsulation and polymorphism. (C)__ Differentiate call by reference and call by value with example OR (5) (©) What is infine function ? Provide appropriate example. [5] Q-2 Answer the following questions. (A) What isa friend function? Whar are the merits and demerits of using friend [5] functions? (B) What is class” How does it accomplish data hiding ? Give example. [5] oR Q2 Answer the following questions. (A) _ List all Access specifiers and explain it . 5 (B) State whether the following statements are TRUE or FALSE (3) 1. Data item in a class must always be private. Functions cannot return class objects. id functions have access to only public members of a class. An entire class can be made a friend of another class. Data members can be initialized inside class specifiers. +7 PageQ3. Answer the following questions. (A) Write C+ program to add two complex numbers using object as arguments. [5] (B) Explain constructors and its all type with suitable example. OR Q-3 Answer the following questions. (A) Create two classes DM and DB which store the value of distances. DM store [5] distance in meters and centimeters and DB store in feet and inches. Write a program that can read values for the class objects and add one object of DM with another object of DB. Use a friend function to carry out addition operation. The object that store the result may be a DM object or DB object, depending on the units in which the results are required. Display should be in the format of feet and inches or meters and centimeters, depending on the object on display. (B) Describe destructors with suitable program and its output, (3) Section — IL Q-4 Answer the following questions. (All compulsory) (A) What is an operator function ? Describe the syntax of an operator function. [5] (B) What is conversion function ? How is it created ? Explain its syntax. (31 (C) What is inheritance? Explain the syntax of it and list all types of inheritance [5] OR (C) What is virtual function and how does it differ from sure virtual function (3) Q-5 Answer the following questions. (A) What is virtual base class ? Explain it with suitable program. [5] (B) How is polymorphism achieved at compile time and run time ? [5] OR Q-5 Answer the following questions. (A) What is this pointer? Give suitable example. 5] (B) What is hybrid inheritance ? Write suitable program of it. 5 Q-6 Answer the following questions. (A) WAP to implement overloading of Binary Operator. 15] (B) _ Entera class including the following members : [5] 1) hour 2) minute Member functions 1) to get the time 2) to display the time 3) to add the two objects of the class OR Q-6 Answer the following questions. (A) WAP to overload unary operator. 15] (B) WAP to implement multiple inheritance, 15]KADI SARVA VISHWAVIDYALAYA B.E. SEMESTER - Ill EXAMINATION — NOVEMBER - 2015 ‘Subject Code:-CE/T — 306 Subject Name:- Object Oriented Programming with C++ Date:- 09/12/2015 ‘Time:- 10:30 am — 01:30 pm Total Marks:- 70, Instructions: ‘Answer each section in separate Answer sheet. Use of scientific calculator is permitted. All questions are Compulsory. Indicate clearly, the options you attempt along with its respective question number. Use the last page of main supplementary of rough work. Section —1 Q-1 (All compulsory) (A) _ Explain with diagram object oriented programming paradigm. 15] (B)__ Write down the output of following programs. 15] #include
#include
int main() int main) { float x = 100; float & sum int & total = x; cout <
You might also like
Layoffs 10000
PDF
No ratings yet
Layoffs 10000
2,358 pages
Solved Object Oriented Programming (2019 Pattern)
PDF
No ratings yet
Solved Object Oriented Programming (2019 Pattern)
10 pages
Past Question CPP
PDF
No ratings yet
Past Question CPP
25 pages
C++ 5 Year
PDF
No ratings yet
C++ 5 Year
15 pages
Resignation 10000
PDF
No ratings yet
Resignation 10000
2,324 pages
(CC-203) (Object Oriented Concepts and Programming)
PDF
No ratings yet
(CC-203) (Object Oriented Concepts and Programming)
4 pages
Oops Pyq
PDF
No ratings yet
Oops Pyq
2 pages
Power Apps and Power Automate Cook Book
PDF
No ratings yet
Power Apps and Power Automate Cook Book
93 pages
C++ Questions
PDF
No ratings yet
C++ Questions
3 pages
2022 External Paper
PDF
No ratings yet
2022 External Paper
2 pages
Be - Electronics and Telecommunication Engineering - Semester 4 - 2022 - May - Object Oriented Programming Oop Pattern 2019
PDF
No ratings yet
Be - Electronics and Telecommunication Engineering - Semester 4 - 2022 - May - Object Oriented Programming Oop Pattern 2019
2 pages
Oops Pyq
PDF
No ratings yet
Oops Pyq
11 pages
Null 2
PDF
No ratings yet
Null 2
4 pages
BCA-241:Object Oriented Programming and C++ S.Y. B.C.A. (Science)
PDF
No ratings yet
BCA-241:Object Oriented Programming and C++ S.Y. B.C.A. (Science)
4 pages
CPP Pyq
PDF
No ratings yet
CPP Pyq
5 pages
BSC Bca 2 Sem Object Oriented Programming Using CPP 19101909 May 2019
PDF
No ratings yet
BSC Bca 2 Sem Object Oriented Programming Using CPP 19101909 May 2019
2 pages
Oop 4
PDF
No ratings yet
Oop 4
2 pages
Object Oriented Programming in C++
PDF
No ratings yet
Object Oriented Programming in C++
18 pages
Qoop 2024
PDF
No ratings yet
Qoop 2024
1 page
Be Electronics and Telecommunication Engineering Semester 4 2023 November Object Oriented Programming Oop Pattern 2019
PDF
No ratings yet
Be Electronics and Telecommunication Engineering Semester 4 2023 November Object Oriented Programming Oop Pattern 2019
2 pages
C++ 2023 Final
PDF
No ratings yet
C++ 2023 Final
2 pages
Interview Process at Meditab: Round-1 A T
PDF
100% (2)
Interview Process at Meditab: Round-1 A T
2 pages
Q Bank
PDF
No ratings yet
Q Bank
7 pages
Oops 1
PDF
No ratings yet
Oops 1
20 pages
Oop Merged
PDF
No ratings yet
Oop Merged
12 pages
Final OOP QB 2019 Pattern
PDF
No ratings yet
Final OOP QB 2019 Pattern
5 pages
Dot NET Exam Analysis
PDF
No ratings yet
Dot NET Exam Analysis
6 pages
May Jun 2022
PDF
No ratings yet
May Jun 2022
2 pages
Cse Ass2024
PDF
No ratings yet
Cse Ass2024
4 pages
Be - Electronics and Telecommunication Engineering - Semester 4 - 2022 - November - Object Oriented Programming Oop Pattern 2019
PDF
No ratings yet
Be - Electronics and Telecommunication Engineering - Semester 4 - 2022 - November - Object Oriented Programming Oop Pattern 2019
2 pages
Be Computer Engineering Semester 3 2022 May Object Oriented Programming Oop Pattern 2019
PDF
No ratings yet
Be Computer Engineering Semester 3 2022 May Object Oriented Programming Oop Pattern 2019
2 pages
Gujarat Technological University
PDF
No ratings yet
Gujarat Technological University
2 pages
Oops With C++ PYQ
PDF
No ratings yet
Oops With C++ PYQ
5 pages
Wa0005
PDF
No ratings yet
Wa0005
4 pages
OOP in C++
PDF
No ratings yet
OOP in C++
25 pages
Ent-II Regular Sample Que Paper C++
PDF
No ratings yet
Ent-II Regular Sample Que Paper C++
5 pages
Question Papers C++
PDF
No ratings yet
Question Papers C++
8 pages
Oops
PDF
No ratings yet
Oops
2 pages
Ilovepdf Merged
PDF
No ratings yet
Ilovepdf Merged
12 pages
BCA 3 Semester Exam 2014 Object-Oriented Programming Using C++ Code-303301
PDF
No ratings yet
BCA 3 Semester Exam 2014 Object-Oriented Programming Using C++ Code-303301
2 pages
Practice Ques
PDF
No ratings yet
Practice Ques
16 pages
OOP Ques
PDF
No ratings yet
OOP Ques
10 pages
Oop With.c++ - 5-12-18
PDF
No ratings yet
Oop With.c++ - 5-12-18
3 pages
CE0316 OOCP Question Bank
PDF
No ratings yet
CE0316 OOCP Question Bank
6 pages
2016 - 1st Internal Paper
PDF
No ratings yet
2016 - 1st Internal Paper
2 pages
DS & OOPS Question Bank
PDF
No ratings yet
DS & OOPS Question Bank
16 pages
C++ Old Paper
PDF
No ratings yet
C++ Old Paper
10 pages
Object Oriented Programming Through C++ Feb 2022
PDF
No ratings yet
Object Oriented Programming Through C++ Feb 2022
2 pages
01 Introduction To Information Digital Systems Competitive Advantage Ver 10 Final
PDF
No ratings yet
01 Introduction To Information Digital Systems Competitive Advantage Ver 10 Final
87 pages
Institute of Information Technology and Management New Delhi-58 Question Bank-Unit I Object Oriented Programming in C++
PDF
No ratings yet
Institute of Information Technology and Management New Delhi-58 Question Bank-Unit I Object Oriented Programming in C++
8 pages
C++ QP
PDF
No ratings yet
C++ QP
7 pages
Sathyabama University: Register Number
PDF
No ratings yet
Sathyabama University: Register Number
2 pages
Cs 6456-Object Oriented Programming-Faq UNIT-I (2 Marks)
PDF
No ratings yet
Cs 6456-Object Oriented Programming-Faq UNIT-I (2 Marks)
12 pages
Object Oriented Programming and Desigbn Question Bank Unit - I Object and Classes
PDF
No ratings yet
Object Oriented Programming and Desigbn Question Bank Unit - I Object and Classes
9 pages
Oops Question Bank Michael
PDF
100% (1)
Oops Question Bank Michael
9 pages
VTU-14-01-2019 01:41:02pm: TG - TG - TG - TG - TG - TG - TG - TG - TG
PDF
No ratings yet
VTU-14-01-2019 01:41:02pm: TG - TG - TG - TG - TG - TG - TG - TG - TG
2 pages
Oopc Pre Gtu Que Bank New
PDF
No ratings yet
Oopc Pre Gtu Que Bank New
2 pages
Department of Computer Science and Engineering Question Bank
PDF
No ratings yet
Department of Computer Science and Engineering Question Bank
9 pages
Question Bank - I To V - Part A and Part B-1
PDF
No ratings yet
Question Bank - I To V - Part A and Part B-1
7 pages
06 MDCM Case Class Final
PDF
No ratings yet
06 MDCM Case Class Final
17 pages
C 2
PDF
No ratings yet
C 2
3 pages
Kadi Sarva Vishwavidyalaya Practical List: LDRP Institute of Technology and Research
PDF
No ratings yet
Kadi Sarva Vishwavidyalaya Practical List: LDRP Institute of Technology and Research
3 pages
WWW Manaresults Co in
PDF
No ratings yet
WWW Manaresults Co in
4 pages
300cubits Q3-4
PDF
No ratings yet
300cubits Q3-4
2 pages
Untitled
PDF
No ratings yet
Untitled
9 pages