1.

Write a short note on the techniques of programming.

Answer»

1. Procedural programming technique:

It is a list of instructions telling a computer, step-by-step, what to do, usually having a linear order of execution from the first statement to the second and so forth with occasional loops and branches. Procedural programming languages include c, C++, etc.,
Some of the benefits of the procedural programming methodology are:

  • Easy to read program code.
  • Easily maintainable program code, as various procedures can be debugged in isolation.
  • The code is more flexible as one can change a specific procedure that gets implemented across the program.

2. Structured programming technique:
Structured programming deals only with logic and code, and suggests making use of programming structures such as sequence, selection, iteration and modularity in programs.

Features:

  • It focuses on techniques for developing good computer programs and problem solution.
  • It is most important to consider single-entry and single-exit control in a program and structures.
  • Structured code is like a page, which can be read from the top to bottom without any backward references.
  • Read from top to bottom makes the code easy to read, test, debug, and maintain.
  • It focuses on techniques for developing good computer programs and problem solution.
  • It is most important to consider single-entry and single-exit control in a program and structures.
  • Structured code is like a page, which can be read from the top to bottom without any backward references.
  • Read from top to bottom makes the code easy to read, test, debug, and maintain.

3. Object-oriented technique:
Object-oriented programming is a method of programming where a system is considered as a collection of objects that interact together to accomplish certain tasks. Objects are entities that encapsulate data and procedures that operate on the data. The main purpose of object-oriented programming is to simplify the design, programming and most importantly debugging a program.

So to modify a particular data, it is easy to identify which function to use. The important elements of OOP are objects, classes, abstraction, encapsulation, polymorphism, and inheritance.



Discussion

No Comment Found