The _______ member function takes a single char value from the input file, without regard to whether it is whitespace.

a. newLine
b. get
c. put
d. getline
e. putline


b) the get( ) member function fetches a character from the input file without regard to whether it is whitespace.
Explanation: a) is a function defined in the text to dump the rest of any input left on an input line (file or keyboard). c) put() writes the char argument out to the device (file or screen) connected to the stream. d) getline() comes in several versions. In the iostream and fstream member version, calling object is a stream. The function takes two or three arguments. The first is a C-string, the second is a number of characters to be fetched +1 for the null terminator, and the third is a “stop fetching when encountered” characters. e) is specious. There is no putline function. The standalone version takes two or three arguments. The first is an istream variable, the second is library string variable, the optional third argument is a “stop fetching when encountered” character.

Computer Science & Information Technology

You might also like to view...

Which statement is false?

a. Queue is a new collection interface introduced in J2SE 5.0. b. Queue and PriorityQueue are included in the java.util package. c. PriorityQueue orders elements in increasing order, so that smallest value will be the first element removed from PriorityQueue. d. Queue extends interface Collection.

Computer Science & Information Technology

Which of the following is NOT an Android life cycle event?

A. Application_Closing() B. onStart() C. onCreate() D. onPause()

Computer Science & Information Technology

The ____ refers to the order in which the focus moves from one control to another control when a user presses the Tab key.

A. tab alignment B. tab stop C. tab order D. tab focus

Computer Science & Information Technology

Clickjacking results in ________.

A) sending spam to your friends' email accounts B) malware posting unwanted links on your Facebook page C) you sending money to get more money in return D) your Facebook account being closed without your knowledge

Computer Science & Information Technology