Unit 3 - Input/Output

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

You can use the ____ function to restore an input stream to a working state. init clear ignore flush

clear

A ____ is an area in secondary storage used to hold information. member sector file variable

file

To read a string containing blanks, you can use the function ____. get getline getstring readline

getline

The fstream header file contains the definitions of two data types: _____ and ofstream. fstream ostream istream ifstream

ifstream

The result of attempting to read invalid data is ____. syntax error input failure read failure user error

input failure

A(n) ____ is a sequence of characters from an input device to the computer. operator output stream input stream parameter

input stream

Dot notation is used to separate a(n) ____ from its member, or function, name. member access operator output stream variable name manipulator name input stream variable name

input stream variable name

To use a parameterized stream manipulator in a C++ program, you must include the header file ____ iomanip string fstream iostream

iomanip

Variables of type ____ are called input stream variables. iostream stream istream ostream

istream

To left-justify output in C++, use the ____ manipulator. setcolumn setleft justify left

left

In C++, the dot is an operator called the ____. member access operator input stream variable dot notation operator manipulator name

member access operator

Another name for function arguments is function ____. streams manipulators members parameters

parameters

In C++, the default output of floating-point numbers is ____ notation. fixed scientific exponential dot

scientific

The manipulator ____ is used to output floating-point numbers in scientific format. setsci fixed sets scientific

scientific

The output stream variables can use the manipulator ____ to fill the unused columns with a character other than a space. setchar charfill setw setfill

setfill

The ____ manipulator controls the output of only the next expression. setprecision setw showpoint fixed

setw

To force floating-point output to show the decimal point and trailing zeros, use the ____ manipulator. scientific showpoint point decimal

showpoint

I/O functions are typically called ____ member functions. common stream user access

stream

The extraction operator takes ____ operands. two three one zero

two

Which of the following is not an input stream function? place putback get ignore

Place


Set pelajaran terkait

economic and social effects of World War II

View Set

Network+ Domain 4: Troubleshooting

View Set

GS BUSA 497 CH 7 Project Management

View Set

earth science 205 ch 3 reading quiz

View Set

Networking Essentials - Module 2

View Set

SQL for Database Construction and Application Processing (7)

View Set

PSY 322, "Study it" questions (Ch5, 6, 11)

View Set

Chapter 4: The Meaning of Interest Rates

View Set