Data Structures Cup 2025 (The Final Competition)

Data Structures Cup 2025 (The Final Competition)

University

20 Qs

quiz-placeholder

Similar activities

Brewing JavaFX Quiz

Brewing JavaFX Quiz

University

15 Qs

Linked List - Implementation

Linked List - Implementation

University

15 Qs

Quiz Struktur Data

Quiz Struktur Data

University

15 Qs

Graphs

Graphs

University

15 Qs

CHAPTER 3 : STACK

CHAPTER 3 : STACK

University

20 Qs

Episode 16

Episode 16

University

18 Qs

11-mavzu. Pythonda PostgreSQL yordamida ma’lumotlarni yangilash

11-mavzu. Pythonda PostgreSQL yordamida ma’lumotlarni yangilash

University

15 Qs

TOC PRACTICE QUESTIONS CFG AND PDA

TOC PRACTICE QUESTIONS CFG AND PDA

University

21 Qs

Data Structures Cup 2025 (The Final Competition)

Data Structures Cup 2025 (The Final Competition)

Assessment

Quiz

Computers

University

Medium

Created by

Fatimah Alzahrani

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Complete the missing line from the circular array EnQueue() algorithm?

1.If (isFull()) Then Display ("Queue is overflow”);

Return[End If]

2.Set Queue[ rear_index ] = value

3....................................................................................

4.Set Count = Count + 1

5.End

Set rear_index = rear_index + 1

Set rear_index = (rear_index + 1 ) mod size

Set front_index = (front_index + 1 ) mod size

Set rear_index = front_index % size

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which line completes the priority queue for removeMax() algorithm?


1.If (isEmpty()) return null;

2.Set temp = front_index

3..................................................................

4.Return temp;

front_index = front_index.next

rear_index = rear_index.prev

front_index = null

rear_index = front_index

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which algorithm is responsible for DeQueue in a circular linked list?

1.If (isEmpty ()) Then Display ("Queue is underflow ”);

Return; [End If]

2.Set front = front.Next

4.Set Count = Count -1

5.End

1.If (isEmpty ()) Then Display ("Queue is underflow ”);

Return; [End If]

2.Set rear= rear.Next

3.Set rear. Next = front

4.Set Count = Count -1

5.End

1.If (isEmpty ()) Then Display ("Queue is underflow ”);

Return; [End If]

2.Set front = front.Next

3.Set rear. Next = front

4.Set Count = Count -1

5.End

1.If (isEmpty ()) Then Display ("Queue is underflow ”);

Return; [End If]

2.Set front.Next=front

3.Set rear. Next = front

4.Set Count = Count -1

5.End

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Complete the following EnQueue algorithm using a linear linked-list to locate the correct position for inserting the new node in a priority queue?

1.Set Node newNode = new Node( value, key , null), Current = front, Prev =null

/* Missing Lines */

3. If (Prev=null) Then front = newNode, Else Prev.next=newNode [End If]

4. Set newNode.next = current

5. Set size=size+1

5.End

2.Repeat while (Current ! = null and key > Current.key )

1.Set Prev = Current;

2.Set Current = Current.next;

[ End Loop ]

2.Repeat while (Current = null and key < Current.key )

1.Set Prev = Current;

2.Set Current = Current.next;

[ End Loop ]

2.Repeat while (Current ! = null and key < Current.key )

1.Set Current=Prev;

2.Set Current = Current.next;

[ End Loop ]

2.Repeat while (Current ! = null and key < Current.key )

1.Set Prev = Current;

2.Set Current = Current.next;

[ End Loop ]

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the most suitable data structure when patients arrive at an emergency room, they are assessed and assigned based on the severity of their condition. Critical patients (such as those with life-threatening injuries) are treated before those with less urgent issues (like a mild cold), regardless of arrival time. This ensures that medical resources are allocated efficiently and lives are saved?

Tree

Circular Linked-List

Priority Queue

Stack

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the most suitable data structure for designing database indices, that enables fast searching, insertion, and deletion of records, which is critical for large databases where performance matters?

Stack

Binary Search Tree

Priority Queue

Graph

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

This algorithm is responsible for which type of binary tree traversal?

algorithm: fun

Input: BinaryTreeNodes

1.if (bt== null) return;

2.fun(bt.leftChild)

3.Display(bt.value)

4.fun(bt.rightChild)

5.End

Level-order

PostOrder

PreOrder

InOrder

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?