UGC NET Paper 2 (Computer Science)Easy
Which data structure follows the LIFO principle?
- A. Stack
- B. Queue
- C. Linked list
- D. Tree
Correct answer: A. Stack
A stack removes the most recently inserted element first (last in, first out).
Practise more UGC NET Computer Science and Applications questionsUGC NET Computer Science and Applications: notes and key points
More UGC NET Computer Science and Applications questions
- The default port number of HTTP is:
- The worst-case time complexity of binary search on n sorted elements is:
- Which normal form removes transitive dependencies?
- The number of edges in a complete undirected graph with n vertices is:
- Belady's anomaly can occur in which page replacement algorithm?
- The recurrence T(n) = 2T(n/2) + n/log n has the solution: