Ncert solutions for class 11 Computer Science Python Chapter 6 Algorithms and Flowcharts are prepared by CBSE student eCARE expert to score good marks in class 11. Classes 11 Computer Science Python Chapter 6 Algorithms and Flowcharts contain many topics which are very important to score good in class 11. There are some important topic mentioned below:
Modular programming : It is the act of designing and writing programs as interactions among functions that each perform a single well defined function & which have minimal side effect interaction between them. It is heavily procedural. The focus is entirely on writing code (functions). Data is passive. Any code may access the contents of any data structured passed to it.
Object Oriented programming : it is a programming using “objects”-data structures consisting of data fields & methods together with their interactions to design applications and computer programs. Programming techniques may include features such as data abstraction, encapsulation, messaging, modularity, polymorphism/and inheritance.
|Top-Down Method||Bottom-up Method|
|The principle of top down method dictate that a program should be divided into a main module and its related module. Each module should also be divided into sub modules according to software engineering and programming style. The division continues till the module consists only of an elementary process that is intrinsically understood and cannot be further subdivided.||Bottom-up method is just the opposite of top- down method. It refers to a style of programming in which an application is constructed with existing primitives of the programming language and then gradually more and more complicated features are added till applications are written. In other words, initiating the design with simple modules and then fuild them into more complex structures ending at the top is bottom-up method.|
Define infinite loop.
An infinite loop is a sequence of instructions in a computer program which loops endlessly, either due to the loop having no terminating condition, having one that can never be met, or one that causes the loop to start over.
Give an example for infinite loop
A simple example of an infinite loop is instructing a computer to keep on adding 0 to 1 until 2 is reached. This will never happen.
What is a logical operator ?
Logical operator is a operator used to combine relational expressions. In C++, there are three types of logical operators :
(i) Logical AND
(ii) Logical OR
(iii) Logical NOT
Q What are the advantages of using a modular approach in programming ?