Quiz 3 - Input/Output C++ PDF

Title Quiz 3 - Input/Output C++
Author Justina LeDesma
Course Programming Fundamentals I
Institution Lone Star College System
Pages 1
File Size 36.6 KB
File Type PDF
Total Downloads 113
Total Views 214

Summary

Quiz 3 - Input/Output C++, C++ Programming Program Design Including Data Structures...


Description

Chapter 03 - Quiz 1. The ____ manipulator controls the output of only the next expression. a. setw 2. To use a parameterized stream manipulator in a C++ program, you must include the header file ____ a. iomanip 3. I/O functions are typically called ____ member functions. a. stream 4. Dot notation is used to separate a(n) ____ from its member, or function, name. a. input stream variable name 5. Another name for function arguments is function ____. a. parameters 6. The output stream variables can use the manipulator ____ to fill the unused columns with a character other than a space. a. setfill 7. A(n) ____ is a sequence of characters from an input device to the computer. a. input stream 8. To left-justify output in C++, use the ____ manipulator. a. left 9. The fstream header file contains the definitions of two data types: _____ and ofstream. a. ifstream 10. The extraction operator takes ____ operands. a. two 11. A ____ is an area in secondary storage used to hold information. a. file 12. To read a string containing blanks, you can use the function ____. a. getline 13. In C++, the default output of floating-point numbers is ____ notation. a. scientific 14. The manipulator ____ is used to output floating-point numbers in scientific format. a. scientific 15. You can use the ____ function to restore an input stream to a working state. a. clear 16. To force floating-point output to show the decimal point and trailing zeros, use the ____ manipulator. a. showpoint 17. In C++, the dot is an operator called the ____. a. member access operator 18. The result of attempting to read invalid data is ____. a. input failure 19. Variables of type ____ are called input stream variables. a. istream 20. Which of the following is not an input stream function? a. place...


Similar Free PDFs