Homework 1
A volatile type of memory that is used for temporary storage is
RAM
In the process of translating a source file into an executable file, which of the following is the correct sequence
Source code, preprocessor, modified source code, compiler, object code, linker, executable code.
A CPU only understands machine language instructions
True
The CPU's control unit retrieves the next instruction in a sequence of program instructions from the main memory in the __________ stage.
fetch
A model often used when creating a program that begins with the overall task and refines it into smaller subtasks is a
hierarchy chart
A computer stores a program while it is running
in main memory
The __________ decodes an instruction and generates an electronic signal
Control unit
Machine language is an example of high
level language -false
The term that refers to the name of a variable that will be used in a program, as well:
the type of data will be used to hold
At the heart of a computer is its central processing unit. The CPU'S job is:
to fetch instructions, to carry out the operations commanded by the instructions, and to produce some outcome or resultant information.
The purpose of a memory address is:
to identify the location of a byte in memory
In C++, keywords are written in all lowercase letters
true
A named storage location in the computer's memory that holds a piece of information is a
variable
This is a set of rules that must be followed when constructing a program:
syntax
The two parts of the CPU are
the Control Unit and the Arithmetic and Logic Unit
The programmer usually enters source code into a computer with
a text editor
An Integrated Development Environment (IDE) typically consists of
a text editor, a compiler, and a debugger
A set of well defined steps for performing a task or solving a problem is known as an
algorithm
The first step in writing a program is to
clearly define what the program is to do
During which stage does the central processing unit analyze the instruction and encode it in the form of a number, and then generate an electronic signal
decode
The programming process consists of several steps, which include:
design, creation, testing, debugging
In programming, the terms "line" and "statement" always mean the same thing.
false
The programmer usually enter source code into a computer with
false
Mistakes that cause a running program to produce incorrect results are called:
logic errors
Characters or symbols that perform operations on one or more operands are:
operators
A computer monitor is a type of
output device
The two methods used by C++ to write computer programs are:
procedural programming and object oriented programming
A ___________ is a set of instructions that the computer follows to solve a problem
program
Programs are normally stored in _____ and loaded into main memory as needed
secondary storage
Computer programs are also known as
software
This is a complete instruction that causes the computer to perform some action:
statement