Exam 3: Expressions and Interactivity

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

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

Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
Verified

B

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

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

D

The total number of digits that appear before and after the decimal point is sometimes referred to as:

Free
(Multiple Choice)
4.8/5
(30)
Correct Answer:
Verified

D

When this operator is used with string operands it concatenates them, or joins them together.

(Multiple Choice)
4.8/5
(40)

Which statement will read an entire line of input into the following string object? String address;

(Multiple Choice)
4.7/5
(40)

What is the value of number after the following statements execute? What is the value of number after the following statements execute?

(Multiple Choice)
4.8/5
(32)

In any program that uses the cin object, you must include the ________.

(Multiple Choice)
4.8/5
(41)

This manipulator is used to establish a field width for the value immediately following it.

(Multiple Choice)
4.8/5
(40)

The ________ causes a program to wait until information is typed at the keyboard and the Enter key is pressed.

(Multiple Choice)
4.8/5
(33)

The function, pow(x, 5.0), requires this header file.

(Multiple Choice)
4.8/5
(37)

You want the user to enter the length, width, and height from the keyboard. Which cin statement is correctly written?

(Multiple Choice)
4.9/5
(36)

Which statement is equivalent to the following? X = x * 2;

(Multiple Choice)
4.8/5
(39)

What is the value stored at x, given the statements: What is the value stored at x, given the statements:

(Multiple Choice)
5.0/5
(33)

The statement: The statement:    Will read up to this many characters into str. Will read up to this many characters into str.

(Multiple Choice)
4.7/5
(29)

When a variable is assigned a number that is too large for its data type, it:

(Multiple Choice)
4.8/5
(36)

Associativity is either right to left or:

(Multiple Choice)
4.8/5
(44)

The following statement will output $5.00 to the screen: cout << setprecision(5)<< dollars << endl;

(True/False)
4.8/5
(46)

When a program uses the setw manipulator, the iosetwidth header file must be included in a preprocessor directive.

(True/False)
4.7/5
(42)

In the following C++ statement, what will be executed first according to the order of precedence? In the following C++ statement, what will be executed first according to the order of precedence?

(Multiple Choice)
4.8/5
(34)

This statement will pause the screen, until the [Enter] key is pressed.

(Multiple Choice)
4.8/5
(37)
Showing 1 - 20 of 44
close modal

Filters

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