Chapter 1 Quiz
True/False: In programming, the terms "line" and "statement" always mean the same thing.
False
True/False: The preprocessor executes after the compiler.
False
Three primary activities of a program are:
Input, Processing, and Output
In a broad sense, the two primary categories of programming languages are:
Low-level and High-level
This is used in a program to mark the beginning or ending of a statement, or separate items in a list.
Punctuation
The computer's main memory is commonly known as:
RAM
This is a volatile type of memory, used for temporary storage.
RAM
An example of a secondary storage device is:
The disk drive
True/False: Software engineering is a field that encompasses designing, writing, testing, debugging, documenting, modifying, and maintaining computer programs.
True
True/False: The term "bit" stands for binary digit.
True
The name for a memory location that may hold data is:
Variable
Programmer-defined names of memory locations that may hold data are:
Variables
What statement best describes a variable and its primary purpose?
A variable is a named storage location in the computer's memory used for holding a piece of information.
A set of well-defined steps for performing a task or solving a problem is known as a(n):
Algorithm
Which of the following is a common input device?
All of the above
Which of the following best describes an operator?
An operator allows you to perform operations on one or more pieces of data.
-------- are used to translate each source code instruction into the appropriate machine language innstruction.
Compilers
The ________ decodes an instruction and generates electrical signals.
Control Unit
The programming process consists of several steps, which include:
Design, Creation, Testing, and Debugging
This is a complete instruction that causes the computer to perform some action.
Statement
This is a set of rules that must be followed when constructing a program.
Syntax
The purpose of a memory address is:
To identify the location of a byte in memory
True/False: In C++, key words are written in all lowercase letters.
True
A variable declaration announces the name of a variable that will be used in a program, as well as:
The type of data it will be used to hold
A(n) ________ is a diagram that shows the logical flow of a program.
flowchart