C++ Chapter 5

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

These are operators that add and subtract one from their operands.

++ and --

True/ False: AN initialization expression may be omitted from the for loop if no initialization is required.

True

True/ False: Multiple relational expressions cannot be placed into the test condition of a for loop.

True

The statements in the body of a while loop may never be executed, whereas the statements in the body of a do-while loop will be executed:

at least once

Assuming dataFile is a file stream object, the statement: dataFile.close();

closes a file

This means to increase a value by one.

increment

The while loop contained an expression that is tested for a true or false value, and a statement or block that is repeated as long as the expression:

is true

To write data to a file, you define an object of this data type.

ofstream

The do-while loop is considered a(n) ___________ loop.

post-test

This is a pre-test loop that is ideal in situations where you do not want the loop to iterate if the condition is false from the beginning.

while


Kaugnay na mga set ng pag-aaral

LEWIS Chapter 48: Diabetes Mellitus

View Set

Radiographic Positioning of the Hand and Wrist

View Set

Life, Health and Accident Questions for PSI Exams

View Set

Social and Personality Development Final Exam

View Set

Lecture 12: Prioritization and Delegation

View Set