PSU cmpsc 201 exam 1 |119
Questions And Answers
what is a computer - -Programable electronic device that can store, retrieve
and process data
- Advantages of computer - -reliable
fast
does not tire
follows instructions
- disadvantages of computer - -Not "smart"
follows instructions
- what can a computer do? - -simple arithmetic
comparisons/decision making
communication input, output, transfer of data
- CPU - -Central processing unit - fetches and follows a set of simple
instructions
- main memory - -stores the executing program and its data in Ram
(volatile)
consists of a long list of numbered memory locations (RAM)
- secondary memory - -stores permanent records/files (non-volatile)
- Computer input - -Keyboard, mouse
- computer output - -whats on screen, printed
- Secondary memory - -Harddisks, usb-drives, CD ROMS, DVDS
- ALU - -Arithmetic Logic Unit - performs mathematical and logical
operations
- Control Unit - -Coordinates all of the computers operations, performs the
fetch/decode/execute cycle
- fetch - -control unit fetches next instruction
- decode - -COntrol unit decodes instructions
- execute - -instructions is executed by appropriate component
, - byte - -identified by an address
- Memory locations - -contain zeros and ones, on and off switches, called
binary digits or bits
- Function of secondary memory - -uses same idea of bits and bytes
programs/data stored in units called files
stores files when not in use
- programs - -set of instructions to perform tasks
- Algorithm - -set of well defined steps for performing a task or solving a
problem
- High-level languages - -designed to be easy for humans to read and write
too complicated for the computer to understand
Z=X+Y
- low-level languages - -Consists of simple instructions which can be
understood by the computer after a minor translation
add X Y Z
- Machine language - -ones and zeros
- keys words - -reserved words that have a special meaning
- programmer defined symbols - -words or names that have been defined
by the programmer. may be variables, constants, or functions
- operators - -tell the computer to perform specific operations
- punctuation - -begins or ends a statement
or separates items of a list
- syntax - -grammar rules for combining elements
- problem solving phase - -analysis and specification - visualize what the
program will do
Questions And Answers
what is a computer - -Programable electronic device that can store, retrieve
and process data
- Advantages of computer - -reliable
fast
does not tire
follows instructions
- disadvantages of computer - -Not "smart"
follows instructions
- what can a computer do? - -simple arithmetic
comparisons/decision making
communication input, output, transfer of data
- CPU - -Central processing unit - fetches and follows a set of simple
instructions
- main memory - -stores the executing program and its data in Ram
(volatile)
consists of a long list of numbered memory locations (RAM)
- secondary memory - -stores permanent records/files (non-volatile)
- Computer input - -Keyboard, mouse
- computer output - -whats on screen, printed
- Secondary memory - -Harddisks, usb-drives, CD ROMS, DVDS
- ALU - -Arithmetic Logic Unit - performs mathematical and logical
operations
- Control Unit - -Coordinates all of the computers operations, performs the
fetch/decode/execute cycle
- fetch - -control unit fetches next instruction
- decode - -COntrol unit decodes instructions
- execute - -instructions is executed by appropriate component
, - byte - -identified by an address
- Memory locations - -contain zeros and ones, on and off switches, called
binary digits or bits
- Function of secondary memory - -uses same idea of bits and bytes
programs/data stored in units called files
stores files when not in use
- programs - -set of instructions to perform tasks
- Algorithm - -set of well defined steps for performing a task or solving a
problem
- High-level languages - -designed to be easy for humans to read and write
too complicated for the computer to understand
Z=X+Y
- low-level languages - -Consists of simple instructions which can be
understood by the computer after a minor translation
add X Y Z
- Machine language - -ones and zeros
- keys words - -reserved words that have a special meaning
- programmer defined symbols - -words or names that have been defined
by the programmer. may be variables, constants, or functions
- operators - -tell the computer to perform specific operations
- punctuation - -begins or ends a statement
or separates items of a list
- syntax - -grammar rules for combining elements
- problem solving phase - -analysis and specification - visualize what the
program will do