Net (C #) senior programmer interview questions

This article is reproduced connection:  https://blog.csdn.net/chinaplan/article/details/73042713

 

First, the basic question
following figure CCP contains () squares

1    1    1    1    1
1    1    1    1    1
1    1    1    1    1
1    1    1    1    1


1. There are a moving bus, passengers only seven girls, three girls which each carry three baskets, a basket installed three rabbits, the other two baskets of the tube with 4 chickens ; and four girls each holding two dogs and a goose. 
I ask you: how many legs this car on the bus? Simply stated reasoning.

2. B, CD is a classmate, it is only one sentence is a lie: 
A: The whole class passed the exam. 
B: Ding did not pass. 
C: We have several classes did not pass. 
Ding: B did not pass. 
who was lying?

Second, the short answer section
1. Briefly arrays, linked lists, hash (the HASH) characteristics of each

2. String is what type of data (reference type? Value type?) To determine what the following code? String s1 = s2 = "12345"; s1 = "23456"; Q: What is the value of s2, brief reasons

What is the difference 3. String and StringBuilder are

4. Write a custom event parameters with return value

5. Description of using several uses keyword

6. C # using GDI + when the receipt image, how to solve the problem of image flicker

7. How does multi-server generates a globally unique ID

8. DESCRIPTION socket communication link establishment and disconnection process

Object-oriented concepts in class 9. Javascript exist? If so, how to define?

10. In the front-end development, SPA What does it mean? Which framework to achieve the SPA have? In what ways used to optimize the page components

11. Asp.net Web Api What does it mean? Asp.net Web Api which is similar to the technology used?

12.

Test void public (I int)
{
    Lock (the this)
    {
      IF (i> 0)
        {
        i--;
        }
    Test (I);
    }
}
. 1
2
. 3
. 4
. 5
. 6
. 7
. 8
. 9
10
. 11
When i> die 10 lock on it? Briefly reason

13. For several ways to lock it, you feel more appropriate one is which one, simple narrative justification under

The first

{
    Object lockObject = new new Object ();
    Lock (lockObject) {}
}
. 1
2
. 3
. 4
second

{
    Object lockObject = new new Object ();
    Lock (typeof (lockObject)) {}
}
. 1
2
. 3
. 4
a third

Private static object lockObject=new Object();
{
    Lock(lockObject){}
}
1
2
3
4
第四种

{
    Lock(this){}
}
1
2
3


14. How to solve the problem of memory leaks in .net? Which tool is used to detect?

15. A look at the following code, you can simply think he is kind of what technology (skill), doing any good.

Class DataCache
{
    Private TemporaryFileSystem _fileSystem;
    Public TemporaryFileSystem FileSystem
    {
        get
        {
           if(_fileSystem==null)
           {
               _fileSystem=new TemporaryFileSystem();
           }
           return _fileSystem;
        }
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


16. List your know design patterns, and use the code to write a case in point. Talk about the benefits of using design patterns might bring.

17. The database, which has several index types? Talk about the principle of common database indexes and index implementation.

18. The most recent hits to write SQL 
data table structure: SnapDayDoMainPV 
table name: DomainPageView 
Visit LogDate Datetime 
sub-sites Domain Varchar (500) 
page views PageView Number (10,0) 
please write SQL returns the latest on the 1st sub-site visits (different The latest day of sub-sites may vary) 

19. What is the NOSQL? Why NOSQL? What are the advantages NOSQL is?

Third, the programming section (C ++ programming language in Java or C # or any selection)
rule number one as follows: 1,1,2,3,5,8,13,21,34 ...... is seeking 30-digit number , implemented by a recursive algorithm. 

The array of data stored in a certain set of types, implemented by sorting the array of generic types.
Fourth, the programming problem (brief write your design and analysis process, write simple code structure and logic)
cat screamed, all the rats are beginning to flee, the owner was awakened 
requirements: 
1. to have a linkage between mice and owner's behavior is passive.

2. Consider scalability, cat calls may cause other linkage effects.
----------------
Disclaimer: This article is CSDN bloggers "to be continued next second _" original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/chinaplan/article/details/73042713

发布了6 篇原创文章 · 获赞 189 · 访问量 28万+

Guess you like

Origin blog.csdn.net/newbie_xymt/article/details/103567672