Exam 3: Assignment, Formatting, and Interactive

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Assignment statements can be used to perform arithmetic computations.

Free
(True/False)
4.9/5
(38)
Correct Answer:
Verified

True

A variable can store only ____________________ value(s) at a time.

Free
(Short Answer)
4.8/5
(44)
Correct Answer:
Verified

one

A(n) ____ expression consists of operators and constants only.

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

A

The ostream class method setf(ios::fixed) is equivalent to the stream manipulator setiosflags(fixed) .

(True/False)
4.8/5
(36)

In this statement: int (a * b); , int is a(n) ____________________ operator.

(Short Answer)
4.9/5
(36)

Another name for a manipulator uses format flags is a ____ manipulator.

(Multiple Choice)
4.8/5
(37)

The ____________________ manipulator must be included for each occurrence of a number inserted in the data stream sent to cout .

(Short Answer)
4.9/5
(37)

The stream manipulator ____ displays Boolean values as true and false rather than 1 and 0 .

(Multiple Choice)
4.8/5
(40)

In C++, accessing mathematical functions in a program requires including the mathematical header file ____.

(Multiple Choice)
4.8/5
(24)

When a manipulator requiring an argument is used, the ____ header file must be included as part of the program.

(Multiple Choice)
4.7/5
(47)

In addition to outputting integers in decimal notation, the oct and hex manipulators are used for conversions to octal and hexadecimal.

(True/False)
4.8/5
(26)

The display of integer values in one of the three possible number systems (decimal, octal, and hexadecimal) doesn t affect how the number is stored in a computer.

(True/False)
4.7/5
(43)

Because of ____, the value assigned to the variable on the left side of the assignment operator is forced into the data type of the variable to which it s assigned.

(Multiple Choice)
4.9/5
(40)

Identifiers created with const are commonly referred to as symbolic constants or ____ constants.

(Multiple Choice)
4.7/5
(39)

The ostream class method setf(ios::flush) is equivalent to the stream manipulator ____.

(Multiple Choice)
4.9/5
(37)

To control the format of numbers displayed by cout , you can include field width ____ in an output stream.

(Multiple Choice)
4.8/5
(39)

In C++, the = symbol is called the ____________________ operator.

(Short Answer)
4.8/5
(35)

A(n) ____ can have a value assigned to it.

(Multiple Choice)
4.8/5
(34)

In C++, all functions, by definition, can directly return at most one value.

(True/False)
4.9/5
(33)

The stream manipulator ____ sets the floating-point precision to n places.

(Multiple Choice)
4.8/5
(38)
Showing 1 - 20 of 52
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)