Given the function prototype and variable declarations, which of the following is a valid function call?
int something (int&, float&); // function prototype
int p, q; //variable declarations
float m;
a) cout << something (3, 7.5);
b) p = something (p, m);
c) cout << something (p + q, m);
d) q = something (q, 2.0);
b) p = something (p, m);
You might also like to view...
Use a ________ chart to show proportion of parts to a whole
Fill in the blank(s) with correct word
Suppose the file is ordered by the key field SSN and we want to construct a primary index on SSN. Calculate (i) the index blocking factor bfr i (which is also the index fan-out fo); (ii) the number of first-level index entries and the number of first-level index blocks; (iii) the number of levels needed if we make it into a multi-level index; (iv) the total number of blocks required by the multi-level index; and (v) the number of block accesses needed to search for and retrieve a record from the file--given its SSN value--using the primary index.
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.