+ 4
How to Downvote Questions of Challenges?
I was playing a challenge with someone and there was a question: What happens when The break is removed from switch? And the options were 1)All cases executed 2)First case executed 3)No case executed 4)None of the Above Though i selected 1), it gave me a wrong answer... But i have tried this in c++ and it depends on what case is to be executed, and after that case, all cases are executed no matter what... Thus, since the question wasn't so specific, it shouldn't have any other answer...
11 Answers
+ 15
@Krishna Yes, this is absolutely a 'misleading question' -.-
+ 15
@Kinshuk
I take a screenshot if I think the question is weird. I did a lot of challenges these days to collect them all :D
My advice: Try to contact SoloLearn.
+ 12
You cannot downvote questions of challenges but you can click their screenshots and mail them to Sololearn
+ 12
@Kinshuk You're right, sry.
+ 9
[Edit] This is wrong, please downvote.
Without break, default won't be executed. So my guess is 4). But it doesn't say if default is defined...
+ 8
This is a Java challenge question.
How many "else" blocks can an "if" have?
a) 1
b) 2
c) infinite
d) 0
An "if" can have only one "else" block but multiple "else if" blocks. But the answer to this question is given as "infinite".
+ 5
@Tashi N
Srry to say, you're wrong.
If there are no breaks, even the default is executed, which I also thought shouldn't have been...
Such a question was there in my school exam.
+ 5
Anyway, Thanks...
+ 5
Kinshuk, so 4) is right. Why don't you like it?
+ 5
@ Alx vSeti
I like 4, but it gives a wrong...
It seems the creator has set the answer as something else.
I have only encountered the question once, and thus am unable to determine the creator's answer.
This, is what I don't like...
+ 5
Kinshuk, yes - something else. Had an author given an exact answer, the question would be easy even for those, who do not know exactly how "switch" works. To solve such kind of quizzes - just eliminate wrong answers. Then "None of the above" would be a natural solution.