When a program runs on a computer, the part of the computer that carries out the instructions is called the |
central processing unit (CPU) |
When a program runs on a computer, it is stored in |
random access memory (RAM) |
When a program is not running, it is stored |
on a disk |
Monitors, printers, status lights are all examples of |
output devices |
Mice, trackpads, keyboards, scanners, joysticks are all examples of |
input devices |
Flash drives, CDs, external disks are all examples of ______ storage (memory) devices. |
secondary |
The ability to let a programmer develop a program on computer system that can be run on other systems is called |
portability |
At each step of its operation, the input to a Central Processing Unit is |
an instruction. |
A bit is |
a binary digit, like 0 or 1. |
A byte in memory is identified by a unique number called its |
address |
In modern computer systems, a byte consists of _____ bits |
8 |
RAM, random-access memory, is called that because |
you can pick any 2 random locations and it will take the same time to access the data. |
An operating system |
allocates resources like memory to programs that are running |
Application software |
is any software that is run with the support of the operating system |
A binary digit |
is zero or one |
What best defines a "programming language"? |
It allows us to express an algorithm. |
Which of these is not a programming language? |
HTML |
Which of the following is not true? |
An algorithm allows ambiguity. |
Replace the underlines with the words in parentheses that follow: The ____ solves the ____ of a ____ by expressing an ____ in a ____ to make a ____ that can run on a ____. ( algorithm, computer, problems, program, programmer, programming language, user ) |
The PROGRAMMER solves the PROBLEMS of a USER by expressing an ALGORITHM in a PROGRAMMING LANGUAGE to make a PROGRAM that can run on a COMPUTER. |
Which statement is NOT true: |
machine languages can be used to write programs that can run on any machines |
What translates source code into executable code? |
a compiler |
The code that a programmer writes is called ____ code. |
source |
Compilers translate the instructions written by the programmer into ____ code. |
object |
A ______ is usually required to create the final executable code from what the compiler produces from the source code. |
link editor |
The rules that govern the correct order and usage of the elements of a language are called the____ of the language. |
syntax |
Words that have a special meaning in a programming language are called |
key words |
Which of the following is true? |
there are no language rules regarding statements and line in general |
A location in memory used for storing data and given a name in a computer program is called a ____ because the data in the location can be changed. |
variable |
Before a variable is used it must be |
declared **note that there is some inconsistency in terminology in C and C++ books and some authors use the term "defined" as well. There are subtle distinction between the terms that are beyond the scope of this chapter** |
An error in a program that involves a violation of language rules will be detected at ____ time. |
compile |
Division by zero when the program is executing is an example of a ____ error. |
run-time |
The purpose of testing a program with different combinations of data is to expose run-time and ____ errors. |
logical |
A diagram that shows each action performed and the order in which it occurs by a program |
Flowchart |
an informal way of writing out the steps that a program should perform |
pseudocode |
An Integrated Development Environment typically includes |
text editor, compiler, debugger, and other utilities |
The 3 steps a program typical performs are: |
1. Input (gather Input data – from keyboard,from files on disk drive) 2. Process (process the input data) 3. Output (display the results as output ie write it to a file, send it to screen) |
Must key words (reserved words) be lowercase? |
Yes |
Which language is closer to machine language? |
low-level language |
Perform operations on pieces of data known as operands |
Operators (ex. << >> * + / ) |
Names made up by the programmer and are not part of the C++ language; May be used represent variables (memory locations), functions, etc. |
Programmer-Defined Identifiers |
Starting Out with C++ Ch1
Share This
Unfinished tasks keep piling up?
Let us complete them for you. Quickly and professionally.
Check Price