Programming and Problem Solving through Python

Algorithm and Flowcharts to solve problems Question & Answer



Question : 1

What is an algorithm?



Answer :

An algorithm is defined as the sequence of instructions written in simple English that are required to get the desired results. It helps to develop the fundamental logic of a problem that leads to a solution.



Question : 2

What is a flowchart? How is it useful?



Answer :

A flowchart is a pictorial representation of an algorithm. It uses boxes of different shapes to represent different types of instructions. These boxes are connected with arrow marks to indicate the flow of operations. It helps in:


Communication — The pictorial representation of the flowchart provides better communication. It is easier for the programmer to explain the logic of a program.

Effective Analysis — It is a very useful technique, as flowchart is a pictorial representation that helps the programmer to analyze the problem in detail.



Question : 3
Example not (boolean Not) with an example.


Answer :

The not operator is used to reverse the logical state of its expression. Logical not returns True is the expression is false and False if the expressions is true. For example,

If * is ture , it returns False.

if * is false, it returns True

* =   True                                                                                                                                                                                                                                                                                                                                 



Question : 4
Example not (boolean Not) with an example.


Answer :

The not operator is used to reverse the logical state of its expression. Logical not returns True is the expression is false and False if the expressions is true. For example,

If * is ture , it returns False.

if * is false, it returns True

* =   True ;

not * returns False.                                                                                                                                                                                                                                                                                                                              



CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad