Home / MCQ Bank / Computer
Computer Linked Lists In Data Structures

In which of the following scenarios is a linked list preferable to an array?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • When you need dynamic resizing

Related Computer Questions

What will be the output of the following C++ code? #include <iostream> #include <bitset> using namespace std; int main() { bitset<8> b1(95); bitset<8> b2(46); cout<<(b1^b2); } Which of the following is not value for the font-stretch(Font descriptor)? For construction of a binary heap with property that parent node has value less than child node. In reference to that which line is incorrect. Line indexed from 1. 1. add(int k) 2. { 3. heap_size++; 4. int i = heap_size - 1; 5. harr[i] = k; 6. while (i != 0 && harr[parent(i)] < harr[i]) 7. { 8. swap(&harr[i], &harr[parent(i)]); 9. i = parent(i); 10. } 11. } ______ is an arithmetic function that calculates the total number of positive integers less than or equal to some number n, that are relatively prime to n. What will be the output of the following C code? #include <stdio.h> int main() { int *ptr, a = 10; ptr = &a; *ptr += 1; printf("%d,%d/n", *ptr, a); }