Tuesday 19 March 2019

How to prepare


VOLUME 1
REVIEW OF C++ (Theory) –2  marks
1)  Give examples for the following:
Identifiers, Keywords, Constants,Operators
2) What is cascading of I/O operators?
3)What is the difference between setw() and endl?
4)Write any two objects of iostream.h and any two functions belonging to iomanip.h?
5)What is the difference between compilation and linking of C++ program?
6)What are different types of data types with examples?
7) What are the different types of literals with examples?
8) List out the type modifiers and their purpose
9)List out
a) Assignment, short hand assignment,Unary, binary, ternary, relational, and logical operators
10)What is the order of precedence of arithmetic and logical operators?
11)What is the difference between automatic type conversion and type casting? Give example for each of them.
12)What is a fall through with respect to switch case?
13) What is dangling else statement?
14) List out the header files and the necessary built-in functions for each of the following:
a)Standard input/output functions
b) Mathematical
c) String
d) Character
e) Miscellaneous(other)

15)Write  2 differences between
a)Function prototype and definition
b)default and constant argument
c) call by value and by reference
d)scope rules of variables and functions
with examples
16) Explain typedef and #define pre-processor with example for each.

REVIEW OF C++ (Applications) – Remaining 10/12 marks
Go thru the following TB worked out examples:
P-63 onwards 12,14,15,19,20,22,23,25-34,38-40,45
Unsolved problems:
P-85 onwards 4-11
Pointers
P 405 onwards 10
Short Answer Qns
P 418 onwards 8,11,12,30,34,35

Object Oriented Programming Structure (OOPS) – total – 12 marks
Theory – 2/12  marks
1)    What are the differences between
a)     Data hiding and encapsulation
b)    Class and an object
c)     Abstract class and concrete class

With example in terms of implementation in c++ code for each of these.

2)    How is polymorphism implemented? Give example.
3)    Illustrate different levels of inheritance.
4)    What is transitive nature in inheritance.
5)    What is the advantage of object oriented programming over earlier programming methodologies?
Read the following exercises
Solved problems P-183 onwards 2,3,7,8
OOPS – Applications – remaining 10/12 MARKS
Classes and Objects
Unsolved – P 242 onwards 4,5,6,9
(Try 2 problems for class definition using scope resolution operator)

Constructors and Destructors (Do the exercise given below)
1)        Define a class called EXAMINATION with the following members.
SUBJECT_CODE of type integer
SUBJECT_NAME of type string
DIFFICULTY_LEVEL of type character
NO_OF_QNS of type integer.

            Answer the following:
i)                   Define a default constructor and a parameterized constructor to initialize the data members with the values passed as parameters.
ii)                 Define a copy constructor .
iii)               Define a member function that would print the values.
iv)               Write required function calls for qns i),ii) and iii)
v)                 Define a destructor that would print a message “Completed”.
vi)               How many times the destructor would be invoked?

2)    Illustrate default constructor of a class and a constructor with default arguments.
TB exercises
P240 onwards Q19,20,21,22,23,24,25


Inheritance
Model 1
Class Base
Private, protected,public members
Class Derived (private/protected/public Base)
Private, protected, public members
Answer the following:
1)    What is the type of inheritance depicted above?
2)    List out the members accessed by the object of the class Derived if the visibility mode is
a)     Private
b)    Protected
c)     Public
3)    What will be the size of the object of class Derived?
4)    What are the members that can be accessed by the member function(s) of Derived?
5)    What will be the order of invocation of constructors and destructors.

Model 2
Class Base
Private, protected,public members
Class Derived1 (private/protected/public Base)
Private, protected, public members
Class Derived2 (private/protected/public Derived1)
Private, protected, public members

Answer the following:
6)    What is the type of inheritance depicted above?
7)    List out the members accessed by the object of the class Derived1 if the visibility mode is
d)    Private
e)     Protected
f)      Public
8)    List out the members accessed by the object of the class Derived2 if the visibility mode is
g)     Private
h)    Protected
i)       Public
9)    What will be the size of the object of class Derived2?
10) What are the members that can be accessed by the member function(s) of Derived1?
11)What are the members that can be accessed by the member function(s) of Derived2?
12)What will be the order of invocation of constructors and destructors.


Model 3
Class Base1
Private, protected,public members
Class Base2
Private, protected, public members
Class Derived (private/protected/public Base2, private/protected/public Base1)
Private, protected, public members
Answer the following:
13)What is the type of inheritance depicted above?
14)List out the members accessed by the object of the class Derived if the visibility mode is
j)       Private
k)     Protected
l)       Public
15)If no visibility mode is specified, then what would be the default visibility mode?
16)What are the members that can be accessed by the member function(s) of Derived?
17)What are the members that can be accessed by the member function(s) of Base2?
18)What will be the size of the object of class Derived?
19)What will be the order of invocation of constructors and destructors.

Model 4
Class Base1
Private, protected,public members
Class Derived1 (private/protected/public Base2, private/protected/public Base1)
Private, protected, public members
Class Derived2 (private/protected/public Base2, private/protected/public Base1)
Private, protected, public members
Class Derived(private/protected/public Derived1, private/protected/public Derived2)
Private, protected, public members
Answer the following:
20)What is the type of inheritance depicted above?
21)List out the members accessed by the object of the class Derived if the visibility mode is
m)  Private
n)    Protected
o)    Public
22)What will be the size of the object of class Derived?
23)What are the members that can be accessed by the member function(s) of Derived?
24)What will be the order of invocation of constructors and destructors.

TB – Unsolved Problems – P-292 onwards
2,3,4
P-297 21,22,23,24,25,26


DATA FILE HANDLING – 6 MARKS
TB P-354
20,21,22
P-356
1-16,18-21

DATA STRUCTURE – 14 MARKS

Arrays
TB P-492 onwards
Address calculation - 7-23
33,35,36,38,41,42,43,44
P-494
6,8,11,16,17,20-37
P-567
Stacks and Queues
P-567
1-5,7,9-11,25-36
P568
11-22


Work out Sample Paper 2019-20,west cluster 2019-20,
cssc 2019-20