Interview record one

Lenovo Outsourcing Telephone Interview:
1. Introduce yourself
2. Introduce the project balabala

QT serial port program introduces
how many lines you have written about this program, how it
is implemented, and what functions are there (reading data, analyzing data)

How is the QT chat room implemented?
How to deal with sending failures or receiving failures, how to debug, prompting that you need to capture packets instead of simple single-step debugging.

Ask the client how to communicate with other clients, for example, how do I know which client to send a message to.

  My answer is to send to the server, and then the server creates a Socket object to communicate according to the corresponding ID value.
Which layer of the protocol is TCP.
TCP connection process.

It's too little to spit at the interviewer (forgot Guan Mai). Then ask the basics.

3. The static keyword is introduced: when
it comes to limited scope, the
life cycle is global, and the
static local scope is local
? (Questions from the interviewer)

4. How to flip the singly linked list. (No description is clear)
First of all, the recursive method of saying yes: the idea of ​​divide and conquer,
and then say that we must first define the exit, and half of the people said that it was not the answer he wanted.
Then it said to define local variables to do.

5. The difference between tree and binary tree. (Not described clearly)

When I first asked about balanced binary trees, I said that I didn't understand them, only about trees and binary trees.
Answer: The binary tree is an evolution of the ordinary tree. The binary tree has only two nodes. . .
I don't know how to describe it at all and I'm not ready.

6. The difference between process and thread.
Answer: Thread is the basic unit of CPU scheduling.
There can be multiple threads in the process.
The thread can only depend on the process to run.
These answers are not what the interviewer wants to hear, they ask the difference. (It is not clear yet)

7. Can global variables and local variables have the same name.
The first can't be said, the second can be said. (Nervous)

8. Have you read the source code, the code written by others.
Have not read the source code, read the code written by others.

The first video interview at
12 o'clock will inform the video interview at two o'clock in the afternoon.
It started without a video, and it turned into a
personal feeling for a phone interview . The result should be cool.

Guess you like

Origin www.cnblogs.com/liuchl0007/p/12693169.html