Professional Documents
Culture Documents
Question 1 This is very useful in situation when data have to be stored and then retrieved in reverse order.
Not yet
answered
Select one:
Marked out of
a. stack
1.00
b. link list
c. list
d. queue
Clear my choice
Question 2 Indicate which structure would be a more suitable choice for each of the following applications.
Not yet
A program to keep track of the soccer teams in a city tournament
answered
Marked out of
Select one:
1.00
a. Queue
c. Graph
d. Stack
e. Tree
Clear my choice
Question 3 The value in the left child of a node (if it exists) in a binary search tree will be greater than the value in the node
Not yet itself.
answered
False
Question 4 Inserting an item into the stack when stack is not full is called ____________ while operation and deletion of item
Not yet from the stack, when stack is not empty is called ________________ operation.
answered
b. push, pop
c. insert, delete
d. pop, push
Clear my choice
Question 5 Identify the data structure which allows deletions at both ends of the list but insertion at only one end.
Not yet
answered
Select one:
Marked out of
a. Output restricted dequeue
1.00
b. Priority queues
Clear my choice
c. Binary tree
d. Stacks
Clear my choice
c. None of these
d. Both of these
Clear my choice
Question 8 Indicate which structure would be a more suitable choice for each of the following applications.
Not yet
A program to keep track of family relationships
answered
Marked out of
Select one:
1.00
a. Binary search tree
b. Stack
c. Queue
d. Tree
e. Graph
Clear my choice
Question 9 On average, searching in a binary search tree is faster than searching in a list.
Not yet
answered
Select one:
Marked out of
True
1.00
False
Question 10 Algorithms that use a list must know whether the list is array based or linked.
Not yet
answered
Select one:
Marked out of True
1.00
False
blended.amaesonline.com/abl-trimestral/mod/quiz/attempt.php?attempt=19251&cmid=3204 2/11
10/12/2019 Finals
Question 12 A _______________ is a data structure that organizes data similar to a line in the supermarket, where the first one in
Not yet line is the first one out.
answered
b. Both of these
c. Neither of these
Clear my choice
Question 13 Which of the following is/are the levels of implementation of data structure?
Not yet
answered
Select one:
Marked out of
a. Abstract level
1.00
b. Application level
c. Implementation level
d. All of these
Clear my choice
Question 14 Which data structure is suitable to represent the hierarchal relationship between elements?
Not yet
answered
Select one:
Marked out of
a. Dequeue
1.00
b. Tree
c. Priority
d. Graph
Clear my choice
Question 16 Indicate which structure would be a more suitable choice for each of the following applications.
Not yet
A program keeping track of where canned goods are located on a shelf.
answered
Marked out of
Select one:
1.00
a. Tree
b. Queue
c. Graph
e. Stack
Clear my choice
blended.amaesonline.com/abl-trimestral/mod/quiz/attempt.php?attempt=19251&cmid=3204 3/11
10/12/2019 Finals
Question 17 The following algorithm is a count-controlled loop going from 1 through 5. At each iteration, the loop counter is
Not yet either printed or put on a queue depending on the result of Boolean function RanFun(). (The behavior of
answered RanFun() is immaterial.) At the end of the loop, the items on the queue are dequeued and printed. Because of
Marked out of the logical properties of a queue, this algorithm cannot print certain sequences of the values of the loop
1.00
counter. You are given an output and asked if the algorithm could generate the output.
Set count to 0
WHILE (count < 5)
Select one:
True
False
Question 20 Which data structure is used in breadth first search of a graph to hold nodes?
Not yet
answered
Select one:
Marked out of
a. Tree
1.00
b. Array
c. Queue
d. Stack
Clear my choice
blended.amaesonline.com/abl-trimestral/mod/quiz/attempt.php?attempt=19251&cmid=3204 4/11
10/12/2019 Finals
Answer: Push(myStack, 5)
Question 23 Indicate which structure would be a more suitable choice for each of the following applications.
Not yet
A word processor to have a PF key that causes the preceding command to be redisplayed. Every time the PF key
answered
is pressed, the program is to show the command that preceded the one currently displayed
Marked out of
1.00
Select one:
a. Stack
c. Graph
d. Tree
e. Queue
Clear my choice
Question 24 Which of the following is true about the characteristics of abstract data types?
Not yet
i. It exports a type.
answered
Marked out of
ii. It exports a set of operations.
1.00
Select one:
a. False, True
b. True, False
c. True, True
d. False, False
Clear my choice
blended.amaesonline.com/abl-trimestral/mod/quiz/attempt.php?attempt=19251&cmid=3204 5/11
10/12/2019 Finals
Question 25 Indicate which structure would be a more suitable choice for each of the following applications.
Not yet
An electronic address book ordered by name
answered
Marked out of
Select one:
1.00
a. Binary search tree
b. Queue
c. Graph
d. Tree
e. Stack
Clear my choice
Question 26 A stack and a queue are different names for the same ADT.
Not yet
answered
Select one:
Marked out of
True
1.00
False
Question 27 It is a pile in which items are added at one end and removed from the other.
Not yet
answered
Select one:
Marked out of a. none of these
1.00
b. stack
c. queue
d. list
Clear my choice
c. Lists
d. Stacks
Clear my choice
Answer: Push(myStack, 5)
blended.amaesonline.com/abl-trimestral/mod/quiz/attempt.php?attempt=19251&cmid=3204 6/11
10/12/2019 Finals
Question 31 A binary tree is a tree in which each node can have zero, one, or two children.
Not yet
answered
Select one:
Marked out of
True
1.00
False
Question 32 ____________________ level is where the model becomes compatible executable code.
Not yet
answered
Select one:
Marked out of
a. All of these
1.00
b. Application level
c. Implementation level
d. Abstract level
Clear my choice
Question 34 The following algorithm is a count-controlled loop going from 1 through 5. At each iteration, the loop counter is
Not yet either printed or put on a queue depending on the result of Boolean function RanFun(). (The behavior of
answered RanFun() is immaterial.) At the end of the loop, the items on the queue are dequeued and printed. Because of
Marked out of the logical properties of a queue, this algorithm cannot print certain sequences of the values of the loop
1.00 counter. You are given an output and asked if the algorithm could generate the output.
Set count to 0
WHILE (count < 5)
Select one:
True
False
blended.amaesonline.com/abl-trimestral/mod/quiz/attempt.php?attempt=19251&cmid=3204 7/11
10/12/2019 Finals
Question 35 Indicate which structure would be a more suitable choice for each of the following applications.
Not yet
A dictionary of words used by a spelling checker to be built and maintained.
answered
Marked out of
Select one:
1.00
a. Binary search tree
b. Graph
c. Tree
d. Queue
e. Stack
Clear my choice
Question 36 Draw the binary search tree whose elements are inserted in the following order:
Not yet
50 72 96 94 107 26 12 11 9 2 10 25 51 16 17 95
answered
Marked out of If Print is applied to the tree formed above, in which order would the elements be printed?
1.00
Answer: 3rd
c. Graph
d. Binary tree
Clear my choice
Question 38 Indicate which structure would be a more suitable choice for each of the following applications.
Not yet
A program to keep track of patients as they check into a medical clinic, assigning patients to doctors on a first-
answered
come, first-served basis.
Marked out of
1.00
Select one:
a. Binary search tree
b. Stack
c. Graph
d. Tree
e. Queue
Clear my choice
c. Trees
d. Stacks
Clear my choice
blended.amaesonline.com/abl-trimestral/mod/quiz/attempt.php?attempt=19251&cmid=3204 8/11
10/12/2019 Finals
c. Operations
d. None of these
Clear my choice
Question 41 Indicate which structure would be a more suitable choice for each of the following applications.
Not yet
A program to maintain the routes in an airline.
answered
Marked out of
Select one:
1.00
a. Graph
c. Stack
d. Tree
e. Queue
Clear my choice
Question 42 The value in the right child of a node (if it exists) in a binary search tree will be greater than the value in the node
Not yet itself.
answered
False
Clear my choice
Question 44 Which of the following data structure can't store the non-homogeneous data elements?
Not yet
answered
Select one:
Marked out of
a. Arrays
1.00
b. Stacks
c. Records
d. Pointers
Clear my choice
blended.amaesonline.com/abl-trimestral/mod/quiz/attempt.php?attempt=19251&cmid=3204 9/11
10/12/2019 Finals
Question 45 Which data structure allows deleting data elements from and inserting at rear?
Not yet
answered
Select one:
Marked out of
a. stacks
1.00
b. queues
c. dequeues
Clear my choice
Question 46 A binary search tree whose left subtree and right subtree differ in height by at most 1 unit is called
Not yet ____________________.
answered
b. Red-black tree
c. Lemma tree
d. AVL tree
Clear my choice
Question 47 Indicate which structure would be a more suitable choice for each of the following applications.
Not yet
answered
Marked out of A bank simulation of its teller operation to see how waiting times would be affected by adding another teller.
1.00
Select one:
a. Binary search tree
b. Queue
c. Graph
d. Stack
e. Tree
Clear my choice
blended.amaesonline.com/abl-trimestral/mod/quiz/attempt.php?attempt=19251&cmid=3204 10/11
10/12/2019 Finals
Question 50 Indicate which structure would be a more suitable choice for each of the following applications.
Not yet
answered
Marked out of A program to receive data that is to be saved and processed in the reverse order.
1.00
Select one:
a. Stack
b. Tree
d. Graph
e. Queue
Clear my choice
blended.amaesonline.com/abl-trimestral/mod/quiz/attempt.php?attempt=19251&cmid=3204 11/11