Crazy C# Interview Questions With Logical Answers | Coding Test

preview_player
Показать описание

Here is the set of interview questions with answers, which are meant to test backing knowledge of .NET and C#. Put your knowledge of the syntax and internals of the language on test with these somewhat strange, but also interesting questions that will tickle your imagination.

Checkout my video courses:

Chapters:
00:00 Intro
00:26 Asking questions
03:04 Answer to Question No. 1
06:27 Answer to Question No. 2
12:16 Answer to Question No. 3
14:34 Further learning and links

Write your own interview questions in the comments! I might want to try to answer them.

Learn more from video courses:

Other videos on this channel you may be interested in watching:
Рекомендации по теме
Комментарии
Автор

This is amazing. I've just found you here. You are "the teacher" that everyone expects in Univerity or such. "I want to see your way of thinking", uh, yes. I work as a .NET programmer for 5 years now, but staying here for more <3 Keep it up, boss

DagothThorus
Автор

I've watched ~10 now. One of your best for basics!

kenbrady
Автор

The answer to the C++ question is, apparently, essentially method hiding. Like C#, the compiler finds the first matching resolution in the current "scope" and according to this FAQ, "In C++, there is no overloading across scopes". One would use the "using" statement to promote the base class to the current scope.

dcuccia
Автор

Great content - more technically orientated than a lot of other channels!

anthonyliljegren
Автор

Great great teacher, keep making such videos!

nainaneema
Автор

Brilliant the struct and class thing was a completely new viewpoint to me kudos sir

anywheredoor
Автор

I have really enjoyed your videos on functional C# programming in Pluralsight, they have changed the way I code. It would be great to have you as a partner in a company, but I'm afraid I wouldn't pass your technical interviews even though I've been doing this for a few years now... 😅 Thank you very much for sharing your knowledge!

kristianaranda
Автор

First I should say thanks for your cool videos. My answer to the second question was => that during the runtime the class is in the heap and is called by reference, but the struct is in the stack and called by value, so it's the reason and difference between the class and struct.

Rhazizi
Автор

Thanks for the nice video Zoran. May I offer my opinion on the subject? The first two delegates examples might be confusing to some viewers. You used the Func delegate and assigned a lambda to it. Then in the subsequent example you used lambda only. What I am trying to say is that the distinction between an explicit Func delegate declaration and the standalone lambda isn't obvious here.

rodney
Автор

Is it bad to override the equals function of a struct?

harisimer
Автор

The third one blew my mind. Wheres the limit to that behavior? What if these were not value types but classes?

nathanel
Автор

Hi, great video! Where does a struct store it's method if it has no type handle?

maartenvissers
Автор

This is how explanation should be done.

rustyspottedcat
Автор

Hi, Great as always. Could u published something like "Functional/LINQ programming with async/await" ?

alexlo
Автор

Nice video, thank you first of all. I have to tell, the Base and Derived classes example was a bit surprise for me. I though it is just a simple method overloading and I expected the "int" version will be called. It's a bit.... annoying, when things do not work on the expected way :/

JZO
Автор

I would have failed this interview. And I'm being paid over 350k by a tech giant as a principal dev.

panman
Автор

Is the Pluralsight video's are available for free?

gunasundariv
Автор

Working working = new Working();
Animal animal1 = new Horse();



public class Animal { }

public class Horse : Animal { }

public class Working
{
public void DoSomething(Animal animal)
{
Console.WriteLine("Animal");
}
public void DoSomething(Horse horse)
{
Console.WriteLine("Horse");
}
}

esercengiz