About Question enthuware.ocpjp.ii.v11.2.1711 :
Moderator: admin
-
hamzaBlm
- Posts: 18
- Joined: Thu May 23, 2019 11:58 am
- Contact:
About Question enthuware.ocpjp.ii.v11.2.1711 :
I don't understand why option three (It may print any combination except: a, or b, or a, b, or b, a) is the correct answer! Here is my understanding:
I know that thread execution is controller by the OS scheduler and it's impossible to guess the order of code execution of two independent threads. With that being said, option one (It may print any combination of the keys) is the correct answer because there is a possibility that the scheduler might want to execute all the code in the second thread before starting the first one.
I know that thread execution is controller by the OS scheduler and it's impossible to guess the order of code execution of two independent threads. With that being said, option one (It may print any combination of the keys) is the correct answer because there is a possibility that the scheduler might want to execute all the code in the second thread before starting the first one.
-
admin
- Site Admin
- Posts: 10452
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.1711 :
Yes, that is a possibility and the output generated in that case is covered in option 3.
-
fortesp
- Posts: 9
- Joined: Mon Dec 14, 2020 8:53 am
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.1711 :
I also agree that the the first option should be correct and not just the third. Plus I seriously doubt that such ambiguity is presented in the actual exam (? hopefully)
-
admin
- Site Admin
- Posts: 10452
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.1711 :
As mentioned above, the third option includes the case given in the first option. So, if you have to select 1 option, then option 3 is the best option.
-
nkaragulov
- Posts: 20
- Joined: Mon Sep 16, 2024 1:49 am
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.1711 :
I would call this question and answer to this Super Tough!
For a non english speaking it is a bit harder to understand.
For a non english speaking it is a bit harder to understand.
-
dameest
- Posts: 23
- Joined: Sat Nov 30, 2024 5:27 am
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.1711 :
I agree. admin says option 3 cover option 1. They are actually equal. "Any combination of keys" means "any combination of keys". When you list the exception, you are actually listing some possibilities that are included in "any combination of keys".hamzaBlm wrote: ↑Fri Aug 14, 2020 12:02 pmI don't understand why option three (It may print any combination except: a, or b, or a, b, or b, a) is the correct answer! Here is my understanding:
I know that thread execution is controller by the OS scheduler and it's impossible to guess the order of code execution of two independent threads. With that being said, option one (It may print any combination of the keys) is the correct answer because there is a possibility that the scheduler might want to execute all the code in the second thread before starting the first one.
You should turn this question to a multi choice answers.
-
barryevans80
- Posts: 1
- Joined: Thu Jan 08, 2026 6:58 am
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.1711 :
I think this is one of the toughest questions I have seen in the practise exams, with regard to the wording. Whilst I agree that option 3 is the most correct answer, the wording is extremely difficult to get my head around.
To me, the use of commas to delimit each exception and the contents of an individual exception makes it hard to decipher what the exceptions might be.
I probably spent about 4-5 minutes trying to ingest the options, and ultimately decided to just pick one and move on. I suppose there will be some questions like this where it is really challenging to be confident that you are picking the correct option, and a guess is better than not answering it at all.
To me, the use of commas to delimit each exception and the contents of an individual exception makes it hard to decipher what the exceptions might be.
I probably spent about 4-5 minutes trying to ingest the options, and ultimately decided to just pick one and move on. I suppose there will be some questions like this where it is really challenging to be confident that you are picking the correct option, and a guess is better than not answering it at all.
Who is online
Users browsing this forum: Bing [Bot] and 129 guests