+ 3

Downvoted submission for a quiz - why? Console.Write('0' + '0');

Vote below or answer please, who downvoted (or would downvote) the following submission for a quiz: //Declined due to community downvotes. Please review What is the output of this code? System.Console.Write('0' + '0'); ☐ 00 ☐ Some compilation error ☐ Empty string ☑ 96

24th Apr 2017, 7:47 AM
Alx vSeti
Alx vSeti - avatar
24 ответов
+ 5
@Alx vSeti You are right! Knowing the answer apriori made me overlook the possible solutions offered. It is actually a very good formulated quizz! Possibility of discussion like this, should be in the qiz factory below every submission. A good, constructive, and educational debate could be used as a definitive way to rate submissions. Send an email to SL explaining your reasons: I hope they'll approve it.
21st Apr 2017, 7:36 PM
seamiki
seamiki - avatar
+ 13
Interesting, why 96? (I know nothing about C#)
20th Apr 2017, 12:18 PM
Michael Foster
Michael Foster - avatar
+ 12
So perhaps the people who were rating the quiz also expected the answer to be "00" and thought the question was too easy (or wrong if they actually tried to answer) I guess that's the problem with counter-intuitive questions..
20th Apr 2017, 12:39 PM
Michael Foster
Michael Foster - avatar
+ 11
@Alx I wouldn't downvote it, for me it would be a pleasure to have such questions. But I can understand that the decision is made by the community. This is not covered by the courses, I know a lot of approved questions aren't covered by the courses, but still: Course content and challenges should go together.
22nd Apr 2017, 2:02 PM
Tashi N
Tashi N - avatar
+ 8
Probably not everybody knows that '0' corresponds to 48. The question implies knowledge of the ascii table. I know that 0 as A or a are common "delimiters" but how would you feel if you face a question asking you the int associated to '
#x27;? And even if you go searching for it, and you find it, will you upvote that question? Honestly I think there are worse questions that got approved, but that is another discussion for another time.
20th Apr 2017, 1:06 PM
seamiki
seamiki - avatar
+ 7
I think it's a bit to tricky. May be confusing. But actually it's a good question.
20th Apr 2017, 11:58 AM
lulugo
lulugo - avatar
+ 7
Nice question. I myself forgot a lot about C++ and learned about the same (amount) of Javascript last years, so I thought it would be 00 (never knew enough of C#). So yes it's tricky, but not useless (as you wrote, very nice example given) and I like it. So crowd "expertise" (or "review", sorry if i misspelled some words) is bad sometimes (I'm not wondering why).
21st Apr 2017, 7:10 PM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar
+ 5
@Michael, because '0' as a symbol is coded by a number 48. Before, I was expecting, that C# is smarter than C++, and the result would be a string "00".
20th Apr 2017, 12:34 PM
Alx vSeti
Alx vSeti - avatar
+ 4
Too tricky and usless
20th Apr 2017, 7:29 AM
Alx vSeti
Alx vSeti - avatar
+ 3
As you can see I'm not very familiar with the quizz factory. I think downvotes are deserved only in case of mistakes, erratic/ambigous content.
20th Apr 2017, 5:06 PM
seamiki
seamiki - avatar
+ 3
@seamiki The quiz does not imply knowing that ‘0’ corresponds exactly to 48. Just that ‘0’ is not 0 (and many know that 0 is reserved for the end)
21st Apr 2017, 11:20 AM
Alx vSeti
Alx vSeti - avatar
+ 3
Sometimes when the reviewers don't know the answer, they downvote out of ignorance.
13th Apr 2019, 6:49 AM
Sonic
Sonic - avatar
+ 2
96!... Because you are adding char and not string and the result cannot be a string
20th Apr 2017, 1:06 PM
danty
danty - avatar
+ 2
@Alx vSeti I didn't come across your question as i'm not very active in quiz submission and rating, but even if I did, I had no reason to like it, as I explained in my previous post. I think your question is better than others approved but that doesn't automatically make it a question I'd like.
20th Apr 2017, 3:55 PM
seamiki
seamiki - avatar
+ 2
Concerning "useless". This example is from my programming practice (not '0'+'0' of course). First I needed only 1 symbol in some output. So char was used. Later I needed additional symbol for some output, so I just added c+'!'. The result was unexpected. In some circumstances the modifications to a program could be released without testing.
21st Apr 2017, 11:35 AM
Alx vSeti
Alx vSeti - avatar
+ 2
Resubmitted the quiz with some corrections in accordance with your comments and critics. Thanks to everybody!
27th Apr 2017, 1:46 PM
Alx vSeti
Alx vSeti - avatar
+ 1
I upvoted (would upvote) this quiz
20th Apr 2017, 7:30 AM
Alx vSeti
Alx vSeti - avatar
+ 1
@seamiki, Tashi N, Frost, Rrestoring faith, so would you downvote the question? Or is it just assumption of downvoters' motivation?
20th Apr 2017, 3:50 PM
Alx vSeti
Alx vSeti - avatar
+ 1
@seamiki, Frost, the question was about downvoting. Because if you feel indifferent to a quiz, you can just skip.
20th Apr 2017, 4:58 PM
Alx vSeti
Alx vSeti - avatar
0
Wrong answer
20th Apr 2017, 7:28 AM
Alx vSeti
Alx vSeti - avatar