2.2) Programing Fundamentals Flashcards
1
Q
What are variables?
A
- Used to store data in programs. Can be changed as run
2
Q
What are local variable advantages?
A
- Saves memory
- Easier to debug local memories
- You can reuse subroutine variables
3
Q
Global variable disadvantages?
A
- Can be used anywhere in local program
- Makes maintenance easier
- Can be used for constants
4
Q
Whats a character?
A
Letter,number or punctuation
5
Q
Whats a string?
A
Sequence of characters including letters,numbers and punctuation
6
Q
Whats a real?
A
Decimal number
7
Q
Whats a boolean?
A
Two possible values
8
Q
Whats casting?
A
Converting the value of variables from one data type to another