CMPSCI 121 Flashcards
Ch1 - Both main memory and secondary storage are types of memory. Describe the difference between the two.
Main memory, or RAM, is volatile, which means its contents are erased when power is removed from the computer. Secondary memory, such as a disk, does not lose its contents when power is removed from the computer.
Ch1- What is the difference between system software and application software?
An OPERATING SYSTEM is a set of programs that manages the computer’s hardware devices and controls their processes. Application software consists of programs that users use to solve specific problems or perform general operations.
Ch1- What type of software controls the internal operations of the computers hardware?
An operating system
Ch1- Why must program written in a high-level language be translated into machine language before they can be run?
Because the computer only processes machine language instructions.
Ch1- Why is it easier to write a program in a high-level language than in machine language?
Because high level languages are more like natural language.
h1- Explain the difference between an object file and an executable file?
An object file contains machine language instructions, but it does not contain code for any library routines that may be necessary. An executable file is a program, ready to run. It contains the machine language code translated from the programmer’s source file, as well as the code for any necessary library routines.
Ch1- What is the difference between a syntax error and a logical error?
A syntax error is the misuse of a key word, operator, punctuation, or other part of the programming language. A logical error is a mistake that causes the program to produce the wrong results.
Ch1- Computers can do many different jobs because they can be _____
programmed
Ch1- The job of the ______ is to fetch instructions, carry out the operations commanded by the instructions, and produce some outcome or resultant information.
CPU
Ch1- Internally, the CPU consists of the _____ and the ______
Arithmetic Logic Unit and Control Unit
Ch1- A(n) _____ is an example of a secondary storage device.
disk
Ch1- The two general categories of software are _____ and_____
Operating Systems and Application Software
Ch1- A program is a set of _____
instructions
Ch1- Since computers can’t be programmed in natural human language, algorithms must be written in a(n)_____ language.
programming language
Ch1- ________ is the only language computers really process>
machine language
Ch1- ______ languages are close to the level of humans in terms of vocabulary
high-level
Ch1- ______ languages are close to the level of the computer
Low-level
Ch1- A program’s ability to run on several different types of computer systems is called_____
portability
Ch1- Words that have special meaning in a programming language are called
Key Words
Ch1- Words or names defined by the programmer called
programmer-defined symbols
Ch1- _____ are characters or symbols that perform operations on one or more operands
operators
Ch1- _____ characters or symbols mark the beginning or end of programming statements, or separate items in a lint
punctuation
Ch1- The rules that must be followed when constructing a program are called ____
syntax
Ch1- A(n) ____ is named storage location
variable