csci 1933

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

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

10

What will be executed first according to the order of precedence? result = 6 - 3 * 2 + 7 - 10 / 2;

3*2

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

data type of that variable

You can use these to override the rules of operator precedence in a mathematical expression.

parenthesis ()

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

overflows

True/False: When the fixed manipulator is used, the value specified by the setprecision manipulator will be the number of digits to appear after the decimal point.

TRUE

Can the cin object be used to input more than one value?

YES

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

cin.get

True/False: The cin << statement will stop reading input when it encounters a newline character. Group of answer choices

true

True/False: If you want to know the length of the string that is stored in a string object, you can call the object's size member function.

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

What is the highest and lowest in terms of the hierarchy of data types?

database high; data field low

What is the value of number after the following statements execute? int number = 10; number += 5; number -= 2; number *= 3;

39

The ________ operator always follows the cin object, and the ________ operator follows the cout object. Group of answer choices

<<,>>

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

CIN object

What is the cin object?

Cin is the standard input object that is used like the cout object.

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

setw

This function tells the cin object to skip one or more characters in the keyboard buffer.

cin.ignore

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

false

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

false

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

get line

This manipulator causes the field to be left-justified with padding spaces printed to the right.

left

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

no

Which statement is equivalent to the following?number += 1;

number = number + 1;


संबंधित स्टडी सेट्स

ACC 361 - Exam 1 INPs, Practice Exam, Jeopardy Game

View Set

Exam 3 Cardiac Meds practice questions

View Set

Chapter 7 Reading: Stocks (Equity)--Characteristics and Valuation

View Set

Grade 8 History - Factors leading to Confederation

View Set

ch 9, 10, 11, 12 American Federal Government

View Set

Vocabulary Workshop Level H Unit 6- Completing the Sentence

View Set

Policy Provisions, Riders, Options, and Exclusions

View Set