Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# new question #3354

Closed
eikowagenknecht opened this issue Mar 25, 2022 · 8 comments · Fixed by #5038
Closed

C# new question #3354

eikowagenknecht opened this issue Mar 25, 2022 · 8 comments · Fixed by #5038
Labels
good first issue Good for newcomers hacktoberfest-accepted help wanted Extra attention is needed

Comments

@eikowagenknecht
Copy link
Contributor

image

@github-actions
Copy link

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

@eikowagenknecht
Copy link
Contributor Author

eikowagenknecht commented Mar 25, 2022

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?

@Ebazhanov Ebazhanov added help wanted Extra attention is needed good first issue Good for newcomers labels Mar 25, 2022
@masoudk1990
Copy link
Contributor

masoudk1990 commented Mar 26, 2022

@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.

@lnugraha
Copy link
Contributor

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

@MarcinWatroba
Copy link

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..."

@pritam1309
Copy link

people[..^2]

@Ebazhanov
Copy link
Owner

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

masoudk1990 added a commit to masoudk1990/linkedin-skill-assessments-quizzes that referenced this issue Oct 26, 2022
masoudk1990 added a commit to masoudk1990/linkedin-skill-assessments-quizzes that referenced this issue Oct 26, 2022
Unchecked the current answer and added proper explanation.
@masoudk1990
Copy link
Contributor

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 added a commit to masoudk1990/linkedin-skill-assessments-quizzes that referenced this issue Oct 26, 2022
Added back official documentations link
@Ebazhanov Ebazhanov linked a pull request Oct 26, 2022 that will close this issue
Ebazhanov pushed a commit that referenced this issue Oct 26, 2022
* Fixed variable names in Q9 for OOP quiz

* Fixed dictation and correct answer of Q34 of OOP

Inside the body of a static constructor, only static members of a class are accessible.

* Fixed Q35 of OOP quiz dictation

* Update object-oriented-programming-quiz.md

* Update object-oriented-programming-quiz.md

* Updated Q62 of OOP quiz

The choices are a copy of Q61 and are thoroughly irrelevant to Q62

* Fixed dictation of a choice in Q65 of OOP quiz

* Added two new questions (Q66, Q67) for OOP Quiz

* Added reference for Q66 of OOP quiz

* Fixed: #3354

Unchecked the current answer and added proper explanation.

* #3354

Added back official documentations link
eshack94 pushed a commit to eshack94/linkedin-skill-assessments-quizzes that referenced this issue Dec 16, 2022
* Fixed variable names in Q9 for OOP quiz

* Fixed dictation and correct answer of Q34 of OOP

Inside the body of a static constructor, only static members of a class are accessible.

* Fixed Q35 of OOP quiz dictation

* Update object-oriented-programming-quiz.md

* Update object-oriented-programming-quiz.md

* Updated Q62 of OOP quiz

The choices are a copy of Q61 and are thoroughly irrelevant to Q62

* Fixed dictation of a choice in Q65 of OOP quiz

* Added two new questions (Q66, Q67) for OOP Quiz

* Added reference for Q66 of OOP quiz

* Fixed: Ebazhanov#3354

Unchecked the current answer and added proper explanation.

* Ebazhanov#3354

Added back official documentations link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers hacktoberfest-accepted help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants