You are on page 1of 8

TITLE : PROGRAMMING IN C++

YEAR : 2015 2016

SEM : II

SUB. CODE: 15BCA004/15BIT003


CREDITS : 4

CLASS HOURS : 5

OBJECTIVE: This course introduces the basic concepts of programming in C++


UNIT 1: Object Oriented Programming (OOP)
Principles of Object Oriented Programming (OOP) Basic Concepts of OOP Benefits
of OOP Application of OOP-Introduction to C++ - Tokens Keywords Identifiers
Variables Operators Expressions and Control Structures
UNIT 2: Functions
Arrays Pointers Access specifies - Functions Functions Prototyping - Parameters
Passing in Functions Values Return by Functions Inline Functions Static data
member Static member function - Friend Functions.
UNIT 3: Classes and Objects
Classes and Objects Constructors and Destructors Type of Constructors Copy
constructors Function Overloading Operator overloading Constructor Overloading
- Type Conversion.
UNIT 4: Inheritance
Inheritance Type of Inheritance Virtual Functions-Virtual Base Class Mapping
Console I/O operation.
UNIT 5: Files
Files File Streams File Operations File pointer Error Handling During file
operations Command line arguments.
BOOKS FOR STUDY:
1.E. Balaguruswamy Object Oriented Programming with C++ - TMH

REFERENCE BOOK:

1. Robert Lafore Object Oriented Programming in C++-Galgotia.

STRUCTURE OF THE QUESTION PAPER

Name of the department: BCA & IT


Subject Code

: 15BCA004/BIT003

Title of the Paper

: PROGRAMMING IN C++

Question paper format

Section Unit I Unit II Unit


III
A
2
2
2

Unit
IV
2

Unit V

Total

Marks

10

10 x3 =30

5 out
of 8

5 x 8 = 40

2 out
of 4

2 x 15 =
30

MODEL QUESTION PAPER


SUB CODE: 15BCA004/15BIT003

MAX MARKS: 100

TIME: 3 HRS
PART A

(10 *3 = 30)

ANSWER ALL QUESTIONS:


1. Define OOPS.
2. What is encapsulation?
3. Name the access specifiers.
4. What is a constructor?
5. What is Operator Overloading?
6. Define Casting Operator.
7. List the types of inheritance.
8. Define Abstract class.
9. What are the two types of streams?
10.
What is command line argument?
ANSWER ANY FIVE:
(5 *8 = 40)
1. Write short notes on Class and Object with example.
2. Explain scope resolution operator with program?
3. Explain Function Overloading.
4. Explain Copy Constructors with example.
5. Explain Unary Operator overloading with example.
6. Explain in detail about virtual base classes?
7. List out the rules of inheritance.
8. Define file. Explain about opening a file in detail with program.
ANSWER ANY TWO:

(2 *15 = 30)

1.
2.
3.
4.

Describe the basic concepts of OOPS.


Discuss how the member function can be defined in a class
Explain in detail about Type conversions?
Explain in detail about inheritance with its types.

Question Bank
Unit-I
Section A

1. Define OOPS.
2. Define Class.
3. Define Inheritance.
4. What is data abstraction?
5. What is data hiding?
6. What is message passing?
7. Define Object.
8. What is encapsulation?
9. List out any three application of OOPS.
10. What is dynamic binding?
11. What is a keyword?
12. List out the different types of expressions.
Section B

1.
2.
3.
4.
5.
6.
7.

Differentiate the procedure oriented and object oriented programming.


Briefly explain the benefits of OOPS.
Explain the applications of OOPS.
Explain the features of Object Oriented Programming?
Write in detail about expressions with example.
Define operators. Explain in detail about operators with example.
Write a sample program for nested if.

Section C

1. Describe the basic concepts of OOPS.


2. Explain about the applications and

benefits

of

object

oriented

programming.
3. Explain about the Features and benefits of object oriented programming.
4. What is known as control structure? Explain in detail about conditional
structure.
5. Write in detail about looping structure in detail with example.

Unit-II
Section A
1. Define array.
2. Define pointers.
3. Give the general syntax of class.
4. Name the access specifiers.
5. Define how to access the class members.
6. What is Nesting of member functions?
7. What is a private member function?
8. What is a static data member?
9. Define function.
10. Define Friend functions.
Section B:
1. Explain Functions with example.
2. Explain Static member function with example.
3. Discuss access specifiers.
4. Explain scope resolution operator.
5. Write a program for inline function, explain it.
6. Explain about Function prototype.
7. Write in detail about call-by-value and call-by-reference with example.
Section C:
1. Explain friend function with example.
2. Discuss how the member function can be defined in a class.
3. Write a program for static member functions.
4. Write in detail about different types of array.
5. Discuss about pointers.

Unit III
Section A:

1. What is Constructors?
2. What is Operator Overloading?
3. What is Destructors?

4. What is function overloading?


5. Name the types of Operator Overloading?
6. Name the Operators that can be overloaded.
7. Name the Operators that cannot be overloaded.
8. Define type conversions.
9. Define Casting Operator.
10. Name the different ways to handle when the data type are mismatched.
Section B:
1. Explain Unary Operator overloading with example.
2. Explain Binary Operator overloading with example.
3. Explain copy constructor with example.
4. Write a C++ program to manipulate strings using Operators.
5. Discuss about the operators that can and cannot be overloaded.
6. Differentiate between constructor and destructor.
Section C:
1. Explain
2. Explain
3. Explain
4. Explain
5. Explain
6. Explain

in detail about Type conversions?


about Class and Objects with example.
Constructors and its type with example.
about Destructors with example.
about the types of operator overloading.
about Function Overloading with example.

Unit IV
Section A:
1. What is Inheritance?
2. List the types of inheritance.
3. What is multiple inheritance?
4. What is multilevel inheritance?
5. What is hierarchical inheritance?
6. What is hybrid inheritance?
7. What is the use of virtual base class?
8. Define Abstract class.
9. Define virtual functions.
10. Define manipulators.
Section B:
1.
2.
3.
4.

Explain in detail about virtual base classes?


Write a C++ program to implement the concept of single inheritance.
Write short note on abstract class.
List out the advantages and disadvantages of Inheritance.

5. List out the rules of inheritance.


6. List out the rules of Virtual functions.
7. Explain Pure Virtual functions with example.
Section C:
1.
2.
3.
4.
5.

Explain in detail about inheritance with its types.


Explain any two types of inheritance with example.
Explain Virtual Functions with example.
Discuss about multiple inheritance with example.
What is hybrid inheritance? Write a C++ program to implement the concept of
Hybrid inheritance.

Unit V
Section A:
1. Define File.
2. What are the two types of streams?
3. Name the two classes that C++ supports for input and output with files?
4. What is command line argument?
5. Name some error handling functions during File operations?
6. Define sequential file.
7. Give the general syntax for opening a output and input file.
8. Name the two ways to detect the end of file.
Section B:
1. Write a short note on command-line arguments with an example?
2. Explain the various modes available in opening a file.
3. Define file. Explain about opening a file in detail with program.
4. Explain in detail about any four error handling functions during file operations?
5. Write short notes on file stream operations.

Section C:
1. Write detailed notes on files in C++?
2. Discuss briefly about:
(i) open() file modes.
(ii)seekg() and seekp() functions.
(iii)tellg() and tellp() functions.
3. Write short notes on : a.) error handling during file operations
b.) formatted console I/O operations.

4. Write a C++ program to write and read the data from a file.

You might also like