About Question enthuware.ocpjp.v11.2.3416 :
Moderator: admin
-
- Posts: 2
- Joined: Wed Apr 07, 2021 1:14 pm
- Contact:
About Question enthuware.ocpjp.v11.2.3416 :
There is a correct option that says:
Check the number of lines in the file referred to by listOfFilesFile at //2 before proceeding to open the files.
I think checking is not enough, you should also act on this information. So IMHO this answer is a little vague.
Check the number of lines in the file referred to by listOfFilesFile at //2 before proceeding to open the files.
I think checking is not enough, you should also act on this information. So IMHO this answer is a little vague.
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v11.2.3416 :
You are right. Updated the option to make it clear.
thank you for your feedback!
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
-
- Posts: 10
- Joined: Sat Aug 31, 2019 3:19 am
- Contact:
Re: About Question enthuware.ocpjp.v11.2.3416 :
According to the comment on option 4, can we assume that both (2 and 3) or (3 and 4) are correct?
Although it would be good to close an open file as soon as its use is over, but if the total number of open files is limited using option 2, the given code is fine.
Although it would be good to close an open file as soon as its use is over, but if the total number of open files is limited using option 2, the given code is fine.
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v11.2.3416 :
No, 3 + 4 is not correct because as the comment to option 4 says, it is good to do but not helpful here.
If you like our products and services, please help us by posting your review here.
-
- Posts: 10
- Joined: Sat Aug 31, 2019 3:19 am
- Contact:
Re: About Question enthuware.ocpjp.v11.2.3416 :
So maybe it would be better to rephrase the comment since it's not helpful regardless of if option 2 is chosen.
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v11.2.3416 :
Yes, that's what the comment to option 4 says, "Although it would be good to close an open file as soon as its use is over, but if the total number of open files is limited using option 2, the given code is fine." This clearly implies that 4 is not useful.
Also, you asked about (2 and 3) or (3 and 4). Not 2 + 4.
2+4 is not correct because you need 2 as well as 3.
Also, you asked about (2 and 3) or (3 and 4). Not 2 + 4.
2+4 is not correct because you need 2 as well as 3.
If you like our products and services, please help us by posting your review here.
-
- Posts: 13
- Joined: Tue Jul 21, 2020 1:39 pm
- Contact:
Re: About Question enthuware.ocpjp.v11.2.3416 :
How do you
make sure that the number of lines in the file referred to by listOfFilesFile at //2 is within acceptable limit
without opening it?
make sure that the number of lines in the file referred to by listOfFilesFile at //2 is within acceptable limit
without opening it?
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v11.2.3416 :
There could be several ways depending on OS, depending on the environment in which the program is running, depending on the resources available. May be it is a configurable limit and the program should compare with that limit.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: rwilliams93 and 95 guests