
Data Structure CUP

Quiz
•
Computers
•
University
•
Hard
Enas Elsayed
Used 11+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
From the following which is not the operation of data structure?
Operations that manipulate data in some way
Operations that perform a computation
Operations that check syntax errors
Operations that monitor an object for the occurrence of a controlling event
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In a circular linked list, insertion of node requires modification of ………………… pointer.
Zero
One
Two
Three
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the missing statement in the max algorithm of the 2d array?
Algorithm: Maximum
Input: Array
Output: maxValue
Method: Let maxValue = Array[0][0]
Repeat for K = LBr to UBr Repeat for J = LBc to UBc
\*Missing statement*\
[End Loop]c [End Loop]r
Display("Maximum value in Array is: ", maxValue) End
If (Array[K][ J ] > maxValue ) Then maxValue = Array[ K ][ J ] [End If]
If (maxValue >Array[K][ J ] ) Then maxValue = Array[ K ][ J ] [End If]
If (Array[J][ K] > maxValue ) Then maxValue = Array[ J ][ K ] [End If]
If (Array[K][ J ] > maxValue ) Then Array[ K ][ J ] = maxValue [End If]
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which among the following segments of code add the node at the beginning of a single LinkedList?
newNode.next = head , Head = newNode
Head = newNode , newNode.next = head
newNode.next = tail , Head = newNode
newNode.next = head , tail = newNode
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is an advantage of a circular linked list?
If not handled proper validation then code may go in an infinite loop.
Not easy to reverse a circular linked list.
any node can be starting point means we can traverse each node from any point.
Harder to find the end of the list and loop control.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you count the number of elements in the circular linked list?
a) set temp = head.Next; while(temp != head) temp = temp.Next; length++; return length;
b) Set temp = head.Next; while(temp != null) temp = temp.Next; length++; return length;
c) Set temp = head.Next; while(temp != head && temp != null) temp = head.Next; length++; return length;
d) Set temp = head.Next; while(temp != head && temp == null) temp = head.Next; length++; return length;
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In a singly linked list, how does each node store the reference to the next node?
Pointer
Index
Value
Key
Create a free account and access millions of resources
Similar Resources on Wayground
45 questions
STACK DATA STRUCTURE

Quiz
•
University
50 questions
SAS Informatika Ganjil Kelas 8

Quiz
•
8th Grade - University
55 questions
MT2024_212ict_sec132

Quiz
•
University
51 questions
4.3 Instalación y administración de servicios

Quiz
•
University
50 questions
AHJN: U8 DB Fr-TB

Quiz
•
12th Grade - University
45 questions
1st Quiz - Multimedia System

Quiz
•
University
50 questions
Advanced DBMS MCQs

Quiz
•
University
50 questions
Ôn tập mos 11

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University