0% found this document useful (0 votes)
2 views

Algorithms - QnA

Uploaded by

Shalaka Maini
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Algorithms - QnA

Uploaded by

Shalaka Maini
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

CHAPTER - ALGORITHMS AND PROGRAMS

Q1. What is an algorithm? Explain its significance in computer science.


An algorithm is a step-by-step sequence of instructions carried out in a specific order to perform a
particular task. In simpler words, it is a plan to solve a problem. In computer science, algorithms are
important because they form the backbone of computational processes. They enable computers to
perform tasks efficiently, accurately, and reliably.

Q2. What is the difference between algorithm and program?


Algorithm Program
Algorithms help to solve a given problem logically. Program is an expression of the algorithm in a
programming language.

Algorithms are written at the design phase. Programs are written at the implementation
phase.

Algorithms are syntax* independent. Programming is syntax dependent.


Algorithms can be written in any speaking Programs are written only in programming
language like English. languages.

*Syntax – The rules of a programming language.

Q3. What are the characteristics of an algorithm?


Every algorithm should have the following five characteristics:
 Input: The algorithm should take zero or more input.
 Output: The algorithm should produce one or more outputs.
 Definiteness: Each and every step of algorithm should be defined clearly.
 Effectiveness: A human should be able to calculate the values using paper and pencil.
 Termination: An algorithm must terminate after a finite number of steps.
Q4. Make an algorithm for your class picnic?
(Consider what needs to be done before (like choosing a date and place, and getting food and stuff
ready), during (having fun and playing games), and after the picnic (cleaning up and packing
everything).

You might also like