Programs Flashcards

1
Q

What is a program?

A

A program is a set of executable steps, written in a programming language

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

What are the characteristics of programs?

A
  1. They are written and implemented in specific programming languages
  2. They are executable by computers
  3. They can be edited or updated during execution
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the differences between algorithms and programs?

A
  1. Algorithms are Abstract and are sets of steps required for solving a problem, programs are concrete implementations of algorithms
  2. Algorithms are not bound to any programming language, while programs are written in a specific programming language
  3. Algorithms are not directly executed by computers but programs are directly executed by computers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 4 attributes of a variable?

A

Data type, Scope, stotrage class(visiblity), life time

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