DIFFRENCE BETWEEN STRUCTURED PROGRAMING AND OBJCET ORIENTED
PROGRAMING.
Answers were Sorted based on User's Feedback
Answer / aks
Structured Programming : Revolves around Creating
Programming Constructs. One writes the programs and
modifies the data structures with the focus on Algorithms
and Programming Routines. C/Pascal/BASIC are examples of
structured Programming.
OOP: is focussed on creating data structures and writing
Methods to modify them. The focus is on Creation of Data
Structures and providing Methods to modify these values.
eg. C++/Java/
| Is This Answer Correct ? | 17 Yes | 3 No |
Answer / rajeshwar raja
Structure Programming : Approaches the problem in "TOP-DOWN"
fashion.
Object Oriented Programming : Approaches the problem in
"BOTTOM-UP" fashion.
| Is This Answer Correct ? | 9 Yes | 3 No |
Answer / renjith m
Structured programming consists of breaking big problems
into smaller problems, then further breaking those into
still smaller problems, and so on, until a level of such
simplicity is reached that the implementation is obvious to
the programmer expected to do the coding. Object-oriented
programming consists of grouping code with the data on
which it operates so that this "object" can function
independently of the rest of the software system.
Structured programming and object-oriented programming are
not mutually exclusive. You can structure the code in an
object, and you can use objects to implement the modules of
code in a structured program.
| Is This Answer Correct ? | 6 Yes | 4 No |
Answer / murali
structured programing is once we write the program it's
modification is diffcult beacause so many lines of code
inside the pg we must check every line of code and
modification done accourdingly
oop is very easy to modify any code beacause it consist
classes then easily can modify
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / abhi
Procedure Oriented Programming
 Importance is given to the sequence of things to be
done i.e. algorithms
 larger programs are divided into functions
 most functions share global data i.e data move
freely around the system from function to function.
 there is no access specifier
 operator cannot be overloaded
 follows top to bottom approach
 Inheritence is not supported
Object Oriented Programming
 Importance is given to the data.
 larger programs are divided into objects
 mostly the data is private and only functions
inside the object can access the data.
 there are public, private and protected specifier.
 operator can be overloaded
 follows bottom to top approach
 Inheritence is supported
| Is This Answer Correct ? | 1 Yes | 2 No |
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What are virtual classes?
1. Strong name 2. how to prevent a class from being inherited 3. delegates 4. default modifier for interface 5. default modifier for class 6. base class for exception 7. diff bet trigger and view in sql 8. how to exchange values from one page to another page 9. can multiple catch block ll be executed at same time 10. can u store different data types in an array & array list 11. when we ll use trigger 12. try,catch,finally usage
Whats is abstraction in oops?
what is the main difference between sizeof() operator in c and c++
#include <iostream> using namespace std; int main() { int a = 2; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][c[1][4]]; }
Why is destructor used?
what uses of c++ language?
WAP find square root of any number (without using sqrt() )?
what is runtime polymorphism? For the 5 marks.
What is a null tree?
what are abstract classes and how they impliment , with example