C and C++:
- What is a Virtual Function and why is it used?
- What is a friend function?
- What's the difference between an operator and an operand?
- What's the difference between the * and the & in C++?
- How do you dynamically allocate memory?
.Net Framework:
- What is a garbage collector and how does it work? (Memory management in CLR)
- What is the difference between Finalize() and Dispose()?
- Multithreading Vs Single-threading?
- Thread Vs Process?
- Whats a deadlock, how do you manage deadlocks?
- What is a Windows Service and how does its lifecycle differ from a "standard" EXE?
- What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?
- What is the difference between an EXE and a DLL?
- What is a PID? How is it useful when troubleshooting a system?
- How many processes can listen on a single TCP/IP port?
- What is the GAC? What problem does it solve?
- What is Reflection?
- What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?
- Are the type system represented by XmlSchema and the CLS isomorphic?
- Conceptually, what is the difference between early-binding and late-binding?
- What is the difference between Runtime, and Compile time?
- How many classes could you put in a dll?
- Is using Assembly.Load Static or Dynamic?
- When would using Assembly.LoadFrom or Assembly.LoadFile be appropriate?
- What is an Asssembly Qualified Name? Is it a filename? How is it different?
- Is this valid? Assembly.Load("foo.dll");
- How is a strongly-named assembly different from one that isn’t strongly-named?
- Can DateTimes be null?
- What is the JIT? What is NGEN? What are limitations and benefits of each?
- How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?
- What does this useful command line do? tasklist /m "mscor*"
- What is the difference between in-proc and out-of-proc?
- What technology enables out-of-proc communication in .NET?
- When you’re running a component within ASP.NET, what process is it running within on
- Windows XP? Windows 2000? Windows 2003?
- What’s wrong with a line like this? DateTime.Parse(myString);
- Explain the use of virtual, sealed, override, and abstract.
- Explain the importance and use of each component of this string: Foo.Bar,Version=2.0.205.0, Culture=neutral, PublicKeyToken=593777ae2d274679d
- What benefit do you get from using a Primary Interop Assembly (PIA)?
- By what mechanism does NUnit know what methods to test?
- What is the difference between: catch(Exception e){throw e;} and catch(Exception e){throw;}
- What is the difference between typeof(foo) and myFoo.GetType()?
- Explain what’s happening in the first constructor and how is this construct useful?
- What is this? Can this be used within a static method?
- What are PDBs? Where must they be located for debugging to work?
- What is cyclomatic complexity and why is it important?
- Write a standard lock() plus “double check” to create a critical section around a variable access.
- What is FullTrust? Do GAC’ed assemblies have FullTrust?
- What benefit does your code receive if you decorate it with attributes demanding specific Security permissions?
- What does this do? gacutil /l find /i "Corillian"
- What does this do? sn -t foo.dll
- What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
- Contrast OOP and SOA. What are tenets of each?
- How does the XmlSerializer work? What ACL permissions does a process using it require?
- Why is catch(Exception) almost always a bad idea?
- What is the difference between Debug.Write and Trace.Write? When should each be used?
- What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?
- Does JITting occur per-assembly or per-method? How does this affect the working set Contrast the use of an abstract base class against an interface?
- What is the difference between a.Equals(b) and a == b?
- In the context of a comparison, what is object identity versus object equivalence?
- How would one do a deep copy in .NET?
- What is boxing and unboxing, with examples, what is it used for?
- Is string a value type or a reference type?
- What is the significance of the "PropertySpecified" pattern used by the XmlSerializer
- What problem does it attempt to solve?
- Why are out parameters a bad idea in .NET? Are they?
- Can attributes be placed on specific parameters to a method? Why is this useful?
- How does assembly versioning in .NET prevent DLL Hell?
- What compiler switch creates an xml file from the xml comments in the files in an assembly?
- What is a satellite Assembly?
- How does assembly versioning in .NET prevent DLL Hell?
- In the NUnit test framework, which attribute must adorn a test class in order for it to be picked up by the NUnit GUI?
C#:
- The C# keyword ‘int’ maps to which .NET type?
- How do you escape a backslash in C#?
- How do you declare a two dimentional array in C#?
- If a method is marked as protected internal who can access it?
- Which “Gang of Four” design pattern is shown below? public class A { private A instance; private A() { } public static A Instance { get { if ( A == null ) A = new A(); return instance; } }}
- What is the default accessibility for a class?
- What is the default accessibility for members of an interface?
- What is the default accessibility for members of a struct?
- Can the members of an interface be private?
- Methods must declare a return type, what is the keyword used when nothing is returned from the method?
- Class methods to should be marked with what keyword?
- A class can have many mains, how does this work?
- Does an object need to be made to run main?
- What are the two return types for main?
- What is a reference parameter?
- What is an out parameter?
- What is a constructor?
- If I have a constructor with a parameter, do I need to explicitly create a default constructor?
- What is a destructor?
- Can you use access modifiers with destructors?
- What is an event?
- Are events synchronous of asynchronous?
- Events use a publisher/subscriber model. What is that?
- Can a subscriber subscribe to more than one publisher?
- What is a value type and a reference type?
- Name 5 built in types.
No comments:
Post a Comment