CIS C++ Chapter 1 Quiz

Ace your homework & exams now with Quizwiz!

Which of the following best describes an operator?

An operator allows you to preform operations on one or more pieces of data.

___ are used to translate each source code instruction into the appropriate machine language instruction.

Compilers

This step will uncover any syntax errors in your program.

Compiling

The ___ decodes an instruction and generates electrical signals.

Control Unit

This term refers to the programmer reading the program from beginning and stepping through each statement.

Desk Checking

Three primary activities of a program are:

Input, Processing, and Output

The computer's main memory is commonly known as:

RAM

This is a volatile type of memory, used for temporary storage.

RAM

Even when there is no power to the computer, data can be held in:

Secondary storage

The statements written by the programmer are called:

Source code

In the process of translating a source file info an executable file, which of the following is the correct sequence?

Source code, preprocessor, modified source code, compiler, object code, linker, executable code.

This is a complete instruction that causes the computer to preform some action.

Statement

This is a set of rules that must be followed when constructing a program.

Syntax

Internally, the CPU consists of two parts:

The Control Unit and the Arithmetic and Logic Unit

An example of a secondary storage device is:

The disk drive

What does the term hardware refer to?

The physical components that a computer is made of

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

The purpose of a memory address is:

To identify the location of a byte in memory

The name for a memory location that may hold data is:

Variable

Programmer-defined names of memory locations that may hold data are:

Variables

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

Which of the following is a preprocessor directive?

#include (some library in brackets)

The programmer usually enters source code into a computer using:

A text editor

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 preforming a task or solving a problem is known as a(n):

Algorithm

An Integrated Development Environment typically consists of:

All of the above (A text editor, A compiler, A debugger)

Which of the following is a common input device?

All of the above (Keyboard, Mouse, Scanner, Microphone)

At the heart of a computer is its central processing unit. The CPU's job is:

All of the above (To fetch instructions, To carry out the operations commanded by the intructions, To produce some outcome or resultant information)

Words that have special meaning and may be used only for their intended purpose are known as:

Key Words

Mistakes that cause a running program to produce incorrect results are called:

Logic errors

In a broad sense, the two primary categories of programming languages are:

Low-level and High-level

Characters or symbols that preform operations on one or more operands are:

Operators

Which of the following is not one of the five major components of a computer system?

Preprocessor

A(n) ___ is a set of instructions that the computer follows to solve a problem.

Program

This is used in a program to mark the beginning or ending of a statement, or separate items in a list.

Punctuation

During which stage does the central processing unit retrieve from main memory the next instruction in the sequence of program instructions?

fetch

A(n) ___ is a diagram that shows the logical flow of a program.

flowchart

A(n) ___ is the most fundamental set of programs on a computer.

operating system

Computer programs are also known as:

software

The programming process consists of several steps, which include:

Design, Creation, Testing, and Debugging


Related study sets

Learning Curve 4a. Development Issues, Prenatal Development, and the Newborn

View Set

Routers, Switches, Bridges, and Hubs

View Set

Life Insurance Policy Provisions, Options & Riders

View Set

Chapter 7 - Childhood: Settings for Development: Home and School

View Set