Intrebari Interviu Programator
Intrebari Interviu Programator
1. What is a class?
4. What is a constructor?
9. What is polymorphism?
19. In what scenarios will you use a abstract class and in what scenarios will you use a interface?
1
20. What is the difference between override Foo () and new Foo () in the following example:
Console.WriteLine("Foo BaseClas");
Console.WriteLine("Foo DerivedClass");
c.Foo(); //What is the output? Which will be the output if override is replaced by "new"?
2
.NET
1. How would you define the .NET framework?
3. What is the JIT? What is NGEN? What are limitations and benefits of each?
4. Does JITting occur per-assembly or per-method? How does this affect the working set?
3
C#
1. What would be the output of the following code:
public class BaseClass {
public virtual void Display() {
System.Console.WriteLine(BaseClass: Display);
}
}
b = new DerivedClass();
b.Display();
}
}
5. What is boxing?
4
10. What is an anonymous method? What is a lambda expression?
13. What is an anonymous type? When would you use an anonymous type?
and
catch(Exception e) {
throw;
}
17. In the try/catch/finally the finally block is called even an exception occurs?
5
22. What is Garbage Collection and how does it work?
23. How is the using() pattern useful? What is IDisposable? How does it support deterministic
finalization?
26. The following method gives different results when run multiple times. Why?
private static int CalculateTotal(){
int total = 0;
return total;
}
27. What is the difference between a Debug and Release build? Is there a significant speed
difference? Why or why not?
31. What is a Windows Service and how does its lifecycle differ from a "standard" EXE?
6
SQL
1. Would you use in-line queries or stored procedures? Why?
7. What is the importance of primary keys and foreign keys in a SQL Server OLTP database design?
8. What is an identity? What is the value? How can you capture the last identity value per column?
10. How do you code error handling logic in your stored procedures?
11. Name 3 or more aggregate functions and the value they provide in your coding.
12. Can tables be over indexed? What are the performance implications?