Net Developer Interview Questions

8,160 net developer interview questions shared by candidates

What will be printed to the Console at the end of this code? int global = 0; Thread t1 = new Thread(() => { int local = 0; while(global < 3) { local += 1; global += 1; } Console.WriteLine(local); }); Thread t2 = new Thread(() => { global += 1; }); t1.Start(); t2.Start();
avatar

Junior C# and .NET developer

Interviewed at NiCE

3.9
Jun 6, 2024

What will be printed to the Console at the end of this code? int global = 0; Thread t1 = new Thread(() => { int local = 0; while(global < 3) { local += 1; global += 1; } Console.WriteLine(local); }); Thread t2 = new Thread(() => { global += 1; }); t1.Start(); t2.Start();

1) What is Encapsulation and Polymorphism 2) Difference between Abstraction and Interface 3) Difference between IQueryable and IEnumerable 4) Explain Extension Methods, Anonymous method, Middleware 5) Write a C# program for reversing of the Whole String. 6) Write a C# program to print index of Array from given Array Of Numbers [2, 7, 11, 15] whose Sum is 9.
avatar

Dot Net Expert

Interviewed at HashedIn by Deloitte

4.1
Oct 3, 2024

1) What is Encapsulation and Polymorphism 2) Difference between Abstraction and Interface 3) Difference between IQueryable and IEnumerable 4) Explain Extension Methods, Anonymous method, Middleware 5) Write a C# program for reversing of the Whole String. 6) Write a C# program to print index of Array from given Array Of Numbers [2, 7, 11, 15] whose Sum is 9.

Viewing 8131 - 8140 interview questions

Glassdoor has 8,160 interview questions and reports from Net developer interviews. Prepare for your interview. Get hired. Love your job.