Data Structures and Algorithms - Study24x7
Social learning Network

Warning: include(./views/auth.php): failed to open stream: Permission denied in /var/www/html/live/loginRightSlider.php on line 18

Warning: include(): Failed opening './views/auth.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/live/loginRightSlider.php on line 18
datastructuresalgorithms Cover image
datastructuresalgorithms
Data Structures and Algorithms

  • Warning: Use of undefined constant Followers - assumed 'Followers' (this will throw an Error in a future version of PHP) in /var/www/html/live/makepage.php on line 1760
    Followers
  • Latest Feeds
  • Articles
  • Question
  • Course
  • About
  • Review
Interests
Java Technologies Python Technologies Computer Programming Software Developer
See more

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 14 Nov 2025 12:49 PM study24x7 study24x7

Which traversal in binary tree can be used to copy the tree?

A

Inorder

B

Preorder

C

Postorder

D

Level Order

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 14 Nov 2025 12:48 PM study24x7 study24x7

What is the space complexity of Merge Sort?

A

O(1)

B

O(log n)

C

O(n)

D

O(n log n)

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 14 Nov 2025 12:47 PM study24x7 study24x7

What is the best case complexity of Bubble Sort?

A

O(n²)

B

O(n log n)

C

O(n)

D

O(log n)

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 13 Nov 2025 10:50 AM study24x7 study24x7

What is the time complexity of inserting a node in a linked list?

A

O(1)

B

O(n)

C

O(log n)

D

O(n²)

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 13 Nov 2025 10:49 AM study24x7 study24x7

Which of the following is not a self-balancing BST?

A

AVL Tree

B

Red-Black Tree

C

Splay Tree

D

Binary Heap

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 13 Nov 2025 10:48 AM study24x7 study24x7

Which sorting algorithm is based on binary heap structure?

A

Bubble Sort

B

Heap Sort

C

Merge Sort

D

Quick Sort

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 12 Nov 2025 12:15 PM study24x7 study24x7

Which of the following data structures uses priority for access?

A

Queue

B

Stack

C

Priority Queue

D

Deque

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 12 Nov 2025 12:14 PM study24x7 study24x7

In hashing, collision occurs when:

A

Keys map to same index

B

Keys are missing

C

Hash function fails

D

Table is empty

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 12 Nov 2025 12:14 PM study24x7 study24x7

Which algorithm is used to find the shortest path from one vertex to all others in a weighted graph?

A

Prim’s

B

Dijkstra’s

C

Kruskal’s

D

Bellman-Ford

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 11 Nov 2025 01:10 PM study24x7 study24x7

What is the maximum number of nodes in a binary tree of height h?

A

2^h

B

2^(h+1) - 1

C

D

h

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 11 Nov 2025 01:09 PM study24x7 study24x7

Which data structure allows insertion and deletion at both ends?

A

Stack

B

Queue

C

Deque

D

Linked List

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 11 Nov 2025 01:02 PM study24x7 study24x7

Which data structure is most suitable for implementing undo operations?

A

Queue

B

Stack

C

Array

D

Tree

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 07 Nov 2025 11:30 AM study24x7 study24x7

What is the time complexity of Binary Search?

A

O(n)

B

O(log n)

C

O(n log n)

D

O(1)

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 07 Nov 2025 11:29 AM study24x7 study24x7

Which of the following is a stable sorting algorithm?

A

Quick Sort

B

Merge Sort

C

Heap Sort

D

Selection Sort

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 07 Nov 2025 11:29 AM study24x7 study24x7

Which data structure is used in DFS (Depth First Search)?

A

Queue

B

Stack

C

Array

D

Hash Table

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 06 Nov 2025 11:36 AM study24x7 study24x7

Which of the following data structures is used in BFS (Breadth First Search)?

A

Stack

B

Queue

C

Heap

D

Deque

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 06 Nov 2025 11:36 AM study24x7 study24x7

Which of the following operations is not possible in an array efficiently?

A

Traversal

B

Insertion at end

C

Insertion at beginning

D

Access by index

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 06 Nov 2025 11:35 AM study24x7 study24x7

The time complexity of inserting an element into a stack is:

A

O(1)

B

O(n)

C

O(log n)

D

O(n²)

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 05 Nov 2025 11:08 AM study24x7 study24x7

How could you install the file ipchains-1.3.9-5.i386.rpm?

A

rpm -qip ipchains

B

rpm -Uvh ipchains

C

rpm -i ipchains* .i386.rpm

D

rpm -e ipchains-1.3.9-5.i386.rpm

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
4 followers study24x7 05 Nov 2025 11:07 AM study24x7 study24x7

In which directory can you store system user default files used for creating user directories?

A

/usr/tmp

B

/etc/default

C

/etc/skel

D

/etc/users

study24x7
Write a comment
Ratings
0.0
out of 5
0 Ratings
5 study24x7
 
0.0
4 study24x7
 
0.0
3 study24x7
 
0.0
2 study24x7
 
0.0
1 study24x7
 
0.0
Related Pages