Cs Viva Questions
Cs Viva Questions
• Getch() : getcharacter.
1) Define class ?
2) Define object ?
PROGRAM (1,2,3,4,5)
DATA STRUCTURES.
8) DATA STRUCTURE : A data structure is a specialized format for
organizing and storing data.
Ans : The data that are directly operated upon machine level
instructions are called primitive data structure.
Ans : The process of removing an existing data item from the given
collection of data item.
15) Traversal : The process of acessing each data item exactly once to
perform some operation is called Traversal.
PROGRAM 6
SIMPLE INTERSET
Si = (p*t*r)/100
FUNCTION OVERLOADING
PROGRAM 9
INLINE FUNCTION
PROGRAM 10
CONSTRUCTOR
PROGRAM 11
INHERITANCE
Base Class : The class that inherit its property to another class is
called base class or super class.
Derived class : A class that get inherited by the other class is
called derived class or sub class.
Advantages of inheritance
1) Reusing existing code
2) Memory utilization
3) Faster development time.
TYPES OF INHERITANCE
Program 12
pointers
24) Pointer : “A pointer is a variable which holdes the address of
another class”.
HTML