Starting out with C++ | Chapter 1

Ace your homework & exams now with Quizwiz!

Instructions

A program is a set of {}

Defined

A variable must be {} before it can be used in a program.

Hierarchy chart

A(n) {} is a diagram that graphically illustrates the structure of a program.

External harddrive, USP, disk

A(n) {} is an example of a secondary storage device.

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.

Both main memory and secondary storage are types of memory. Describe the difference between the two.

CPU

The job of the {} is to fetch instructions, carry out the operations commanded by the instructions, and produce some outcome or resultant information.

Syntax

The rules that must be followed when constructing a program are called {}.

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.

What is the difference between a syntax error and a logical error?

Operating system

What type of software controls the internal operations of the computer's hardware?

Because high level languages are more like natural language.

Why is it easier to write a program in a high-level language than in a machine language?

Key words

Words that have special meaning in a programming language are called {}.

Operators

{} are characters or symbols that perform operations on one or more operands.

Input

{} is information a program gathers from the outside world.

Machine language

{} is the only language computers really process.

Low-level

{} languages are close to the level of the computer.


Related study sets

Biology the Core 2nd edition Chapter 10

View Set

Asking the Right Questions: Ch. 5-6

View Set

CPIM Module 5: Inventory/Days of Supply

View Set