Unit 2:L1 - Algorithm design using pseudocodes and program flowcharts Flashcards

1
Q

What is an Algorithm?

A

A sequence of steps for solving a problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the main stages to solving problems?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In what ways can algorithms be expressed in?

A

Natural languages
pseudocodes
flowcharts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a variable?

A

A variable is a single data item can be held while a program is running

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a variable also known as?

A

Location in the memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does any variable consist of?

A

Data type
Name
Size
Memory location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is size?

A

No. of characters that can be stored

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the rules to declare a variable?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly