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.
About Question enthuware.ocpjp.ii.v11.2.1711 :
Moderator: admin
-
- Posts: 18
- Joined: Thu May 23, 2019 11:58 am
- Contact:
-
- Site Admin
- Posts: 10382
- 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.
-
- 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)
-
- Site Admin
- Posts: 10382
- 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.
-
- Posts: 17
- 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.
Who is online
Users browsing this forum: Bing [Bot] and 92 guests