[Original] thoughts on candidates for one month

Source: Internet
Author: User

I have been away from the company since December 1, February 2, and today is just a month. Fortunately, February is a leap month. I don't know if it will crash in a few days. Haha. Yesterday, the official launch of the official website, for more than a month, I have honed my personal psychology and technical skills. I would like to make a simple summary and hope to help you a little.

 

First, psychologically, I didn't know how to interview from the very beginning. I was very nervous and finally interviewed via. Although I knew that I could not meet the requirements of via, I went there, and my mental status was good, although it was severely despised. The main reason is that I have never been in touch with the development of the network card, so during the interview, the engineer of the other party only asks network questions, so it doesn't matter, I submitted my via resume and invited them. It was a complete process. I heard from my friends that I sent an application, then people invited to the interview and agreed to go to the interview. As a result, they didn't go on the day of the interview. I felt like this was not suitable. After all, I promised to go, better or worse, you can help yourself find the places you can learn.

 

After this period of interview, I had a new understanding of the interview. First of all, it is normal to be nervous, but don't be too nervous. I have no news from any of the first interviewees, one is that the written test is really not very good. The question is very simple, but it is too tight, careless and wrong a lot of questions, or even wrong, it is wrong to check the problem, A nervous person is a little unconfident. Fortunately, the interview is still cool, and I want to accept the questions again. It is mainly careless. Therefore, do not be too nervous whether it is a written test or an interview, the same is true for interviews. When you are nervous, your face is very stiff. You don't feel uncomfortable about the interview. The first image is still very good at scoring. Just try to maintain a normal State to deal with it. A smile makes the conversation easier. If you encounter an interviewer with a heavy accent, it is also a difficult problem. At this time, try to slow down and adapt to the accent of the other person. Because it is very likely that you want to work with him, you have to try to change yourself. The last point is to maintain a modest attitude. If you do not know what you know, you will get the via interview. It is indeed that you have not gone to the Internet for nearly three years, the examiner asks if he doesn't know, and says he doesn't know. This is actually a win-win situation, and he will not be very passive. The other company can also understand your general situation. In a word, the interview is calm and his attitude is modest, if you are realistic, you can.

 

Technically, we may not be able to get in touch with Wince for a while after going to MCO. However, we had the honor to get guidance from hjb he Xiong yesterday and thought it didn't matter. We were still in the embedded electronics industry, the operating system is not very important. In the morning, when he answered a question in the group, he also mentioned that what system is used is not the key. Based on his years of experience, what is always usable is the design pattern andAlgorithm, Mainly sorting and searching. Others are learning at the same time while learning at the same time. The most important thing is the foundation of learning. Indeed, if you have a solid foundation and want to be a master like Jack Tong and he Xiong, development is not limited to an operating system, so you can skillfully walk around and develop different operating systems. Therefore, we need to lay a solid foundation.

 

Finally, I would like to summarize several typical questions about the written examination questions this month.ProgramYou can do it yourself, and then go to TC or VC to run it. Not very difficult. It is mainly careful.

 

1. Describe the results printed by the following program. By: Part of the via interview questions

 
1:# Include <stdio. h>
 
2: 
 
3:TypedefStruct
 
4:{
 
5:IntSfirst;
6:IntSSecond;
 
7:CharSthird;
 
8:} Test1;
 
9: 
 
10:Typedef Union
 
11:{
 
12:IntUfirst;
 
13:IntUsecond;
 
14:CharUthird;
 
15:} Test2;
 
16: 
17:CharGloblearray = 1;
 
18: 
 
19:VoidMain ()
 
20:{
 
21:IntI = 0;
 
22:IntJ = 0;
 
23:IntStop = 0;
 
24:IntArray [10] [10] = {0 };
 
25:CharAlphabeta [11] ="1234567890";
 
26:Globlearray = 4;
27: 
 
28:For(I = 0; I <10; I ++)
 
29:For(J = 0; j <10; j ++)
 
30:{
 
31:Array [I] [J] = I + J * 10;
 
32:}
 
33:System ("CLS");
 
34:Printf ("Array [2] [3] = % d \ n", Array [2] [3]);/* Value */
 
35:Printf ("Array [0] [0] = % d \ n", Array [0] [0]);/* Value */
36:Printf ("Array [2] = % d \ n", Array [2]);/* Address */
 
37:Printf ("Array [2]-2 = % d \ n", * (Array [2]-2 ));/* Address */
 
38:Printf ("Array [2] [3]'s address = % d \ n", & (Array [2] [3]);/* Address */
 
39:Printf ("Array [2] [3]-2 = % d \ n", * (& (Array [2] [3])-2 ));/* Value */
 
40:Printf ("Alphabeta + 2 = % C \ n", * (Alphabeta + 2 ));/* Value */
41:Printf ("Sizeof (test1) = % d \ n",Sizeof(Test1 ));
 
42:Printf ("Sizeof (Test2) = % d \ n",Sizeof(Test2 ));
 
43:Printf ("Globlearray = % d \ n", Globlearray );
 
44:System ("Pause");
 
45:}

 

2. What is the role of static? Static global variables, local variables, functions and common global variables, local variables, functions

What is the difference between static global variables and common global variables? What is the difference between static local variables and common local variables? What is the difference between a static function and a common function?

By: Group Creation,

Static has three functions:

1 ).In the function body, a variable declared as static remains unchanged when the function is called.

2 ).In a module (but in the external body of a function), a variable declared as static can be accessed by the function used in the module, but cannot be accessed by other functions outside the module. It is a local global variable.

3 ).In a module, a function declared as static can only be called by other functions in this module. That is, this function is restricted to use within the local scope of the module that declares it.

The main difference between the above questions is also a common test, which may be in the form of a program. Via tests the program and asks whether the variable is allocated to the memory stack or heap? Is it local heap or global heap? So first, you can clarify the concept and make sure you are careful and bold.

The description of global variables (external variables) is preceded by static to form a static global variable.

Global variables are static storage, and static global variables are also static storage.

The two are not different in storage methods. The difference between the two lies in that the scope of non-static global variables is the entire source program. When a source program is composed of multiple source files, non-static global variables are valid in each source file. The static global variable limits its scope, that is, it is valid only in the source file defining the variable, and cannot be used in other source files of the same source program. Because the scope of static global variables is limited to one source file, they can only be shared by functions in the source file. Therefore, errors in other source files can be avoided.

From the above analysis, we can see that after a local variable is changed to a static variable, its storage mode is changed, that is, its survival time is changed. After changing a global variable to a static variable, it changes its scope and limits its scope of use.

Static functions have different scopes than normal functions. Only in this file. Only functions used in the current source file should be declared as internal functions (static). Internal functions should be described and defined in the current source file. For functions that can be used outside the current source file, it should be described in a header file that the source files to use these functions must contain this header file.

What is the difference between static global variables and common global variables? STATIC global variables are only made once to prevent being referenced in other file units;

What is the difference between static local variables and common local variables: static local variables are initialized only once, and the next time is based on the previous result value;

What is the difference between a static function and a common function: a static function has only one copy in the memory, and a common function maintains a copy of the local variable of the program in each call, global variables exist in (static zone) and dynamic application data exist in (HEAP.

 

The memory occupied by a C/C ++ compiled program is divided into the following parts:

1. STACK: the stack zone is automatically allocated and released by the compiler, and stores function parameter values and local variable values. The operation method is similar to the stack in the data structure.
2. Heap-generally assigned and released by the programmer. If the programmer does not release the heap, it may be recycled by the OS at the end of the program. Note that it is different from the heap in the data structure. The allocation method is similar to the linked list.
3. Global (static)-the storage of global variables and static variables is put together, and the initialized global variables and static variables are in one area, uninitialized global variables and uninitialized static variables
The variable is located in another adjacent area. -The system is released after the program ends.
4. Text Constant Area-constant strings are placed here. The program is released by the System
5. ProgramCodeZone-stores the binary code of the function body.

 

Finally summarize the stack, or more important, resources from: http://blog.chinaunix.net/u2/84220/showart_1796832.html

The difference between stack and stack can be seen in the following metaphor:
Using Stacks is like eating at a restaurant, just ordering food (sending an application), paying for it, and eating (using it). If you are full, you can leave, he does not have to worry about cooking, washing, and other preparation work, as well as washing dishes, flushing pots, etc.
Quick, but with Low Degrees of Freedom.
Using heap is like making your favorite dishes. It is troublesome, but it suits your taste and has a high degree of freedom.

The differences between stack and stack are as follows:

The heap and stack of the operating system, as mentioned above, will not be mentioned much.
There is also the heap and stack in the data structure. These are different concepts. Here, the heap actually refers to a Data Structure (meeting the heap nature) of the priority queue. The 1st elements have the highest priority; the actual Stack
It is a mathematical or data structure that satisfies the advanced nature.

 

In addition, there are some assembly knowledge. What is the difference between mov and Lea? You can get it from Baidu or Google. I will not talk about it here.

 

The written examination is brave and the interview is easy to handle. I hope you can find a satisfactory job!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.