0% found this document useful (0 votes)
38 views20 pages

Oops 1

Hujju

Uploaded by

Uttam Chaubey
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
0% found this document useful (0 votes)
38 views20 pages

Oops 1

Hujju

Uploaded by

Uttam Chaubey
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
You are on page 1/ 20
, con " Paper Code: MCA-ILI Roll No: | Le ilate} ) MCA ye (cow (SEM 1) ODD SEMESTER (ieee MINOR TEST (EXAMINATION) 2022-2023 gs : Kuler. Object-Oriented Programming with C++ Max. Marks: 30. ut c= fiblay Time: 2 Hours Note: Answer all questions Q.1 Attempt any Three parts of the following.Q.1 (a) is compulsory. (a) Explain basic concepts, benefits and applications of OOPs in detail? a (©) What is typecasting? What are explicit & implicit type conversions with example. 3 (©) Compare and contrast for, while & do-while looping statements on the basis of syntax? 3 @) Differentiate between nested if-else & switch statement. Write a C++ program that checks whether a number is palindrome or not. 3 Q.2 Attempt any Two parts of the following.Q.2 (a) is compulsory (a) What is the nee example, mistructer and destructor? Explain types of constructors with 4 (b) What do you mean by inline function? Discuss about array of objects with example 3 (©) Explain friend function. Write a program to demonstrate friend function in C++. 3 (@ What is constructor overloading? Write a C++ program to demonstrate constructor overloading, A Q.3 Attempt any Two parts of the following.Q.3 (a) is compulsory. (a) What is function? What are its advantages? Explain the difference b/w call by value & call by reference. Write a program in C++ to generate Fibonacci series using recursion function. 4 (b) Discuss the use of public, private & protected access specifier & their visibility in «the class. What is the default access modifier in a class? 3 (©). What do you mean by operator precedence? Differentiate between Procedural Oriented Programming & Object-Oriented Programming, 3 —@_ Whats a class? What is the relation b/w an object & a class? Write a program which shows how to define a class, how to .ecess member functions & how to create £ access objects in C++. | | | aS Giver, Chevit) 7 MCA 111 Rolin [>] mca ODD SEMESTER MINOR TEST -2021-2022 COBIECT ORIENTED PROGRAMMING WITH C++ Time-2Hrs : Marks-20 * Note-Answer all questions Qi Attempt any three parts of the following. Q1(a) is compulsory. Genk fat What isthe primary data type in CH, their size, range, and format? = » 5) Explain the difference between Do While dnd WFile statement with an example. T Ac) What aré Destructors. Explain with an example. (d) What is Constructor. Define different types of constructors. Q2 Attempt any two parts of the following. Q2(a) is compulsory. Cas What are derived and user defined data types in C++. I 4 (GAB) Write a program to print prime numbers up to a given number. 2 (c) What are the differences between the object-oriented programming and procedure-oriented programming? 2 Q3 Attempt any two parts of the following. Q3(a}is compulsory. °F (a) What is friend function? Write a program to swap two numbers using pass by addresses with we help of friend function’ 4 : (£21) Describe the concept static data member and static member functions with suitable example. 2 <= {¢) Whats inline function? Write down the necessity and limitation of inline function 2 hil G-a) de 5 ay, 3 wl Cod; , boots Pam ro’ MCA-105 | roti No. [Jo] TAL] 214) 1112 M.C.A, SUMMER TERM MINOR TEST 2018 - 2019 Subject Name: Object Oriented Programming using C++ Time: 2 Hrs. Max. Marks: 20 Note: Answer all questions. Q1 Attempt any Three parts of the following. Q. 1(a) is compulsory. (a). Write a program in C++ that prints following pattern- 4 1 1 A aoe 1 pede 33333 33333 B 4444444444444 4 (b). Given student's records with each record containing id, name and age of astudent. Write 2 a C++ program to read these records and display the student's record whose age is greater than 18. Ww Design a class Box in C++ with constructor overloading with following, description- 2 Private Member I. Length I. Width MIL. Height Public Member é 1. A function Display() that displays the values of all members of Box objec Overload constructor Box with no argument, one argument, two argument and three argument. | (OY What is friend function? Explain it with a suitable example 2 / Q2 ‘Attempt any Two parts of the following. Q. 2(a) is compulsory. (2) Write a C+ function that accepts two parameter n] and n2 and prints all primenumber 4 between them.

You might also like