linkedin-skill-assessments-quizzes icon indicating copy to clipboard operation
linkedin-skill-assessments-quizzes copied to clipboard

C# new question

Open eikowagenknecht opened this issue 2 years ago • 5 comments

image

eikowagenknecht avatar Mar 25 '22 08:03 eikowagenknecht

Hello @eikowagenknecht , thank you for submitting an issue! 👍 We highly appreciate it if you work on it as well.

github-actions[bot] avatar Mar 25 '22 08:03 github-actions[bot]

Array slicing has been introduced in C# 8: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-8.0/ranges

But.. it seems to actually be "None of the above":

image

How do we enter broken questions?

eikowagenknecht avatar Mar 25 '22 08:03 eikowagenknecht

@eikowagenknecht You are right, none of the options are correct. These options are correct (using range):

People[^2..]
People[^2..^0]

Maybe this question was made before C# 8.0 (September 2019)


Update: I edited examples. It seems I thought wrongly that the given array in the question has 3 elements in it.

masoudk1990 avatar Mar 26 '22 09:03 masoudk1990

Hi, just a short clarification. This question has appeared before as Q#67 in C-sharp assessment.

lnugraha avatar Jun 14 '22 01:06 lnugraha

Even if that question would appear on version 1.0 it'd still be bad. Simple solution would be to use "None of the above" as an answer rather than "You can't do this..."

MarcinWatroba avatar Jul 29 '22 09:07 MarcinWatroba

people[..^2]

pritam1309 avatar Oct 21 '22 04:10 pritam1309

as a solution/workaround we could add detailed explanation to this question and close this issue?

Ebazhanov avatar Oct 22 '22 08:10 Ebazhanov

I just unchecked the current chosen answer (which is obviously wrong) and added some explanations about the question and added a reference link to the current issue thread.

masoudk1990 avatar Oct 26 '22 07:10 masoudk1990