Starting Out with C++ Ch1

Your page rank:

Total word count: 969
Pages: 4

Calculate the Price

- -
275 words
Looking for Expert Opinion?
Let us have a look at your work and suggest how to improve it!
Get a Consultant

When a program runs on a computer, the part of the computer that carries out the instructions is called the

central processing unit (CPU)

When a program runs on a computer, it is stored in

random access memory (RAM)

When a program is not running, it is stored

on a disk

Monitors, printers, status lights are all examples of

output devices

Mice, trackpads, keyboards, scanners, joysticks are all examples of

input devices

Flash drives, CDs, external disks are all examples of ______ storage (memory) devices.

secondary

The ability to let a programmer develop a program on computer system that can be run on other systems is called

portability

At each step of its operation, the input to a Central Processing Unit is

an instruction.

A bit is

a binary digit, like 0 or 1.

A byte in memory is identified by a unique number called its

address

In modern computer systems, a byte consists of _____ bits

8

RAM, random-access memory, is called that because

you can pick any 2 random locations and it will take the same time to access the data.

An operating system
a. is the chief hardware unit of a computer
b. is loaded into the computer each time it needs to carry out an operation
c. ensures that programs will not run on the computer at the same time
d. allocates resources like memory to programs that are running

allocates resources like memory to programs that are running

Application software
a. processes applications for jobs, school admissions, etc.
b. is any software that is run with the support of the operating system
c. was invented by Microsoft
d. is applied to the computer for the purpose of running the operating system

is any software that is run with the support of the operating system

A binary digit

is zero or one

What best defines a "programming language"?
a. It allows us to control a computer.
b. it allows us to make a calculation
c. it allows us to execute a program.
d. it allows us to express an algorithm.

It allows us to express an algorithm.

Which of these is not a programming language?
a. C
b. C++
c. HTML
d. Java

HTML

Which of the following is not true?
a. An algorithm allows ambiguity.
b. An algorithm, when carried out, must eventually stop.
c. An algorithm, can be carried out by a human being.

An algorithm allows ambiguity.

Replace the underlines with the words in parentheses that follow: The ____ solves the ____ of a ____ by expressing an ____ in a ____ to make a ____ that can run on a ____. ( algorithm, computer, problems, program, programmer, programming language, user )

The PROGRAMMER solves the PROBLEMS of a USER by expressing an ALGORITHM in a PROGRAMMING LANGUAGE to make a PROGRAM that can run on a COMPUTER.

Which statement is NOT true:
a. machine languages can be used to express algorithms
b. machine languages can be used to write programs that can run on any machines
c. machine languages consists of zeros and ones
d. machine language is produced by compilers

machine languages can be used to write programs that can run on any machines

What translates source code into executable code?

a compiler

The code that a programmer writes is called ____ code.

source

Compilers translate the instructions written by the programmer into ____ code.

object

A ______ is usually required to create the final executable code from what the compiler produces from the source code.

link editor

The rules that govern the correct order and usage of the elements of a language are called the____ of the language.

syntax

Words that have a special meaning in a programming language are called

key words

Which of the following is true?
a. there is exactly one and only one statement on each line of code
b. there can be more than one statement on a line, but a statement must not extend over more than one line
c. statements can extend over more than one line but there must not be more than one statement on a line.
d.there are no language rules regarding statements and line in general

there are no language rules regarding statements and line in general

A location in memory used for storing data and given a name in a computer program is called a ____ because the data in the location can be changed.

variable

Before a variable is used it must be

declared **note that there is some inconsistency in terminology in C and C++ books and some authors use the term "defined" as well. There are subtle distinction between the terms that are beyond the scope of this chapter**

An error in a program that involves a violation of language rules will be detected at ____ time.

compile

Division by zero when the program is executing is an example of a ____ error.

run-time

The purpose of testing a program with different combinations of data is to expose run-time and ____ errors.

logical

A diagram that shows each action performed and the order in which it occurs by a program

Flowchart

an informal way of writing out the steps that a program should perform

pseudocode

An Integrated Development Environment typically includes

text editor, compiler, debugger, and other utilities

The 3 steps a program typical performs are:

1. Input (gather Input data – from keyboard,from files on disk drive) 2. Process (process the input data) 3. Output (display the results as output ie write it to a file, send it to screen)

Must key words (reserved words) be lowercase?

Yes

Which language is closer to machine language?
a. low-level language
b. high-level language

low-level language

Perform operations on pieces of data known as operands

Operators (ex. << >> * + / )

Names made up by the programmer and are not part of the C++ language; May be used represent variables (memory locations), functions, etc.

Programmer-Defined Identifiers

Share This
Flashcard

More flashcards like this

NCLEX 10000 Integumentary Disorders

When assessing a client with partial-thickness burns over 60% of the body, which finding should the nurse report immediately? a) ...

Read more

NCLEX 300-NEURO

A client with amyotrophic lateral sclerosis (ALS) tells the nurse, "Sometimes I feel so frustrated. I can’t do anything without ...

Read more

NASM Flashcards

Which of the following is the process of getting oxygen from the environment to the tissues of the body? Diffusion ...

Read more

Unfinished tasks keep piling up?

Let us complete them for you. Quickly and professionally.

Check Price

Successful message
sending