Huawei interview questions
Q1: Please draw the seven-layer network structure diagram of OSI, and five-layer structural map of TCP / IP? Q2: Please explain the definition of the IP protocol in detail, which layer is there? TCP and UDP? Q3: What is the principle of switching and router separately? Which hierarchy is achieved? Q4: What is the difference between C classes and c inside? Q5: Do you talk about the use and effect of a monogram function and a virtual function? Q6: What is the difference between global variables and local variables? How is it realized? How does the operating system and a compiler know? Q7: The topic of some registers is mainly some knowledge such as addressing and memory management. Q8: 8086 How many systems? How is it implemented on the data bus? 1. There are 32 rooms on the 5th floor. There are 32 rooms on the 6th floor. The 5th floor is full of guests. The six floors are all empty. Now let you take the 5th floor. Realization! 2. Write code to implement the push () and POP () methods of the stack; 3. Link list; 4. Binary tree; 5. Logic reasoning: There is a day and 12 balls, one in 12 balls is different. , The rest is the same, please separate the different balls 3 times (note that the ball is not the same as other balls, it is not known) 6. Read the program to find the mistake (at least 8 wrong)