A. B::f()B::f()const
B. B::f()A::f()const
C. A::f()B::f()const
D. A::f()A::f()const
3. What is the difference between a linked list and an array?(3 Points)
A. Search complexity when both are sorted
B. Dynamically add/remove
C. Random access efficiency
D. Data storage type
4. About the Thread and Process in Windows, which description(s) is(are) correct:
(3 Points)
A. One application in OS must have one Process, but not a necessary to have one
Thread
B. The Process could have its own Stack but the thread only could share the Stack of
its parent Process
C. Thread must belongs to a Process
D. Thread could change its belonging Process
5. What is the output of the following code?(3 Points)
[cpp] view plain copy
1. {
2. int x = 10 ;
3. int y = 10 ;
4. x = x++ ;
5. y = ++y ;
6. printf("%d, %d\n",x,y);
7. }
A. 10, 10
B. 10, 11
C. 11, 10
D. 11, 11
6. For the following Java or C# code(3 Points)
[csharp] view plain copy
1. int [][] myArray3 =
2. new int[3][]{
3. new int[3]{5,6,2},
4. new int[5]{6,9,7,8,3},
5. new int[2]{3,2}};
What will myArray3[2][2]
评论