The ____ and ____ were established to standardize the syntax of C++.
American National Standard Organization (ANSO); International Standard Institute (ISI)
American Standard Code for Information Interchange (ASCII); International Standard Organization (ISO)
American National Standard Institution (ANSI); International Standard Organization (ISO)
American National Standard Institution (ANSI); Unicode Analysis
The language of a computer is called ____.
machine language
assembly language
source code
system code
A(n) ____ monitors the overall activity of the computer and provides services.
compiler
assembler
control unit
operating system
A program called the ____ combines the object program with other programs in the library and is used in the program to create the executable code.
joiner
linker
combiner
A(n) ____ is a unique location in main memory for each cell.
counter
address
register
signal
ASCII is a(n) ____-bit code.
seven
sixteen
eight
two
A(n) _____ program is the machine language version of the high-level language program.
source
object
preprocessor
Word processors, games, and spreadsheets are examples of ____ programs.
system
application
operating
Main memory consists of an ordered sequence of ____.
memory cells
registers
logical units
signals
In a C++ program, statements that begin with the # symbol are called ____ directives.
library
operator
postprocessor
If all operands in an expression are integers, the expression is called a(n) _____ expression.
single precision
integral
integer
double precision
____ are names of things that appear in a program, such as variables, constants, and functions.
Comments
Tokens
Data types
Identifiers
A string containing no characters is called a(n) ____ string.
empty
missing
zero
non
The smallest individual unit of a program written in any language is called a _____.
bit
token
symbol
byte
In C++, a ____ is used to end a statement.
forward slash
semicolon
comma
period
In C++, the cast operator takes the following form: ____.
static_cast<dataTypeName>(expression)
static_cast<dataTypeName>
static_cast (expression)
expression<static_cast> (dataTypeName)
When using the char data type, you enclose each character represented within ____.
parentheses
double quotation marks
single quotation marks
brackets
A(n) ____ is a set of values together with a set of operations.
function
sequence
data type
operand
The _____ data type is used to represent any real number between -3.4E+38 and 3.4E+38.
double
int
float
long double
_____ lines are executable statements that inform the user what to do.
Prompt
Comment
Document
Question
To force floating-point output to show the decimal point and trailing zeros, use the ____ manipulator.
point
scientific
showpoint
decimal
The ____ manipulator controls the output of only the next expression.
fixed
setprecision
setw
The extraction operator takes ____ operands.
one
three
The output stream variables can use the manipulator ____ to fill the unused columns with a character other than a space.
charfill
setfill
setchar
Variables of type ____ are called input stream variables.
istream
stream
ostream
iostream
The manipulator ____ is used to output floating-point numbers in scientific format.
sets
setsci
I/O functions are typically called ____ member functions.
common
access
user
To left-justify output in C++, use the ____ manipulator.
setcolumn
left
justify
setleft
A ____ is an area in secondary storage used to hold information.
member
file
sector
variable
You can use the ____ function to restore an input stream to a working state.
clear
flush
init
ignore
Which of the following is NOT a reserved word in C++?
break
case
select
default
You can use either a(n) ___ variable or a bool variable to store the value of a logical expression.
string
When using a return statement, the return of any value other than ____ indicates that something went wrong during program execution.
1
0
-1
eof
To permit more than one statement to execute if an expression evaluates to true, C++ provides a structure called a ____ statement.
switch
one-way selection
compound
two-way selection
When C++ evaluates a logical expression, any nonzero value is treated as _____.
a logical error
a syntax error
false
true
In ____ evaluation, the computer evaluates a logical expression from left to right and stops as soon as the value of the expression is known.
conditional
decision maker
short-circuit
associative
Which of the following expressions evaluates to true?
(14 >= 5) && ('A' < 'B')
!('A' < 'B')
!(6 <= 7)
(24 >= 35) && ('A' < 'B')
"Hello" = "hello"
"Bill" >= "Billy"
"Hello" > "Hi"
"Air" < "An"
Given the input stream variable cin, the expression ____ evaluates to true if the last input succeeded.
(cin = 1)
(cin <<)
(cin)
(cin == 0)
If the possible range of values for a multiple selection statement cannot be reduced to a finite set of values, you must use the ____ structure.
nested if
if
if ... else
The function time is defined in the header file ____.
cstdlib
ctime
cmath
iomanip
Which of the following is the general form of the do...while statement?
do statement while (expression);
do (statement); while expression
do while statement (expression);
do expression while (statement);
Putting one control structure inside another is called ____.
looping
indexing
sequencing
nesting
The C++ eof function is a member of the data type ____.
The function rand() is defined in the header file ____.
When the ____ statement executes in a repetition structure, it immediately exits from the structure.
continue
exit
do
A _____ is a special value that marks the end of the input data.
trigger
sentinel
constant
The _____ statement is an effective way to avoid extra variables to control a loop and produce elegant code.
skip
The _____ loop is a pretest loop.
indexed
while
do...while
The primary purpose of the ____ loop is to simplify the writing of counter-controlled loops.
do-while
nested
for
The heading of a function includes all of the following EXCEPT the ____.
number of parameters
data type of the parameters
data type of the return value
code required to accomplish the task
A variable for which memory is allocated at block entry and deallocated at block exit is called a(n) _____ variable.
static
identification
unique
automatic
A ____ parameter is a formal parameter that receives the location (memory address) of the corresponding actual parameter.
memory
value
reference
Which of the following statements is FALSE?
Default values can be constants, global variables, or function calls.
If you do not specify the value of a default parameter, the default value is used for that parameter.
You can assign a constant value as a default value to a reference parameter.
The calling function has the option of specifying a value other than the default for any default parameter.
The C++ function pow has ____ parameters.
The _____ of an identifier refers to where in the program an identifier is accessible.
parameter
behavior
scope
definition
If a function is overloaded, then in a call to that function, the _____ determines which function to execute.
declaration
signature
The C++ function ____ calculates the largest whole number that is less than or equal to x.
ceil(x)
floor(x)
abs(x)
eqwhole(x)
____ parameters provide a one-way link between actual parameters and formal parameters.
Reference
Global
Static
Value
In C++, :: is called the scope ____ operator.
identity
comparison
equivalent
resolution
In C++, [ ] is called the _____ operator.
array subscript
character
array
array index
You can use the ____ operator to increment or decrement the value of an enumeration type.
assignment
scope resolution
cast
You can access an individual character within a string using the array subscript operator together with the ____.
value of the character in single quotes
position of the character in the string
the integer equivalent of the character value
value of the character in double quotes
If a global identifier in a program has the same name as a global identifier in an included header file, the ____.
compiler automatically generates a new name for the global identifier in the program
compiler generates a syntax error
global identifier in the program overrides the global identifier in the header file
global identifier in the header file overrides the global identifier in the program
The operator ____ can be used to concatenate two values of type string.
&
::
+
-
Before using the data type string, the program must use which of the following statements to include the header file?
#include (cstring)
include <#string>
#include <cstring>
#include <string>
The ____ function is used to interchange the contents of two string variables.
substr
swap
change
The enumeration type is a(n) ____ type.
Boolean
The values that you specify for an enumeration type must be _____.
identifiers
sorted
reserved words
true or false
An enumeration type is a set of ____ values.
ordered
unordered
anonymous