UNIVERSITY EXAMINATION
GMAT Quantitative and Analytical Practice
Macroeconomics Set
Data Structures and Algorithms
Spring Examination May 2026
Duration: 3 Hours
Instructions
Answer ALL questions in Section A.
Answer ANY THREE questions in Section B.
Show all working and provide explanations where necessary.
Use pseudocode or programming examples where appropriate.
SECTION A — SHORT ANSWER QUESTIONS (40 Marks)
Question 1 (5 Marks)
Define the following terms:
1
Page
, a) Algorithm
b) Data Structure
c) Compiler
d) Array
e) Pointer
Answers
a) An algorithm is a step-by-step procedure used to solve a problem.
b) A data structure is a method of organizing and storing data efficiently.
c) A compiler is software that translates high-level programming code into machine language.
d) An array is a collection of elements stored in contiguous memory locations.
e) A pointer is a variable that stores the memory address of another variable.
Question 2 (5 Marks)
Differentiate between stack and queue.
2
Page
Answer
GMAT Quantitative and Analytical Practice
Macroeconomics Set
Data Structures and Algorithms
Spring Examination May 2026
Duration: 3 Hours
Instructions
Answer ALL questions in Section A.
Answer ANY THREE questions in Section B.
Show all working and provide explanations where necessary.
Use pseudocode or programming examples where appropriate.
SECTION A — SHORT ANSWER QUESTIONS (40 Marks)
Question 1 (5 Marks)
Define the following terms:
1
Page
, a) Algorithm
b) Data Structure
c) Compiler
d) Array
e) Pointer
Answers
a) An algorithm is a step-by-step procedure used to solve a problem.
b) A data structure is a method of organizing and storing data efficiently.
c) A compiler is software that translates high-level programming code into machine language.
d) An array is a collection of elements stored in contiguous memory locations.
e) A pointer is a variable that stores the memory address of another variable.
Question 2 (5 Marks)
Differentiate between stack and queue.
2
Page
Answer