C#:
 
1.     Describe the accessibility modifier “protected internal”. What classes can access such a variable?2.     What’s the difference between an interface and abstract class?3.     In a try/catch/finally statement, will the finally block get executed if an exception has not occurred?4.     Are private class-level variables inherited? 5.     What’s a delegate? 6.     What’s the top .NET class that everything is derived from? 7.     What is CLR?8.     What is Global Assembly Cache (GAC) and what is the purpose of it?  9.     Can multiple catch blocks be executed for a single try statement?10.   When would you use a Dispose function?11.   What is the difference between method overloading and overriding?
C/C++:1.     How would you pass the address of an integer variable called “count” to a function?  2.     What is the syntax used to declare a pointer named foo to a character value?  3.     What does it mean to declare a static member variable?4.     What is the difference between a struct and a class in C++?     5.     What is a friend functionC++)?                                                                                             6.     What is the difference between new/delete and malloc/free?7.     What is Pure Virtual Function? Why and when it is used?Data Structures/Algorithms1.     What's the difference between a linked list and an array?2.     Describe the binary search algorithm3.     What is the difference between String class and StringBuilder class in the .Net Framework?
Coding questions
 
(please use C++ if you are familiar with this programming language, otherwise use C#).1.     Implement a function that returns the n-th element from the end of a single linked list, by traversing the list only once. How would you test this function? Please do not use any list manipulation functions that you did not implement yourself.2.     Write a function that reverses the words in a sentence. For example, if the input is the following string: “I am Sam”, the output should be “Sam am I”. Don’t use any string manipulation functions that you don’t implement yourself. Preferably, the function should do the reverting in place.3.     Write a function that inserts a node containing an integer value in a double linked list that is sorted. Please do not use any list manipulation functions that you did not implement yourself.4.     Write a function that receives three integer inputs for the lengths of the sides of a triangle and returns one of four values to determine the triangle type (1=scalene, 2=isosceles, 3=equilateral, 4=error). Generate test cases for the function assuming another developer coded the function 5.     Given an array of integers that are not sorted in any order and knowing that one of the elements appears in the array twice, write a function that returns that duplicate integer. Do not use any helper functions that you don’t implement yourself.Testing questions
 
1.     What is the difference between black box and white box testing?2.     How would you test a computer mouse?

解决方案 »

  1.   

    a1,too much in web,
    a2, give you such as 
        1. 值类型的数据存储在内存的栈中;引用类型的数据存储在内存的堆中,而内存单元中只存放堆中对象  的地址。
    2. 值类型存取速度快,引用类型存取速度慢。
    3. 值类型表示实际数据,引用类型表示指向存储在内存堆中的数据的指针或引用
    4. 值类型继承自System.ValueType,引用类型继承自System.Object
    5. 栈的内存分配是自动释放;而堆在.NET中会有GC来释放
    C#中基本数据类型是值类型,结构也是值类型。而数组、类、接口、字符串都是引用类型。
    a3  is  to  easl
    a4  NO(私有变量能不能继承)
    a5  5. What’s a delegate? ------- the question is stupided 
    a7 . What is CLR? ----Common Language Runtime, maybe  they mean is  Microsoft's .NET Common Language Runtime!
               
      

  2.   

    34Waiting for the answers...
      

  3.   

    answer the questions also in English?