Ch ++ Homework 1

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

True/False: Executable code is computer code that contains no errors.

False

True/False: IDE stands for internal data engine.

False

True/False: Most modern computers can understand and execute pseudocode.

False

True/False: Once a value has been stored in a variable it cannot be changed.

False

True/False: The following is a legal C++ statement to define and initialize a variable. char firstName = "Jack";

False

True/False: The following statements both declare the variable num to be an integer.

False

True/False: The purpose of the compiler is to convert object code into source code.

False

True/False: Before a computer can execute a program written in a high level language, such as C++, it must be translated into object code.

True

True/False: If a new value is stored in a variable, it replaces whatever value was previously there.

True

True/False: Syntax involves rules that must be followed when writing a program.

True

True/False: The following two statements could be used interchangeably in a C++ program.

True

Three primary activities of a typical program are

input, processing, and output.

Internally, the central processing unit (CPU) consists of two parts:

the arithmetic and logic unit (ALU) and the control unit.

The CPU includes

the arithmetic and logic unit (ALU) and the control unit.

A variable definition always specifies the name of a variable and tells

what type of data it can hold.

Every C++ program must have

A function called main ()

Which of the following is an example of a secondary storage device?

All of these

Which of the following keywords is/are the names of C++ data types?

All of these

Which of the following is/are valid C++ identifiers?

Both department_9 and aVeryLongVariableName , but not last-name

C++ is an example of a ________ programming language.

High Level

A software package that includes a text editor, compiler, debugger, and assorted utilities for creating, testing, and running software is called

IDE (none of these)

At the heart of a computer is its central processing unit (CPU). Its job is to

Input, process, output (all of these)

Words with a special meaning that may be used only for their intended purpose are known as

Keywords

The computer's main memory is commonly known as

Random Access Memory (RAM)

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

Secondary Storage

A ________ is a complete instruction that causes the computer to perform some action.

Statement

In the C++ statement pay = rate * hours;the * symbol is an example of

an operator

A variable must be defined

before it can be used

A ________ variable can hold only one of two values: true or false.

bool

Which of the following will cause the next output to begin on a new line?

cout <<endl


Kaugnay na mga set ng pag-aaral

Personal Watercraft Coverage - Chapter 7

View Set

Disorders Featuring Somatic Symptoms (Quiz #3a)

View Set

EDUCATION 108 - EB/MU - 2.23.18 - CHAPTER 6 - Head Start and Early Head Start: Empowering Change from Within

View Set