Ch3 Quiz Review

¡Supera tus tareas y exámenes ahora con Quizwiz!

The ________ operator always follows the cin object, and the ________ operator follows the cout object. binary, unary conditional, binary >>, << <<, >>

>>, <<

The total number of digits that appear before and after the decimal point is sometimes referred to as: A. floating points B. significant digits C. precision B and C

B and C

What is the value stored at x, given the statements: int x; x = 3 / static_cast<int>(4.5 + 6.4); .3 0 .275229 3.3

0

When a variable is assigned a number that is too large for its data type, it: underflows overflows reverses polarity exceeds expectations

overflows

Which is true about the following statement? cout << setw(4) << num4 << " "; It allows four spaces for the value in the variable num4. It outputs "setw(4)" before the value in the variable num4. It should use setw(10) to output the value in the variable num10. It inputs up to four characters stored in the variable num4.

It allows four spaces for the value in the variable num4.

The statement: cin >> setw(10) >> str; will read up to this many characters into str. Nine Ten Eleven Eight

Nine

When the final value of an expression is assigned to a variable, it will be converted to: The smallest C++ data type The largest C++ data type The data type of the variable The data type of the expression

The data type of the variable

The function, pow(x, 5.0), requires this header file. cstdlib cmath cstring iostream

cmath

To use the rand() function, you must #include this header file in your program. iostream iomanip iorand cstdlib

cstdlib

________ reads a line of input, including leading and embedded spaces, and stores it in a string object. cin.get getline cin.getline get

getline


Conjuntos de estudio relacionados

Drivers ed (quizzes and crossword)

View Set

MKTG320 Chapter 9, Chapter 12, Chapter 11, Chapter 16, Chapter 14, Chapter 10

View Set

Chapter 31 EMT Orthopedic Injuries Q&A II

View Set

Unit 10 Study Guide - 𝕗𝕦𝕔𝕜 𝕓𝕚𝕥𝕔𝕙𝕖𝕤 𝕘𝕖𝕥 𝕞𝕠𝕟𝕖𝕪

View Set

Waves and Electromagnetic Spectrum

View Set