SECTIONA: Multiple Choice Questions [10 Marks]
• Answer all the questions in the provided booklet.
• The section consists of 10 questions.
1. Which of the following operations can be performed on singly-linked list, doubly-linked list and
circular linked list?
A. Insertion - adding an element to the list.
B. Deletion - removing an element from the list.
C. Search - seek for an element in a given list.
D. All of the above.
2. How many rows does twoDimenArray or matrix have if it is created as follows;
int[][] twoDimenArray = { {14, 19, 9, 17}, {9, 21, 3, 20},{12,15,0,15},{22,1,0,18}};?
A.4
B.3
C. 12
D.O
3. Which of the following would you use to get the value in the second row and third column of a 2D
array/matrix called twoDimenArray?
A. twoDimenArray[2][3]
B. twoDimenArray[0][2]
C. twoDimenArray[1][2]
D. twoDimenArray[3] [2]
4. Given the following tree. Give its lnorder traversal algorithm output.
A. ABDHIECGFS
B. HDIBEAFCJG
C. HIDEBFSFCA
D. ABDHIECFGS
5. What are the applications of Stack?
A. Queues in routers/switches
B. check parenthesis matching in an expression
C. Process scheduling
D. Shared resource
Page I 1