Shenzhen interesting online pen exam interview questions, Shenzhen pen exam questions
Interview Questions
Part 1 (10 points per question)
1> Use Your encoding style to write out a class that can be added, subtracted, multiplied, and divided.
2> evaluate the expression value: 1 + 3 + 5 + 7 + ..... + N
3> Department table:
Department ID Department name
Department 1
Department 2
Department 3
Employee table
Employee ID employee name department ID
1 Name 11
2 name 25
3 name 32
Problem:
1> use an SQL statement to display the names and departments of all personnel. If there is no department, use "unmark" instead.
2> use a trigger to write out a department that is deleted from a department table. Delete records in the employee table at the same time
3> list some of the design patterns you have used and under what conditions to use them.
4> what is stored procedure?
5> write a simple delegate
6> how to process hundreds of thousands of concurrent data records?
You can use separate storage methods to simplify search conditions and store data in different categories !!!
7> what method is used to compare two strings with similar characters and stay in the memory during system running?
8> How many records are saved in SQL SERVER tables, the speed slows down significantly?
9> what are the major bugs in Session? What methods does Microsoft propose to solve them?
10> incorrect answers
Question 1:
Void test2 ()
{
Char string [10], str1 [10];
Char * str1 = "0123456789 ";
Strcpy (string, str1 );
}
Question 2:
Void test2 ()
{
Char string [10], str1 [10];
Int I;
For (I = 0; I <10; I ++)
{
Str1 [I] = 'a ';
}
Strcpy (string, str1 );
}
Question 3:
Void test3 (char * str1)
{
Char string [10];
If (strlen (str1) <= 10)
{
Strcpy (string, str1 );
}
}
11> use Javascript to delete a node with a value of 1223 in the list
Abcd122312> Please write a CSS that turns the background color of the table blue.
Part 2 (3 points per question)
1. The object-oriented languages include _________, _________, and _________.
2. To use foreach to traverse the accessed object, you must implement the _____________ interface or declare the type of the ___________ method.
3. What is GC? Why does GC exist?
4. String s = new String ("xyz"); how many strings are created for Objict?
5. What is the difference between abstract class and interface?
6. Do I use run () or start () to start a thread ()?
7. CAN interfaces inherit interfaces? Can an abstract class implement the (implements) interface? Can an abstract class inherit a concrete class )?
8. Can Constructor be overwritten?
9. Does cocoa inherit the String class?
10. If there is a return statement in try {}, will the Code in finally {} following this try be executed? When will it be executed, before or after retuan?
11. The two objects have the same value (x. equalsy (y) = true), but different hash codes are available. Is this true?
12. Whether the switch works on byte and long. Can it be used on string?
13. After a thread enters a synchronized method of an object, can other threads access other methods of this object?
14. can abstract methods be both static, native, and synchronized?
15. Does List and Set. Map inherit from the Collection interface?
16. The elements in the Set cannot be repeated. How can we identify whether the elements are repeated or not? Is = or equals () used ()? What are their differences?
17. Does the array have the length () method? Does String have the length () method?
18. What is the difference between sleep () and wait?
19. short s1 = 1; s1 = s1 + I; what is the error? Short s1 = 1; s1 + = 1; what is the error?
20. Let's talk about the differences between final and finalize.
21. How to handle hundreds of thousands of concurrent data records?
22. What are the major bugs in Session? What methods does Microsoft propose to solve them?
23. What is the difference between a process and a thread?
24. What is the difference between stack and stack?
25. What is the role of adding static before member variables and member functions?
26. What are the major advances in ASP. NET compared with ASP?
27. the company requires the development of an inherited System. windows. forms. listView components require the following special features: When you click the headers of columns in the ListView, all rows in the view can be rearranged based on the values of each row in the click column (the sorting method is similar to that in the DataGrid ). Based on your knowledge, please briefly discuss your ideas.
28. Specify the following XML file to complete the algorithm flowchart.
Draw a flowchart that traverses all file names (FileName) (use recursive algorithms ).
29. Based on the dalegate knowledge, complete the following code snippets in the user control;
Namespace test
{
Public delegate void OnDBOperate {}
Public class UserControlBase: System. Windows. Forms. UserControl
{
Public event OnDBOperate OnNew;
PrivatevoidtoolBar_ButtonClick (Objectsender:, System. Windows. Forms. ToolBarButtonClickEvent Argse
{
If (e. Button. Equals (BtnNew ))
{
// Complete the following code to call the OnNew event of the OnDBOperate delegate signature.
}
}
}
}
30. Based on the knowledge of thread security, analyze the following code. Will the deadlock occur when I> 10 is called when the test method is called? And briefly explain the reasons.
Public void test (int I)
{
Lock (this)
{
If (I> 10)
{
I -;
Test (I)
}
}
}
Part 3 logical analysis (no score)
There are three lights in the room, and there are three switches outside the room. The room is invisible outside the room, but the switch can be mixed as needed. You can only observe the door once, what method do you use to differentiate which switch controls the lamp?
Interesting interview questions
There are three answers to this question:
RMB 1 and RMB 2 respectively earned RMB 2 for two times.
2, 3 yuan, this person initially spent 8 yuan, and finally took back 11 yuan, the difference between the two, for 3 yuan.
3.-2 RMB. The minimum purchase cost and maximum selling price of a person are 8 yuan and 11 yuan respectively. In the first transaction, this person sold at 9 yuan and lost 2 yuan, the second purchase was two yuan higher than the lowest cost, so there was a loss of two yuan, a total loss of 4 yuan. In the two transactions, he made a profit of 2 yuan, so he eventually lost 2 yuan.
What are the interview questions and test questions of Shenzhen Foreign Language School?
Do you want to test out of the market?
Students/sisters
However, it is not that easy to take an exam out of the market. Basically, the way you take an exam each year is different. For example, this year is an interview, but he turns the content of the test into a verbal test, A lot of preparations for looking at pictures are in vain.
Out-of-the-market exams are mainly based on your flexible response, comprehensive knowledge and capabilities, ODPS. Social observation is very important at ordinary times, but you should pay attention to the basic score of English (70 points ~).
All together is to lay a good foundation for English. I usually pay more attention to it and make more Olympics. I don't have to worry about it, on-site play is also important.
Come on! If you have any questions, add me Q: 513545898.
This is an example of your experience ~~~~