Programs Flashcards
1
Q
What is a program?
A
A program is a set of executable steps, written in a programming language
2
Q
What are the characteristics of programs?
A
- They are written and implemented in specific programming languages
- They are executable by computers
- They can be edited or updated during execution
3
Q
What are the differences between algorithms and programs?
A
- Algorithms are Abstract and are sets of steps required for solving a problem, programs are concrete implementations of algorithms
- Algorithms are not bound to any programming language, while programs are written in a specific programming language
- Algorithms are not directly executed by computers but programs are directly executed by computers
4
Q
What are the 4 attributes of a variable?
A
Data type, Scope, stotrage class(visiblity), life time