CS133 Finals

Is this your test? Login to manage it. If not, you can build an exam just like it.

This is a non-interactive preview of the quiz content.

1.
1 point
It is a list in which the last node's link points to the first node of the list.
2.
1 point
Which of the following is the infix expression of the expression tree of Figure 2?
B2
3.
1 point
It is a repetitive process in which algorithm calls itself.
4.
1 point
A linear list in which data can only be inserted at one end called the rear, and deleted from the other end, called the front.
5.
1 point
Defined as the structure of file in a sequence of words characters organized into lines.
6.
1 point
See algorithm 1. What would be returned if fxm is called as fxm(5,3)?
7.
1 point
See algorithm 1. What would be returned if fxm is called as fxm(2,7)?
algo1
8.
1 point
It is a node with an outdegree of zero.
9.
1 point
Given the postfix expression: A B * C D + - E +. What is the infix expression?
10.
1 point
Queues may be implemented using arrays or _______.
11.
1 point
In a Binary Search Tree, the node with the largest value is found at the ____.
12.
1 point
The most commonly used notation for asymptotic complexity for estimating the rate of function growth that was introduced in 1894 by Paul Bachman.
13.
1 point
Consists of a nonempty set V of vertices and a possibly empty set E of edges, each edge being a set of two vertices from V
14.
1 point
What is the postfix equivalent of: A + B * C - D / E ?
15.
1 point
An algorithm for traversing a graph that was developed by John Hopcroft and Robert Tarjan.
16.
1 point
Entries in a stack are "ordered". What is the meaning of this statement?
17.
1 point
See algorithm 2. What would be returned if fxm is called as fxm(12)?
algo5
18.
1 point
A/an _______ tree, originally called admissible tree, is one in which the height of the left and right subtrees of every node differ by at most one.
19.
1 point
What is the preorder traversal of the binary tree in Figure 1?
20.
1 point
Queue is a _____.
21.
1 point
Enqueue operation inserts an element at the ____ of the queue.
22.
1 point
The sorting algorithm that problem remains which value to chose as the pivot or bound value.
23.
1 point
What is the inorder traversal of the binary tree in Figure 1?
b1
24.
1 point
These are provided to create, write, read, rewind, and delete files.
25.
1 point
A sequence of words organized into loader record blocks
26.
1 point
An algorithm used for finding a minimum spanning tree of a graph.
27.
1 point
A sequence of subroutines and functions, each of which is further organized as declarations followed by executable statement.
28.
1 point
What kind of binary search tree traversal produces an ordered list?
29.
1 point
In a Binary Search Tree, the node with the smallest value is found at the ____
30.
1 point
An algorithm used for finding the shortest path in a graph.
31.
1 point
Creating a/an ________ whenever a function is called allows a system to handle recursion properly.
32.
1 point
The sorting starts by considering the two first elements of the array data, and if they are out of order, and interchange takes place.
33.
1 point
It consists of a finite set of elements called nodes and a finite set of directed lines called branches.
34.
1 point
An ordered collection of data in which each element contains the location of the next element.
35.
1 point
The retrieve stack operation copies the item at the:
36.
1 point
A sort method done by scanning an array of unsorted data from the bottom up, and two adjacent elements are interchanged if they are found to be out of order with respect to each other
37.
1 point
Which of the following is the postfix expression of the expression tree in Figure 2?
38.
1 point
If the character 'D', 'C', 'B', 'A' are placed in a stack (in that order), and then removed one at a time, and
placed a queue in what order will they be removed from the queue?
39.
1 point
See algorithm 2. What would be returned if fxm is called as fxm(10)?
algo4
40.
1 point
See algorithm 1. What would be returned if fun is called as fxm(15,3)?
algo3
41.
1 point
An aggregation of atomic and composite data types into a set with defined relationships.
42.
1 point
Which of the following is a TRUE statement?
43.
1 point
It is a sequence of characters organized into lines
44.
1 point
A data structure in which the limitation of a tree which is of a hierarchical type is lifted. It is collection of nodes or vertices and the connections between.
45.
1 point
An undirected graph is said to be _____ when there is a path between any two vertices of the graph.
46.
1 point
Sorting by attempting to localize the exchanges of array elements by finding a misplaced element first and putting in its final place.
47.
1 point
Consists of a nonempty set V of vertices and a set E of arcs, where each arc is a pair of vertices from V.
48.
1 point
One difference between a queue and a stack is:
49.
1 point
A graph is called a _____ if each of its edges has an assigned number.
50.
1 point
What is the postorder traversal of the binary tree in Figure 1?
B3