State whether the following are true or false. If the answer is false, explain why.

1) The stream insertion operator << can be overloaded with an operator function that takes an istream reference and a reference to a user-defined type as arguments and returns an istream reference.
2) Input with the stream extraction operator >> always skips leading white-space characters in the input stream, by default.
3) The stream member function rdstate returns the current state of the stream.
4) The cout stream normally is connected to the display screen.


1) False. To overload the stream insertion operator <<, the overloaded operator function must take an ostream reference and a reference to a user-defined type as arguments and return an ostream reference.
2) True.
3) True.
4) True.

Computer Science & Information Technology

You might also like to view...

The ___________ table determines which users can access which databases from which hosts.

a. db b. sys c. priv d. proxies

Computer Science & Information Technology

If A7=21, which of the following =IF statements would produce the result of "Much Greater"?

A) =IF(A7<50,"Greater",IF(A7>20,"Much Greater","Not Greater than 20")) B) =IF(A7<14,"Greater",IF(A7>20,"Much Greater","Not Greater than 20")) C) =IF(A7<14,"Greater",IF(A7>20,"Much Greater","Not Greater than 20") D) =IF(A7>14,"Greater",IF(A7>20,"Much Greater","Not Greater than 20"))

Computer Science & Information Technology

It is not necessary to provide all of the structure names for nested structures as long as the names used create a unique set.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

An expression using the logical operator ____ will evaluate to true only when both of the conditions are true.

A. And B. Or C. Not D. Nor

Computer Science & Information Technology