Which of the following is required in a recursive function?
a) Exactly one recursive call and exactly one stopping case.
b) Calls to functions other than itself.
c) One or more stopping cases after a sequence of calls to one or more recursive
cases.
d) A static local variable.
e) One or more stopping cases that are guaranteed to be reached.
e) One or more stopping cases that are guaranteed to be reached.
c) One or more stopping cases after a sequence of calls to one or more recursive
cases.
You might also like to view...
MC The text contained in a node can be accessed with its________attribute.
a) nodeValue attribute. b) value attribute. c) text attribute. d) None of the above.
Oracle, Microsoft Access, and MySQL are all examples of a(n) ____.
A. DBMS B. SQL statement C. 3NF D. word processor
Use the __________ property to configure uppercase text
a. text-upper b. text-transform c. text-indent d. text-align
Suppose the file is not ordered by the key field Ssn and we want to construct a B + - tree access structure (index) on SSN. Calculate (i) the orders p and p leaf of the B + -tree; (ii) the number of leaf-level blocks needed if blocks are approximately 69% full (rounded up for convenience); (iii) the number of levels needed if internal nodes are also 69% full (rounded up for convenience); (iv) the total number of blocks required by the B + -tree; and (v) the number of block accesses needed to search for and retrieve a record from the file--given its SSN value-- using the B + -tree.
Consider a disk with block size B=512 bytes. A block pointer is P=6 bytes long, and a record pointer is P R =7 bytes long. A file has r=30,000 EMPLOYEE records of fixed-length. Each record has the following fields: NAME (30 bytes), SSN (9 bytes), DEPARTMENTCODE (9 bytes), ADDRESS (40 bytes), PHONE (9 bytes), BIRTHDATE (8 bytes), SEX (1 byte), JOBCODE (4 bytes), SALARY (4 bytes, real number). An additional byte is used as a deletion marker.