Shared Flashcard Set

Details

Programming Fundamentals I (C++)
Chapter 1
34
Computer Science
Undergraduate 1
01/20/2018

Additional Computer Science Flashcards

 


 

Cards

Term

Describe the differences between Main Memory and Secondary Memory/Storage.

Definition

Main Memory is volatile and is erased when a program terminates or the computer is turned off.  It is commonly referred to as RAM or random access memory.  Comprised of bits and bytes which are identified by addresses.

 

Secondary Memory is non-volatile and is retained while a program is not running or is turned off.  Comes in many forms such as CDs, DVDs, hard drives, flash drives, etc...

Term
Bit
Definition

Stands for Binary Digit.

 

Smallest piece of memory.

 

Has a value of 0 or 1, also known  as "on or off" or "true or false".

Term
Byte
Definition

8 Consecutive Bits.

 

Bytes have addresses.

Term
System Software
Definition

Programs that manage the computer's hardware and the programs that run on them, such as operating systems, utility programs and software development tools.

Term
Application Software
Definition

Programs that provide services to the users such as word processors or games.

Term

What type of software controls the internal operations of the computers hardware?

Definition
System Software
Term
Algorithm
Definition
A set of well defined steps.
Term
Machine Language
Definition
Code written in binary or 0s and 1s.
Term
Programming Language
Definition

Split into 2 categories, High Level which resembles human language and Low Level which resembles numeric language that computers can use.

Term

Why must programs written in a high level language be translated into machine language before they can be run?

Definition
Because the computer only processes machine language instructions.
Term

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

Definition

Because high level languages are more like natural or human language.

Term
Explain the difference between an object file and an executable file.
Definition

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.

Term

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

Definition

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.

Term

Computers can do many different jobs because they can be _________________?

Definition
Programmed
Term

The job of the ___________ is to fetch instructions, carry out the operations commanded by the instructions, and produce some outcome or result.

Definition
CPU
Term
Internally the CPU consists of _______ & _______.
Definition
Arithmetic Logic Unit & Control Unit
Term
A(n) _________ is an example of a secondary storage device.
Definition
Disk
Term
The 2 general categories of software are ________ & ________?
Definition
System Software (Operating System) & Application Software
Term
A program is a set of _________.
Definition
Instructions
Term

Since computers can't be programmed in natural human language, algorithms must be written in a(n) __________ language.

Definition
Programming Language
Term
___________ is the only language computers really process.
Definition
Machine Language
Term

A program's ability to run on several different types of computer systems is called _________.

Definition
Portability
Term
Words that have special meaning in a programming language are called __________.
Definition
Key Words
Term

Words or names defined by the programmer are called ____________.

Definition
Programmer-Defined Symbols
Term
Define Operand
Definition
The quantity on which an operation is to be done.
Term
____________ are characters or symbols that perform operations on one or more operands.
Definition
Operators
Term
___________ characters or symbols mark the beginning or end of programming statements, or separate items in a list.
Definition
Punctuation
Term
A variable must be __________ before it can be used in a program.
Definition
Defined
Term
A(n) _________ is a named storage location.
Definition
Variable
Term
The rules that must be followed when constructing a program are called ________.
Definition
Syntax
Term
The 3 primary activities of a program are _______, _______ & _______.
Definition
Input, Processing, Output
Term
__________ is information a program gathers from the outside world.
Definition
Input
Term
__________ is information the program sends to the outside world.
Definition
Output
Term
A(n) _______ is a diagram that graphically illustrates the structure of the program.
Definition
Hierarchy Chart
Supporting users have an ad free experience!