OBJECT ORIENTED CONCEPTS
[As per Choice Based Credit System (CBCS) scheme]
(Effective from the academic year 2017 - 2018)
SEMESTER - VI
Subject Code 18CS45
IA Marks 40
Number of Lecture Hours/Week 4
Exam Marks 60
18CS45 - OBJECT ORIENTED CONCEPTS
Important Questions - MODULE - 1
These Questions are being framed for helping the students in the "FINAL Exams" Only (Remember for Internals the Question Paper is set by your respective teachers). Questions may be repeated, just to show students how VTU can frame Questions.
- ADMIN
18CS45 - OBJECT ORIENTED CONCEPTS
Important Questions - MODULE - 1
1. Explain how C++ allows member functions in structures. Give example. (06 Marks) (Dec.2019/Jan.2020 | 17 Scheme)
2. What is data abstraction? How is it implemented in C++? | (06 Marks) (Dec.2019/Jan.2020 | 17 Scheme)
3. What is function overloading? Write a C++ program to define three overloaded functions area ( ) to find area of circle, triangle and rectangle. (08 Marks) (Dec.2019/Jan.2020 | 17 Scheme)
4. How we can make some specific member functions of one class friendly to another class? (06 Marks) (Dec.2019/Jan.2020 | 17 Scheme)
5. What is constructor? List the different types of constructors and explain default constructor with example. (08 Marks) (Dec.2019/Jan.2020 | 17 Scheme)
6. What is static member of a class? Write a CH program to count the number of objects created. (06 Marks) (Dec.2019/Jan.2020 | 17 Scheme)
7. Define Structure. With suitable example. (05 Marks) (Dec.2019/Jan.2020 | 15 Scheme)
8. State and compare Object - Oriented program using with procedure oriented programming. (04 Marks) (Dec.2019/Jan.2020 | 15 Scheme)
9. Define Inline function. Explain with an example program. What are the conditions where inline functions cannot be expanded? (07 Marks) (Dec.2019/Jan.2020 | 15 Scheme)
10. Differentiate between class and structure. With an example, explain the syntax for defining a class and structure. (08 Marks) (Dec.2019/Jan.2020 | 15 Scheme)
11. Define friend junction and rules to be used while using it. Explain with a C++ program to add two complex numbers. (08 Marks) (Dec.2019/Jan.2020 | 15 Scheme)
12. Explain the various features of OOC. (08 Marks) (June/July 2019 | 17 Scheme)
13. What is a constructor? Mention its types. Explain the parameterized constructor with a suitable code. (08 Marks) (June/July 2019 | 17 Scheme)
14. Give the difference between procedure oriented programming and object oriented programming. (04 Marks) (June/July 2019 | 17 Scheme)
15. What is an inline function? Write a C++ function to find the maximum of 2 numbers using inline. (08 Marks) (June/July 2019 | 17 Scheme)
16. Why friend function is required? Write a program to add two numbers using friend function. (08 Marks) (June/July 2019 | 17 Scheme)
17. Write short note son function overloading. (04 Marks) (June/July 2019 | 17 Scheme)
18. Explain with example programs, how console input and console output are performed in C++. (05 Marks) (June/July 2019 | 15 Scheme)
19. Explain function overloading with an example program. (05 Marks) (June/July 2019 | 15 Scheme)
20. What are reference variables in C++? Explain with an example program. (06 Marks) (June/July 2019 | 15 Scheme)
21. Explain the usage of scope resolution operator with an example program. (08 Marks) (June/July 2019 | 15 Scheme)
22. Explain parameterized constructor with an example program. (08 Marks) (June/July 2019 | 15 Scheme)
23. Write the differences between procedure oriented program and object oriented program. (04 Marks) (Dec.2018/Jan.2019 | 15 Scheme)
24. List and explain any four features of object oriented program. (05 Marks) (Dec.2018/Jan.2019 | 15 Scheme)
25. What is function overloading? Write a C++ program to define three overloaded functions to find the sum of two integers, sum of two floating point numbers and sum of three integers. (07 Marks) (Dec.2018/Jan.2019 | 15 Scheme)
26. Define a Student class with following measures:
Data members: Roll No, Name, average marks
Member function: to read the data, to print the data, write a C++ program to read the data of 10 students and print the 10 student's information. (05 Marks) (Dec.2018/Jan.2019 | 15 Scheme)
27. Define a friend function. Illustrate with an example. (05 Marks) (Dec.2018/Jan.2019 | 15 Scheme)
28. What is constructor? Mention its types. Explain parameterized constructor with an example. (06 Marks) (Dec.2018/Jan.2019 | 15 Scheme)
30. Write a C++ program to get employees details (empno, ename, bsalary(initialized to 1000 by constructor) and allowance) of Employee class through keyboard using the method Getdata( ) and display them using the method Dispdata( ) on console in the format empno, ename, bsalary, allowance. (08 Marks) (June/July 2018 | 15 Scheme)
31. Describe function Prototype, with an example. (04 Marks) (June/July 2018 | 15 Scheme)
32. Explain namespace, with an example. (04 Marks) (June/July 2018 | 15 Scheme)
33. Define Function Overloading and write a C++ program for finding areas of circle (PI * r * r), rectangle (l * b) and square (x * x) by getting r, l. b and x through keyboard and printing the areas on console using the method Area( ) applying the concept of function overloading. (08 Marks) (June/July 2018 | 15 Scheme)
34. How do namespace helps in preventing pollution of the global namespace. (04 Marks) (June/July 2017 | 15 Scheme)
35. What is function polymorphism? Write a program in C++ using overloaded function area to find area of circle, triangle and rectangle. (06 Marks) (June/July 2017 | 15 Scheme)
36. Explain how one can bridge two classes using friend function. Write a C++ program to find the sum of two numbers using bridge friend function add(). (06 Marks) (June/July 2017 | 15 Scheme)
37. Can you overload constructor and destructor? Justify with suitable program. (06 Marks) (June/July 2017 | 15 Scheme)
38. What is reference variable? Explain. Also write a program in C++ to swap two int values and display the values before and after swapping. (05 Marks) (June/July 2017 | 15 Scheme)
39. What are static member of a class? Write a C++ program to count the number of objects created. (05 Marks) (June/July 2017 | 15 Scheme)
-ADMIN
ANSWER SCRIP FOR THESE QUESTIONS WILL BE UPLOADED "AS SOON AS POSSIBLE"
Visit: https://hemanthrajhemu.github.io/AnswerScript/
For immediate Notification Join the Telegram Channel
-ADMIN
T = Text book
QB = Question Bank
AS = Amswer Script
-ADMIN