Summary code for a set of interview questions
Interview Example 1:How can I use a macro to define "find" to find the variable cnum IN THE ctype of a struct relative to the size of the ctype?For example:
View sourceprint? Stuct student
{
Int;
Char B [20];
Double ccc;
}
Then:Find (student, a); // equals 0Find (student, B); // equals to 4
Answer:
# Define find (str
For a php interview question, write a server status check code to check whether index.html?regular on the full-department website of http://www.wps.cn/is this question true? How can we solve this problem and ask the experts to solve it ;? Php $ hosts = gethostbyname: a php interview question
Write a piece of server status check code to check if index.html access on all regions of the http://www.wps.cn/do
Android interview questions
1. Which of the following statements about memory reclaim are correct? (B)A. the programmer must create a thread to release the memory.B. The memory reclaim program is responsible for releasing useless memory.C. The memory reclaim program allows programmers to directly release the memory.D. The memory reclaim program can release memory
The Spring framework is now almost a standard framework for Java WEB development. So, as a Java programmer, how much do you know about Spring's main technical points? You may want to use the questions in this article to check.1. General questions1.1. What are the main features of different versions of the Spring Framework?Versionfeaturespring 2.5 was released in 2007. This is the first version that supports
= "Aaaabbbccccddfgh"; var obj = {};for (var i=0;i10, write a function, clear the string before and after the space. (compatible with all browsers)function Trim (str) {if (str typeof str = = = = = = "string") {return str.replace (/(^\s*) | ( \s*) $/g, ""); Remove front and back blank characters}}other1. What is the process of a complete HTTP transaction? Basic Flow:A. Domain Name resolutionB. 3-time handshake to initiate TCPC. Initiating an HTTP request after establishing a TCP connectionD. ser
Java programmer interview questions (86-115)
86. In Struts 2, how does Action obtain the data that the user inputs from the page, and how does it transmit its own data to the view?
A: There are three ways for Action to retrieve data from the page:
1) accept parameters through the Action attribute
2) obtain parameters through the domain model
3) ModelDriven
)
client. The expression is defined between the two tags, 9. What does the implied object mean? What are the hidden objects?JSP implied objects are some Java objects in the page, and the JSP container allows these Java objects to be used by developers. Developers can use them directly without a clear statement. JSP implicit objects are also called predefined variables. The following lists the implied objects in the JSP page:ApplicationPageRequestResponseSessionexceptionOutConfigPageContext
Java multithreading interview questions Induction1. What are the implementation methods for multithreading? The following example shows the thread synchronization.
(1) Java multithreading has two implementation methods: Inheriting the Thread class and implementing the Runnable interface. Thread implements the Runnable interface.
Two simple thread examples:
Package chc. runnable; public class ThreadTest2 {p
The answers to common written or interview questions compiled by one student are for reference only and do not represent my opinion.
1. It is known that the prototype of the strcpy function is:Char * strcpy (char * strdest, const char * strsrc );Here, strdest is the destination string and strsrc is the source string. Do not call the string library function of C ++/C. Compile the strcpy function.Answer:C
maintainability and non-repetition of wheel-making. For example, all spring templates (JDBC,REST,JPA, and so on) have the following advantages: they are built in a consistent way, so you can skip these general steps to focus on more important business logic.
Spring MVC is not necessarily the best web framework. There are other, for example, Struts 2,wicket and JSF. That said, spring can also be well integrated with these frameworks (STRUTS,JSF, etc.).
XML files are too bloated, and this
A company's Linux platform C programmer asked a question during the interview-Linux general technology-Linux programming and kernel information. The following is a detailed description. 1. How many lines of project code do you have?
2. What is the role of the volatile keyword in C?
3. How to Write a daemon process
4. Several types of IPC
5. which system is used to call the MPs queue?
6. Bash Problems
dispatch and dispatch, and a smaller unit that can run independently than a process. Thread's StrokeThe sub-scale is less than the process, which makes the multi-threaded procedure highly concurrency, and the process typically has independent memory units at execution time, while the threads can share memory. Programming with multithreading often leads to better performance and user experience,But multithreaded programs are unfriendly to other programs because they may consume more CPU resource
, frequent new/delete is bound to cause memory space discontinuity, resulting in a large number of fragments, so that program efficiency is reduced. For the stack, there is no problem, because the stack is advanced out of the queue, they are so one by one correspondence, so that there will never be a memory block from the middle of the stack poppedAllocation method: The heap is dynamically allocated and there are no statically allocated heaps. Stacks are allocated in 2 ways: static allocation an
C ++ programmers apply for common interview questions in-depth analysis 3-Linux general technology-Linux technology and application information, the following is to read details. Question 5: Write a function to shift n loops of a char string to the right. For example, if "abcdefghi" is n = 2, it should be "hiabcdefgh" after the shift"
The function header is as follows:
// PStr is a pointer to a string end
Analysis and Summary of Baidu Java R D interview questions
1. Analysis of Common application scenarios in singleton mode.
Among the 23 design modes, the singleton mode is the largest. It is easy to understand, but applicable to scenarios. Are you really familiar with this? The use of Singleton is because there is no need to create an object for each request, which wastes both CPU and memory. The use of mu
are characterized by the inability to define variables, and all methods are abstract methods . abstract classes can have variables and do not enforce the need for abstract methods .Inheritance of class 16 and implementation of interfacesParsing: Class Inheriting the parent class implements the interface with the class, which is essentially the same. is to either extend or rewrite the parent class or interface as a template on this template. In practical programming, programmers often need to in
, and future to implement threads with return resultsThe Executorservice, callable, and future three interfaces are actually executor frameworks. The thread that returns the result is a new feature introduced in the JDK1.5, and with this feature it is no longer necessary to get the return value. And it can be flawed if it is achieved.A task that can return a value must implement the callable interface. Similarly, a task without a return value must implement the Runnable interface.After performin
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.