Escolar Documentos
Profissional Documentos
Cultura Documentos
4. What is C89?
The version of C which is approved by ANSI (American National Standards Institute) in December 1989 & then
approved by International Standards Organization) in 1990 is known as C89.
5. What is C99?
The 1999 version of C which has got few features of C++ & Java is called C99.
2. What are the properties of an algorithm?An algorithm must possess the following properties:
a. It should get input data.
b. It should produce output.
c. The algorithm should terminate.
d. Algorithm should be clear to understand.
e. It should be easy to perform.
6. What is an array?
An array is a sequential collection of same kind of data elements.
8. Name the areas of application of data structures.The following are the areas of application of data structures:a. Compiler
design
b. Operating system
c. Statistical analysis package
d. DBMS
e. Numerical analysis
f. Simulation
g. Artificial Intelligence
h. Graphics
9. What are the major data structures used in the following areas: Network data model, Hierarchical data model, and
RDBMS?The major data structures used in the above areas are:
Network data model – Graph
Hierarchical data model – Trees
RDBMS – Array
13. What are the types of array operations?The following are the operations which can be performed on an array:
Insertion, Deletion, Search, Sorting, Merging, Reversing and Traversal.
15. What are the types of matrix operations?The following are the types of matrix operations:
Addition, multiplication, transposition, finding determinant of square matrix, subtraction, checking whether it is singular matrix
or not etc..
3. What is a string?
A sequential array of characters is called a string.
2. What are the languages from which C++ has been evolved?
C & Simula67.
3. What are the basic concepts of OOPs?The following are the basic concepts of OOPs:
Classes, Objects, Data abstraction and encapsulation, Polymorphism, Inheritance, Message Passing, and Dynamic Binding.
4. What is a class?
Class is an entity which consists of member data and member functions which operate on the member data bound together.
5. What is an object?
Objects are instances of classes. Class is a collection of similar kind of objects. When a class is created it doesn’t occupy any
memory, but when instances of class is created i.e., when objects are created they occupy memory space.
9. What is inheritance?
The process of inheriting the properties of one object by another object is called inheritance.
11. What are the steps involved in message passing?The following are the steps involved in message passing:
Creating classes, creating objects, and creating communication between objects.
13. What are the advantages of OOP?Data hiding helps create secure programs.
Redundant code can be avoided by using inheritance.
Multiple instances of objects can be created.
Work can be divided easily based on objects.
Inheritance helps to save time and cost.
Easy upgrading of systems is possible using object oriented systems.
2. List the areas of applications of object oriented programming?The following are few areas of applications of object
oriented programming:
CAD/CAM systems
Office automation and decision support systems
Object oriented databases
Real time systems
Simulation and modelling.
11. Write the syntax for defining member functions inside the class.Syntax:
class
{
private:
variables;
public:
variables:
return type
{
statements;
}
};
12. Write the syntax for defining member functions outside the class.Syntax:
return type :: (arguments)
{
body;
}
14. Write the syntax for making an outside function inline?Member functions can be made inline even though we define them
outside the class by using the keyword inline.
Syntax:
class
{
variables;
public:
return type (arguments);
};
inline return type :: (arguments)
{
body;
}