Home / MCQ Bank / Computer
Computer Heaps Difficulty: Medium

What are the siblings of smallest element of the given maximum ternary heap?

Select the correct option to test your answer:

More Computer Questions

What will be the time complexity of the following code? #include <bits/stdc++.h> using namespace std; void func1(int arr[], int n) { int k = arr[0], i; for (i = 0; i < n - 1; i++) arr[i] = arr[i + 1]; arr[i] = k; } void func(int arr[], int d, int n) { for (int i = 0; i < d; i++) func1(arr, n); } void printArray(int arr[], int n) { for (int i = 0; i < n; i++) cout << arr[i] << " "; } int main() { int arr[] = { 1, 2, 3, 4, 5}; int n = sizeof(arr) / sizeof(arr[0]); int d = 3; func(arr, d, n); printArray(arr, n); return 0; } What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; class A { static int a; public: void show() { a++; cout<<"a: "<<a<<endl; } }; int A::a = 5; int main(int argc, char const *argv[]) { A a; return 0; } What is the function of Ctrl + B in Ms-Word? Which data structure is used for representing a grid where elements can be accessed by both row and column indices? What is the advantage of using a doubly linked list for chaining over singly linked list?