+ 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!
15 ответов
+ 14
Yea, @Rei is the main admin round here
+ 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
+ 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 =^=
+ 10
@Luka Sadly I believe those small tricks were "fixed" by our devs in the latest update.
+ 9
@Steven You may try to memorize the question and post something similar in the discuss section. Comm will try to help if possible.
+ 6
@Ruka you had my curiosity. But now you have my attention
+ 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.
+ 5
@Ruka nevermind :)
+ 5
@jafca i think i have tried that already and said incorrect(i think). I will try it definitely if that question came again.
+ 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.
+ 4
@Ram where's the rest of the code?
+ 4
@jafca that's from challenge we have to give the answers like 2025
+ 4
@Ram m=21, n=26
0
@Hatsy - Thanks. Are you speaking from experience or are you a SoloLearn admin? It's a little difficult to suggest memorizing each question
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.