Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Huawei C++ development engineer interview summary, how many interview questions can you answer? With answers.

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Foreword:

Although new languages may appear every month around the world, according to the data of the TIOBE world programming language rankings, Cpicard has been in the top 3 from 2009 to the present. No matter how the wheel of history rolls forward, it will never fall behind to learn well.

Questions asked by the interviewer:

One side:

1. Introduce yourself first.

two。 Describe the project on your resume, and then choose a project that you think is the most important, as well as what problems the project encountered and how to solve it.

3.Nagle algorithm and congestion control of tcp.

4. What databases have been used by the project? Don't ask if you haven't used it.

Two sides:

1. Go over the resume items.

two。 How to understand the robustness and high reliability of software.

3. Learn which modules of the linux kernel.

Summary of interview for Huawei C++ development project:

CAccord + interview question bank v1.0

1. Basic part

1.1 language

I. what are the characteristics and differences between C and C++?

Second, explain the polymorphism of C++.

Third, explain the realization of C++ virtual function.

Fourth, C and C++ memory allocation problem.

5. Data model (LP32 ILP32 LP64 LLP64 ILP64).

two。 Advanced part

2.1 Network

First, draw the flow chart of three handshakes and four waves.

Please explain the process of establishing a connection in https.

Third, draw the corresponding relationship between OSI and TCP/IP protocol stack.

Please explain the principle and process of ARQ protocol.

Please explain the principle and process of sliding window protocol.

2.2 operating system

1. What are the ways of process communication? Which is the most efficient?

Second, the mode of communication between threads.

Please explain the concepts of process and thread respectively, and analyze the similarities and differences.

2.3 Database

Fourth, the difference between myisam and innodb in MySQL.

5. Four features of innodb engine.

Which is faster, MyISAM or InnoDB selectcount (*), and why?

7. What data types are supported by Redis?

What is Redis persistence? What are the persistence methods of Redis? What are the advantages and disadvantages?

Huh?

9. Redis Communication Protocol (RESP), can you explain what is RESP? What are the characteristics?

What are the architectural models of Redis? Tell me about their respective characteristics.

2.4 data structure

First, linear table.

Second, binary tree.

Third, the red and black tree.

Fourth, balance tree.

5. Radix tree.

6. Quadtree.

Seven, octree.

8. Merkel tree.

2.5 algorithm

First, sorting algorithm.

Second, consistent hash algorithm.

Third, paxos algorithm.

4. Raft algorithm.

5. Elliptic curve algorithm.

Answer:

I. what are the characteristics and differences between C and C++?

Reference answer:

Answer: (1) C language features:

1) as a process-oriented structured language, it is easy to debug and maintain

2) strong performance and processing power, and can directly access the physical address of memory

3) C language realizes the programming operation of hardware, and is also suitable for the development of application software.

4) C language also has the characteristics of high efficiency and strong portability.

(2) C++ language features:

1) expand and improve the C language to make C++ compatible with the process-oriented features of C language, and become

An object-oriented programming language

2) you can use abstract data types for object-based programming

3) Multi-inheritance and polymorphism can be used for object-oriented programming.

4) it can undertake generic programming characterized by templates.

Second, explain the polymorphism of C++.

Reference answer:

Compile-time polymorphism: mainly refers to generic programming

Run-time polymorphism:

The polymorphism of C++ can be summarized in one sentence: add the virtual keyword before the function of the base class, override the function in the derived class, and the runtime will call the corresponding function according to the actual type of the object. If the object type is a derived class, call the

The function of the derived class; if the object type is the base class, the function of the base class is called.

1) the function declared with the virtual keyword is called a virtual function, and the virtual function must be a member function of the class

2) all classes with virtual functions have an one-dimensional virtual function table called virtual table, and the object of the class has a point to the beginning of the virtual table.

Virtual pointer. Virtual tables correspond to classes, and virtual table pointers correspond to objects

3) Polymorphism is an interface with multiple implementations, and it is the core of object-oriented, which is divided into class polymorphism and function polymorphism.

Sex.

4) Polymorphism is realized by virtual function, combined with dynamic binding.

5) Pure virtual functions are virtual functions plus = 0

6) an abstract class is a class that includes at least one pure virtual function

Pure virtual function: virtual void fun () = 0; that is, abstract class, must implement this function in subclass, that is, first have a name, no content, and implement content in derived class.

……

Because the article is too long, the answers can not be compiled and uploaded one by one, so I organized the answers into PDF documents, interview questions + answers, friends who need them can have information.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report