CT1_OOPS Object Oriented Programming with C++ Past Paper PDF 2021-22

Document Details

Uploaded by Deleted User

Department of Computer Science and Engineering

2021

Tags

object-oriented programming c++ programming computer science programming concepts

Summary

This is a past paper for object-oriented programming with C++, from the 2021-22 academic session. The paper contains questions related to classes, functions, and general programming concepts. The document includes questions about procedure vs object-oriented programming, object-oriented concepts, function overloading, and more.

Full Transcript

# Department of Computer Science and Engineering ## B.Tech - 2nd Year Semester - III **Session 2021-22** **Branch:** CSE **Subject Code:** CS102301 **Subject Name:** Object Oriented Programming with C++ **Max. Marks:** 40 **Min. Marks:** 14 **Course Outcomes (CO):** At the end of the cours...

# Department of Computer Science and Engineering ## B.Tech - 2nd Year Semester - III **Session 2021-22** **Branch:** CSE **Subject Code:** CS102301 **Subject Name:** Object Oriented Programming with C++ **Max. Marks:** 40 **Min. Marks:** 14 **Course Outcomes (CO):** At the end of the course, a student will be able to: 1. Students will understand the concepts of flow of control, abstraction, pointer and recursion. 2. Analyse a simple programming problem specification. 3. Design a high-level solution to the problem using functional abstraction and general imperative programming language constructs. 4. Write, compile, execute and debug a C++ program which maps the high-level design onto concrete C++ programming constructs. **Note:** Attempt all questions. Parts (a) is compulsory & attempt any two parts from (b), (c) & (d). | Question No. | Questions | Marks | CO | BL | PI | |---|---|---|---|---|---| | 1 a) | Define class. | 2 | CO3, 4 | L2 | 2.1.1 | | 1 b) | Explain how Procedure Oriented Programming differs from Object Oriented Programming. | 6 | CO3 ,4 | L2 | 2.1.2 | | 1 c) | Discuss the basic concepts of Object Oriented Programming. | 6 | CO3 ,4 | L2 | 2.1.2 | | 1 d) | What do you understand by Function Overloading. Explain it through a suitable example? | 6 | CO3 ,4| L2 | 2.1.1 | | 2 a) | Define empty class. | 2 | CO4, 5 | L2 | 2.1.1 | | 2 b) | Explain the control structure used in C++. | 6 | CO4, 5 | L2 | 2.1.2 | | 2 c) | Write an Object Oriented program to check if the input number is Prime using class and object. | 6 | CO4, 5 | L2 | 2.1.2 | | 2 d) | Explain static members with programs. | 6 | CO4, 5 | L3 | 2.1.1 | | 3 a) | Define local class | 2 | CO4, 5 | L2 | 2.1.1 | | 3 b) | Write an object oriented program to find sum of 1 + 2 + 3 + ... + 100 using C++. | 5 | CO4, 5 | L2 | 2.1.2 | | 3 c) | Explain friend function and justify its need in an object oriented programming. | 5 | CO4, 5 | L2 | 2.1.2 | | 3 d) | Explain any 5 strings functions with programs. | 5 | CO4, 5 | L2 | 2.1.1 |

Use Quizgecko on...
Browser
Browser