11. If you computed 32 bit signed integers F and G from 32 bit signed X using F = X / 2 and G = (X>>1), and you found F!=G, this implies that(5 Points) A. There is a compiler error B. X is odd C. X is negative D. F - G = 1 E. G - F = 1 |
问题解析:
12. How many rectangles you can find from 3*4 grid?(5 Points) A. 18 B. 20 C. 40 D. 60 E. None of above is correct |
问题解析:
13. One line can split a surface to 2 part, 2 line can split a surface to 4 part. Given 100 lines, no two parallel lines, no tree lines join at same point, how many parts can 100 line split?(5 Points) A. 5051 B. 5053 C. 5510 D. 5511 |
问题解析:
14. Which of the following sorting algorithm(s) is(are) stable sorting?(5 Points) A. bubble sort B. quick sort C. heap sort D. merge sort E. Selection sort |
问题解析:
15. Model-View-Controller(MVC) is an architectural pattern that frequently used in web applications. Which of the following statement(s) is(are) correct:(5 Points) A. Models often represent data and the business logics needed to manipulate the data in the application B. A view is a (visual) representation of its model. It renders the model into a form suitable for interaction, typically a user interface element C. A controller is the link between a user and the system. It accepts input from the user and instructs the model and a view to perform actions based on that input D. The common practice of MVC in web applications is, the model receives GET or POST input from user and decides what to do with it, handing over to controller and which hand control to views(HTML-generating components) E. None of the above |
问题解析: