quiz 1 Flashcards
what is primary memory
central processing unit (CPU)
what is secondary memory. ex.
device that stores information permanently. ex. hard disk, flash drives, and cd roms.
Int values= bool values= char values= Double value- Float value -
Int values= -2^31 to 2^31 storage 4 bytes
bool values= true and false storage 1 byte
char values= -2^7 to 2^7 storage 1 byte
Double value- -1.710^308 to 1.710^308 storage 8 bytes
Float value -3.410^38 to 3.410^38 storage 4 bytes
input devices
keyboard, mouse, scanner, camera
output devices
monitor, printer, and secondary storage
Programming environment problem solving process
1.
2.
3.
Programming environment problem solving process
- Analyze and outline the problem and its solution requirements, and design an algorithm to solve the problem.
- Implement the algorithm in a programming language, and verify it works.
- Maintain the program by using and modifying it if the problem domain changes.
Compiler-
Compiler- translates a program written in a high-level language into machine language
Byte-
Byte- eight bits
Assembler-
Assembler- translates a program written in assembly language into machine language. Assembly language instructions are mnemonic
Linker-
Linker- a program that combines the object program with other programs in the library and is used in the program to create the executable code.
Loader-
Loader- a program that loads an executable program into main memory.
identifiers does and donts
donts: cant start with a number, no special symbols, space
does: upper case, lower case, letters, digits, underscore