13 After the following statement segment is executed, the value of i is () int f(int x) { return ((x>0) ? x* f(x-1):2); } int i ; i =f(f(1));
A. 2
B. 4
C. 8
D. Infinite recursion
查看答案
4. If the address of the first element in a sequence table is base (index starts from 1), and each node accounts for M units, then the address of the ith node is ()
A. Base+(i-1)×m
B. Base+(i+1)×m
C. Base+i×m
D. Base-i×m
5. The most common operation in a linear table is to insert an element after the last element and delete the first element, so () storage is the most time-saving operation.
A. singly linked circular list with only a tail pointer
B. singly linked lsit
C. singly linked circular list with only a head pointer
D. doubly linked list
1 In the data structure, the data structure can be logically divided into ( ).
A. dynamic structure and static
B. compact structure and non-compact structure
C. linear and nonlinear structure
D. internal structure and external structure
2 In the data structure, from the storage structure can be divided into ( ).
A. dynamic structure and static
B. sequential structure and linked structure
C. compact structure and non-compact structure
D. linear and nonlinear structures