About Question enthuware.ocajp.i.v8.-2.-1313 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
chmelvv
Posts: 3
Joined: Fri Nov 22, 2013 4:58 am
Contact:

About Question enthuware.ocajp.i.v8.-2.-1313 :

Post by chmelvv »

What is the result of executing the following code when the value of i is 5:

Code: Select all

switch (i){     
default:     
case 1:         System.out.println(1);     
case 0:         System.out.println(0);     
case 2:         System.out.println(2);         break;     
case 3:         System.out.println(3); 
}
Right answer is "1 0 2" (the same wrote in explanation), but in test "Nothing will be printed." marked as right answer.

Online
admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v8.2.1313 :

Post by admin »

Yes, I see that option 1 is indeed marked as the correct answer.
HTH,
Paul.

aurelios
Posts: 4
Joined: Mon Dec 09, 2024 8:46 am
Contact:

Re: About Question enthuware.ocajp.i.v8.2.1313 :

Post by aurelios »

edited.
Last edited by aurelios on Sat Dec 14, 2024 9:27 am, edited 1 time in total.

Online
admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v8.2.1313 :

Post by admin »

Not sure where are you looking but it shows option 1 marked as correct as it always did.see screenshot attached.
Scan 11 Dec 24 · 08·46·08 17338869682461.jpeg
Scan 11 Dec 24 · 08·46·08 17338869682461.jpeg (77.35 KiB) Viewed 2121 times

aurelios
Posts: 4
Joined: Mon Dec 09, 2024 8:46 am
Contact:

Re: About Question enthuware.ocajp.i.v8.2.1313 :

Post by aurelios »

I apologize for the mistake, you are correct. The software shows the correct answer.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 9 guests