Q: How can I figure out what was wrong in challenge quiz questions? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Q: How can I figure out what was wrong in challenge quiz questions?

It doesn't seem terribly valuable if you don't learn from your past mistakes. Please advise. Thanks!

1st Feb 2017, 11:02 AM
Steven Ramey
15 Answers
+ 14
Yea, @Rei is the main admin round here
1st Feb 2017, 12:42 PM
Filip
Filip - avatar
+ 14
@Ram it's answer should be 2016...let me explain u how , below is the code public class Program { public static void main(String[] args) { int m=10; int n=15; for(int i=1;i<=10;i++) m++; n++; System.out.print(m); System.out.print(n); } } as after for loop there is no braces so just the next statement after for loop will come under it initially m=10 inside loop... 1st iteration - i=1, m++=10++=10 2nd iteration - i=2 , m++=11++=11(since postfix so m got incremented by 1 after 1st iteration) . . . 10th iteration - i=10 , m++=19++=19 exit loop...m becomes 20 encounter n++=15++=15 now m=20 and n=16 hence the output is 2016
1st Feb 2017, 5:52 PM
‎‏‎‏‎Kueen
‎‏‎‏‎Kueen - avatar
+ 13
@Steven ATOW, there has been suggestions but still no official hint that the questions will be disclosed to public reference other than in the challenges, so the best way would be to refer back to the tutorials or to ask here. @Filip I am just responsible over the cookies =^=
1st Feb 2017, 12:47 PM
Hatsy Rei
Hatsy Rei - avatar
+ 10
@Luka Sadly I believe those small tricks were "fixed" by our devs in the latest update.
1st Feb 2017, 1:47 PM
Hatsy Rei
Hatsy Rei - avatar
+ 9
@Steven You may try to memorize the question and post something similar in the discuss section. Comm will try to help if possible.
1st Feb 2017, 12:39 PM
Hatsy Rei
Hatsy Rei - avatar
+ 6
@Ruka you had my curiosity. But now you have my attention
1st Feb 2017, 1:42 PM
Jafca
Jafca - avatar
+ 6
@keshvi thank you so much i would always increment both so was getting the wrong answer. One less question to worry about. Thanks again.
2nd Feb 2017, 1:38 AM
Ram chandra Giri
Ram chandra Giri - avatar
+ 5
@Ruka nevermind :)
1st Feb 2017, 2:09 PM
Jafca
Jafca - avatar
+ 5
@jafca i think i have tried that already and said incorrect(i think). I will try it definitely if that question came again.
1st Feb 2017, 3:39 PM
Ram chandra Giri
Ram chandra Giri - avatar
+ 4
guys help me with this ones, it's from java int m = 10; int n= 15 for ( i=0, i<= 10, i++) { m++; n++; what is m and n after loop. i don't seem to get the right answer along with some if question.
1st Feb 2017, 2:54 PM
Ram chandra Giri
Ram chandra Giri - avatar
+ 4
@Ram where's the rest of the code?
1st Feb 2017, 2:54 PM
Jafca
Jafca - avatar
+ 4
@jafca that's from challenge we have to give the answers like 2025
1st Feb 2017, 2:56 PM
Ram chandra Giri
Ram chandra Giri - avatar
+ 4
@Ram m=21, n=26
1st Feb 2017, 3:09 PM
Jafca
Jafca - avatar
0
@Hatsy - Thanks. Are you speaking from experience or are you a SoloLearn admin? It's a little difficult to suggest memorizing each question
1st Feb 2017, 12:41 PM
Steven Ramey
0
It isn't about cheating, and I do think the challenges are a good way to learn since it gives immediate feedback on unique questions. At a minimum, I think it would be useful to be able to access the questions you answered incorrectly, even if detailed explanations aren't given.
1st Feb 2017, 2:36 PM
Steven Ramey