The parent of a node located at index i is located at ____.

A. 2i + 1
B. 2i + 2
C. é(i - 1) / 2ù
D. ë(i - 1) / 2û


Answer: D

Computer Science & Information Technology

You might also like to view...

Which of these remarks about formal parameters is correct?

a) A formal parameter is a kind of place holder that is filled with the argument at the time of call to the function. b) A call-by-value formal parameter is a global variable that is initialized to the value set just before the function is called. c) A call-by-reference formal parameter is modeled on a substitution mechanism. The argument should be an expression, not a variable, since there is never a need to assign such a variable. d) The & (ampersand) character is used to indicate call-by-reference. This is done by placing the & after the type name which is followed by the parameter name in the definition of the parameter in the function header. e) The argument corresponding to a call-by-value parameter cannot be changed by anything that happens in the function call.

Computer Science & Information Technology

Processes on a data flow diagram:

A) transform incoming data into outgoing information. B) represent the system boundaries. C) represent the work that a specific user performs. D) change the nature of the relationships on an entity-relationship diagram.

Computer Science & Information Technology

________ sound is a type of audio system where the listener hears the sound as if it were coming from all directions

Fill in the blank(s) with correct word

Computer Science & Information Technology

FIGURE OL 3-1 Referring to Figure OL 3-1 above, number 4 is pointing to the ____.

A. To-Do bar B. Task List C. Tasks folder button D. Meetings, appointments, and events

Computer Science & Information Technology