Home / MCQ Bank / Computer
Computer Heaps

In a binary heap, how do you locate the right child of a node at index i?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • 2 * i + 2

Related Computer Questions

What will be the output of the following C code? #include <stdio.h> int main() { char *str = "hello, world\n"; str[5] = '.'; printf("%s\n", str); return 0; } Ctrl + M is used to What is it called if an object has its own lifecycle and there is no owner? What all gets printed when the following program is compiled and run? public class Test{ public static void main(String args[]){ int i=0, j=2; do{ i=++i; j--; }while(j>0); System.out.println(i); } } Which of the following is the correct way to settle down values into the structure variable 'e' defined in the following C# code snippet? struct emp { public String name; public int age; public Single sal; } emp e = new emp();