Unit 2:L1 - Algorithm design using pseudocodes and program flowcharts Flashcards
What is an Algorithm?
A sequence of steps for solving a problem.
What are the main stages to solving problems?
1) Understanding the problem
2) Defining the scope of the solution
3) Create the solution
4) Documenting the solution
5) Testing the solution
6) Creating the solution
In what ways can algorithms be expressed in?
Natural languages
pseudocodes
flowcharts
What is a variable?
A variable is a single data item can be held while a program is running
What is a variable also known as?
Location in the memory
What does any variable consist of?
Data type
Name
Size
Memory location
What is size?
No. of characters that can be stored
What are the rules to declare a variable?
1) Variable name should be meaningful
2) Reserve keywords can’t be taken
3) Every variable name should start with a letter from the alphabet
4) There should not be any spaces in the variable name