Which of the following are restrictions on use of a stream variable (either ifstream or ofstream)

a) To use a stream variable as a function parameter you can use call-by-value or call-by-value.
b) To use a stream variable as a function parameter you can only use call-by-value.
c) To use a stream variable as a function parameter you can only use call-by-reference.
d) You cannot assign a stream variable.
e) A file variable can be used in any way any other variable can be use.


c) To use a stream variable as a function parameter you can only use call-by-reference. , and d) You cannot assign a stream variable.

a) and b) allow or require call-by-value. These are explictly prohibited. Part e) is just wrong.

Computer Science & Information Technology

You might also like to view...

__________ are the beginner’s most common OS/JCL error.

a. Misspellings b. Stray blanks c. Misplaced punctuation marks d. The premise of this question is false

Computer Science & Information Technology

The type of memory that a computer uses to run several programs at the same time is called ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A hypothetical disk drive has the following properties

What is the approximate time required to access the following sectors, assuming that a new seek is not required if successive sectors are on the same track and the difference between sector numbers is greater than 1? The following data is presented as (t,s), where t is the track number and s is the sector number. (12,25), (12,27), (12,39), (12,40), (13,90), (11,108), (26,25), (26,24), (200,19) For each seek there is a track step time and a rotational latency. The rotational latency is one half of a revolution, or ½ x 1/120s = ½ x 8.333ms = 4.1667 ms

Computer Science & Information Technology

To search for a pattern, you can use a(n) ____________________ character, a symbol you can use as substitute for characters to find information that matches your find criteria.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology