Question
Which of the following is a valid operation on a linked
list data structure?Solution
Traversal is a valid operation on a linked list where each node is accessed sequentially, starting from the head node until the last node. Since linked lists do not have direct indexing, traversal is the most common way to visit each node in the list. Unlike arrays, linked lists require sequential access due to their dynamic nature. The incorrect options: Binary Search : This operation requires random access, which is not feasible in a linked list due to its sequential nature. Random Access : Linked lists do not support random access, as elements are not stored in contiguous memory locations. Direct Indexing : Similar to random access, direct indexing is not applicable to linked lists; accessing an element requires traversing the list. Sorting : While possible, sorting is not inherently a primary operation of a linked list. Specialized algorithms are needed to sort linked list elements.
What is the principle behind the working of a transformer?
Which of the following waves require a medium to travel?
A body of mass 3 kg has a velocity of 4 m/s. Find its kinetic energy.
Which instrument is primarily used to measure the relative density of liquids by utilizing the principle of buoyancy?
The balance point in a potentiometer for a cell of emf 1.5 V is 60 cm. If a resistance of 5 Ω is connected in parallel with the cell and the new balanc...
A particle of mass m is placed in a potential V(x) = ax² + bx⁴. For small oscillations around equilibrium, its time period is:
From the given options, the speed of sound is highest in which material?
Parsec is the unit of
A cylindrical conductor of length L and radius R has its radius increasing linearly from R at one end to 2R at the other. A constant current I flows thr...
A body is projected upwards with an initial velocity u . At the highest point, what is its acceleration?