C++ Programming Chapter 1

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

All logical errors, such as division by 0, are reported by the compiler.

False

All programs muse be loaded into the CPU before the can be executed and all data must be loaded into main memory before it can be manipulated.

False

Analog signals represent information with a sequence of 0s and 1s.

False

In ASCII, (A) is the 65th character.

False

Main memory is an ordered sequence of cells and each cell has a random location in main memory.

False

One GB is 2^20MB.

False

In a C++ program, preprocessor directives begin with which symbol?

#

Which program loads the executable code from the main memory into the CPU for execution?

Loader

Describe the steps required by the problem-solving process.

1. Analyze and outline the problem and its solution requirements, and design an algorithm to solve the problem. 2. Implement the algorithm in a programming language, such as C++, and verify that the algorithm works. 3. Maintain the program by using and modifying it if the problem domain changes

Describe the steps required in the analysis phase of programming.

1. Thoroughly understand the problem. 2. Understand the problem requirements. 3. If problem is complex divide the problem into smaller subproblems and repeat steps 1 and 2.

What is programming?

A process of problem solving.

What is an algorithm?

A set of well-defined logical steps that must be taken to perform a task.

Which number system is used by a computer?

Binary or base 2

Which hardware component performs arithmetic and logical operations?

CPU

In a C++ program, which program processes statements that begin with the symbol #?

Preprocessor directives

What is an object program?

The machine language version of the high-level language program.

A binary code is a sequence of 0s and 1s.

True

A compiler translates the source program into an object program.

True

A sequence of eight bits is called a byte.

True

An assembler translates the assembly language into machine language.

True

An object consists of data and operations on that data.

True

An object program is the machine language version of a high-level language program.

True

ISO stands for International Organization of standardization.

True

In a C++ program, statements that begin with # are called preprocessor directives.

True

In object-oriented design (OOD), a program is a collection of interacting objects.

True

The calculating device called the Pascaline could calculate sums up to eight figures long.

True

The machine language is a sequence of 0s and 1s.

True

The number system used by a computer is base 2.

True

The program that loads first when you turn on your computer is called the operating system.

True

What is linking?

When a program, a linker, combines the object program with other programs in the library and is used in the program to create the executable code.


Kaugnay na mga set ng pag-aaral

Advantages and Disadvantages of Different routes of administration

View Set

Spanish: personal actions or related (Ken L)

View Set

Ch. 13 Payroll taxes/ liabilities

View Set

exam one study guide / hesi eaq questions

View Set

EDUC unit 2 chapter 3 Discover Your Values and Goals

View Set

Chapter 44: Introduction to the Gastrointestinal System and Accessory Structures

View Set

HDF 111: Human Dev Across Life Span

View Set