C++ Chapter 1,2,3

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

____ consists of 65,536 characters.

Unicode

The memory allocated for a float value is ____ bytes.

four

The ____ monitors the overall activity of the computer and provides services.

operating system

The devices that the computer uses to display results are called ____ devices.

output

Which of the following is a legal identifier?

program_1

Main memory is called ____.

random access memoryq

____ is a parameterized stream manipulator.

setfill

The ____ is the brain of the computer and the single most expensive piece of hardware in your personal computer.

CPU

Entering a char value into an int variable causes serious errors, called input failure.

T

A(n) ____ consists of data and the operations on those data.

object

____ are executable statements that inform the user what to do.

prompt lines

The ____ rules of a programming language tell you which statements are legal, or accepted by the programming language.

Syntax

If a C++ arithmetic expression has no parentheses, operators are evaluated from left to right.

T

Information stored in main memory must be transferred to some other device for permanent storage.

T

Suppose a = 5. After the execution of the statement ++a; the value of a is 6.

T

Suppose that sum is an int variable. The statement sum += 7; is equivalent to the statement sum = sum + 7;

T

The basic commands that a computer performs are input (get data), output (display result), storage, and performance of arithmetic and logical operations.

T

The extraction operator >> skips only all leading blanks when searching for the next data in the input stream.

T

The maximum number of significant digits in float values is up to 6 or 7.

T

The maximum number of significant digits in values of the double type is 15.

T

The number of input data extracted by cin and >> depends on the number of variables appearing in the cin statement.

T

To develop a program to solve a problem, you start by analyzing the problem.

T

The term GB refers to ___

gigabyte

A mixed arithmetic expression contains all operands of the same type.

F

An operator that has only one operand is called a unique operator.

F

Manipulators without parameters are part of the ____ header file.

iostream

A step-by-step problem-solving process in which a solution is arrived at in a finite amount of time is called a(n) ____.

algorithim

The digit 0 or 1 is called a binary digit, or ____.

bit

A sequence of eight bits is called a ____.

byte

A comma is also called a statement terminator.

F

A program that loads an executable program into main memory is called a(n) ____.

loader

Several categories of computers exist, such as ____.

mainframe, midsize, and micro

Main memory is an ordered sequence of items, called ____.

memory cells

Dividing a problem into smaller subproblems is called ____ design.

structured

In C++, the dot is an operator called the ____ operator.

member access

Main memory is directly connected to the CPU.

T

You can use the function getline to read a string containing blanks

T

____ programs perform a specific task.

Application

The programming language C++ evolved from ____.

C

____ represent information with a sequence of 0s and 1s.

Digital Signals

C++ programs have always been portable from one compiler to another.

F

If input failure occurs in a C++ program, the program terminates immediately and displays an error message.

F

In C++, reserved words are the same as predefined identifiers.

F

In an output statement, each occurrence of endl advances the cursor to the end of the current line on an output device.

F

In the statement cin >> x; , x can be a variable or an expression

F

It is a good idea to redefine cin and cout in your programs

F

The command that does the linking on Visual C++ 2012 Express and Visual Studio 2012 is Make or Remake.

F

The device that stores information permanently (unless the device becomes unusable or you change the information by rewriting it) is called primary storage.

F

The devices that feed data and programs into computers are called output devices.

F

The escape sequence \r moves the insertion point to the beginning of the next line.

F

The following statements will result in input failure if the input values are not on a separate line. (Assume that x and y are int variables.) cin >> x; cin >> y;

F

When the computer is turned off, everything in secondary memory is lost.

F

When you compile your program, the compiler identifies the logic errors and suggests how to correct them.

F

When reading data into a char variable, after skipping any leading whitespace characters, the extraction operator >> finds and stores only the next character; reading stops after a single character.

T

Which of the following is the newline character?

\n

Which of the following is a reserved word in C++?

char

A program called a(n) ____ translates instructions written in high-level languages into machine code.

compiler

An example of a floating point data type is ____

double

When you want to process only partial data, you can use the stream function ____ to discard a portion of the inp

ignore

The devices that feed data and programs into computers are called ____ devices.

input

The basic commands that a computer performs are ____, and performance of arithmetic and logical operations.

input, output, storage

A program called a(n) ____ combines the object program with the programs from libraries.

linker


Ensembles d'études connexes

Vocabulary Workshop Level D Unit 11 Synonyms and Antonyms

View Set

International Accounting Chapter 4 & 5

View Set

Big Stick, Dollar, and Moral Diplomacy

View Set

Computer LIFEPAC U 6 Questions and Answers

View Set