Net Developer Interview Questions

8,182 net developer interview questions shared by candidates

You must use a function called rand4 (which returns 0 through 4) to return a value which is random from 0 to 3 (in a new function called rand3). What's the best way to do this - while keeping it truly random? You cannot use the .NET random functions.
avatar

Senior .NET Backend Developer

Interviewed at Rockstar Games

3.7
Apr 26, 2019

You must use a function called rand4 (which returns 0 through 4) to return a value which is random from 0 to 3 (in a new function called rand3). What's the best way to do this - while keeping it truly random? You cannot use the .NET random functions.

output of below code class A { public void show() { Console.WriteLine("Hello: Base Class!"); Console.ReadLine(); } } class B : A { public new void show() { Console.WriteLine("Hello: Derived Class!"); Console.ReadLine(); } }
avatar

Technical Lead (.NET)

Interviewed at HARMAN

3.8
Mar 27, 2024

output of below code class A { public void show() { Console.WriteLine("Hello: Base Class!"); Console.ReadLine(); } } class B : A { public new void show() { Console.WriteLine("Hello: Derived Class!"); Console.ReadLine(); } }

Viewing 6361 - 6370 interview questions

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