Are you familiar with data structure and algorithms? This quiz can help you to test your knowledge regarding both. A data structure is a named location that can be employed to keep and arrange the information. The algorithm is a series of steps to solve a specific problem. Learning data structures and algorithms allow us to write efficient and optimized computer programs. An algorithm is a step-by-step procedure that requires a set of instructions. The quiz below lets you test your memory about these two computer terminologies.
A shortest-path algorithm.
A minimum spanning tree algorithm.
Breadth first search.
Depth first search.
(cursor->link( ) == NULL)
(cursor->data( ) == 0.0)
(cursor->data( ) == NULL)
(cursor == NULL)
U X Z Q W Y V P
X Z U W Y Q V P
U X W Q Z Y V P
U Q X W P V Z Y
The number of arithmetic and other operations required for the program to run
The number of seconds plus the number of megabytes
The number of seconds required for the program to run
The number of megabytes required for the program to run
3
5
4
2
Ccaarrtteettss
Cartets
Serc
Stetrac
A b c d e f k g h i j l
A c b g l k h i j f e d
A f e d c k g b h i j l
A c d e f k b g h i j l
Top
Pop
Is_empty
Push
Using a subscript for each element in an array, quick access to any element can be achieved. The array structure allows any data to be inserted or deleted simply by modifying pointers.
The number of operations is fixed in inserting or deleting an element in an array; it does not depend on the position of the element in the array
The list structure is similar to the array structure in that all data elements of the same type are sequentially lined up. In the list structure, the logical arrangement is the same as the physical arrangement.
The list structure allows any data to be inserted or deleted simply by modifying pointers. But, after the data was deleted, the cells that contained the data remain as garbage in memory
Answer a)
Answer b)
Answer c)
Answer d)
Wait!
Here's an interesting quiz for you.