Which of the mode options opens a file for both reading and writing, overwriting any existing text. If the specified file does not exist, it is created.

A. w
B. w+
C. a
D. a+


Answer: B

Computer Science & Information Technology

You might also like to view...

Which of the following best describes the array name n in the declaration int n[10];?

a. n is a nonconstant pointer to nonconstant data. b. n is a nonconstant pointer to constant data. c. n is a constant pointer to nonconstant data. d. n is a constant pointer to constant data.

Computer Science & Information Technology

Which data structure is used to check for balanced symbols?

a. STL set b. STL map c. priority queue d. queue e. stack

Computer Science & Information Technology

A(n) __________ is a number with a decimal point, such as 7.33, 0.0975 or 1000.1234

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

Computer Science & Information Technology

Which of the following was a benefit of the timesharing systems of the 1960s?

a) Multiple interactive users could operate simultaneously. b) Timesharing made it possible for real-time systems to provide quick results to users. c) The average turnaround time decreased significantly. d) all of the above

Computer Science & Information Technology