CSCI 1933 Quiz 3 - (Chapter 3)

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

When using the sqrt function you must include this header file.

cmath

Which statement will read an entire line of input into the following string object? string address; 1. cin << address; 2. getline(cin, address); 3. cin.get(address); 4. None of these 5. cin address;

getline(cin, address);

In any program that uses the cin object, you must include the ________. 1. linker 2. >> and << operators 3. None of these 4. iostream header file 5. compiler

iostream header file

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

setw

When this operator is used with string operands it concatenates them, or joins them together. 1) & 2) % 3) + 4) * 5) None of these

+

True/False: Arithmetic operators that share the same precedence have right to left associativity.

False

True/False: In C++, it is impossible to display the number 34.789 in a field of 9 spaces with 2 decimal places of precision.

False

True/False: The fixed manipulator causes a number to be displayed in scientific notation.

False

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

False

When the final value of an expression is assigned to a variable, it will be converted to:

The data type of the variable

True/False: The only difference between the get function and the >> operator is that get reads the first character typed, even if it is a space, tab, or the [Enter] key.

True

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

cin.get();

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

cin >> length >> width >> height;

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

cin object


Set pelajaran terkait

(TILA) Truth in Lending Act: Ch 40

View Set

viruses that cause the common cold

View Set

Women's Gender Studies Unit 1 & 2 Quizzes

View Set

AP Economics Monopoly Review Questions Module 61-63

View Set

Section : 3 Completing job application

View Set

Organizational culture and ethical behavior

View Set

HIT II Chapter 41 (MS Disorders)

View Set