FREE AND STUDY GAMES ABOUT CSCI 1106 CPT3 EXAM

QUESTIONS & ANSWERS
Loading...

Loading secure study material viewer...

Page 0 of 0

Document Text

PDF Download

FREE AND STUDY GAMES ABOUT CSCI 1106 CPT3 EXAM

QUESTIONS

Qs and Ans Expert- Explanation

This Exam contains:

-Guarantee passing score -41 Questions and Answers -format set of multiple-choice -Expert- Explanation Question 1: Without the statement using namespace std, you must refer to the variable cin as ____. (p.119)

Answer:

std::cin Question 2: A(n) ____ is a sequence of characters from a computer to an output device.

Answer:

output stream

Question 3: Istream member functions

Answer:

functions that are associated with the data type istream Question 4: Which of the following statements sets the output of floating-point numbers to a fixed decimal format on the standard output device? (p.138)

Answer:

cout < < fixed;

Question 5: The ____ manipulator only controls the value of the next expression in an output statement. (p.142)

Answer:

setw

Question 6: Common input

Answer:

a variable declaration in the header file, cin Question 7: The manipulator ____ is used to output floating-point numbers in scientific format.(p.138)

Answer:

scientific

Question 8: Stream

Answer:

a sequence of characters from the source to the destination

Question 9: Output stream

Answer:

a sequence of characters from the computer to an output device

Question 10: Output stream variables

Answer:

variables of the type ostream

Question 11: Which of the following is not an input stream function? (p.119)

Answer:

place

Question 12: Predefined functions

Answer:

functions that are defined in C++

Question 13: The variable cout stands for ____. (p.118)

Answer:

common output

Question 14: Member access operator

Answer:

in C++, it is the dot operator Question 15: An input stream is a sequence of characters from an input device to a(n) ____.(p.118)

Answer:

computer

Question 16: Opening the files

Answer:

associating file stream variables with the input/output sources Question 17: The left-side operand of the extraction operation must be a(n) ____ variable.

Answer:

input stream

Question 18: In C++, ____ are used to format output. (p.137)

Answer:

manipulators

Question 19: Fail state

Answer:

the state an input stream enters after input failure in which all further I/O statements using that stream are ignored

Question 20: Stream member functions (stream functions)

Answer:

I/O functions such as get

Question 21: What happens when a user inputs an integer value for a double variable? (p.124)

Answer:

The integer value is converted to a decimal value.Question 22: The right-side operand of the extraction operation must be a(n) ____ variable.(p.119)

Answer:

simple data type

Question 23: The variable cin stands for ____. (p.118)

Answer:

common input

Question 24: Input stream

Answer:

a sequence of characters from an input device to the computer

Question 25: Whitespace characters consist of ____. (p.129)

Answer:

blanks and certain nonprintable characters

Question 26: Input failure

Answer:

happens when the input data does not match the corresponding variables in the program and the program either fails to compile or yields incorrect results

Question 27: Parameterized stream manipulators

Answer:

manipulators with parameters

Question 28: The extraction operator takes ____ operands. (p.119)

Answer:

two

Download Study Material

Buy This Material

$35.00 One-time purchase
Buy Now
  • Full access to this material
  • Download anytime
  • No expiration

Study Material Information

Category: QUESTIONS & ANSWERS
Description:

FREE AND STUDY GAMES ABOUT CSCI 1106 CPT3 EXAM

Get this material $35.00