subject

Which is the best programming practice?

a. open a file as soon as your program begins and close the file just before your program ends.
b. open a file as soon as your program begins but close the file as soon as you have finished using it.
c. open a file when the program needs to work with it but close the file just before your program ends.
d. open a file when the program needs to work with it and close the file as soon as you have finished using it.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 19:40, ashlynm12
Microsoft introduced active directory with windows 2000. in server 2012, it is in now version 4. what are some new features in the new ad that were not present in windows 2000 ad?
Answers: 1
image
Computers and Technology, 22.06.2019 06:30, iamquintix
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
image
Computers and Technology, 22.06.2019 15:20, brookemcelhaney
The north and south regions had very diferent economies in the 1800s.
Answers: 1
image
Computers and Technology, 22.06.2019 19:00, dadonelson2109
If your accelerator suddenly gets stuck what should you do
Answers: 2
You know the right answer?
Which is the best programming practice?

a. open a file as soon as your program begins a...

Questions in other subjects:

Konu
Biology, 20.09.2020 06:01