+ 2
How could we report against wrong questions in challenges???
I did figure some Questions which were wrong or had wrong Answers if you figure some,just post it here and the language it belonged to Also what can we do about such Questions.
17 odpowiedzi
+ 16
you can report them. After the challenge is complete click on "view correct answers", then scroll to the question that you think is wrong and click on the exclamation mark icon in the upper right corner.
+ 14
//example of using String in java switch statement
public class Program
{
public static void main(String[] args) {
String x = "Name";
int a =0;
switch(x){
case "ns": a= 1;
break;
case "Name" : a= 2;
break;
}
System.out.println(a);
}
}
+ 13
If you are talking about java challenge, answer is int and String
+ 11
But there are wrong questions in java challenges like - :
Question asking about destructor operator
and a question having cout in it
+ 11
It works since java 7
+ 11
@gaurav I don't know about other languages but I have seen only 2 wrong questions in java challenges so far and one of them is correct just need to replace 'cout << 'with 'System.out.print'
+ 10
@gaurav it will take atleast a couple of weeks or even a month so just report and don't bother
+ 8
@gaurav what is wrong in this question?
+ 1
I think 3 in Java so far and 1 in C++ I did notice
+ 1
well reported all of them and did not see any progress
0
On which of data types does switch work on
1) String
2) int
3) long
4) float
Language - Java
0
Did not remember exact Question
just remember one right now will post others when see them again
0
answer it first
it's having more than 1 answer
0
But I referenced 3 books and found that String does not work in Switch case
0
So for Winning challenge we too have to give wrong Answers