Archives

CAPP 11686

CAPP 11686

We use ____ to implement mergesort. a. recursion b. iteration c. revision d. succession The syntax for accessing a class (struct) member using the operator -> is ____. a. pointerVariableName.classMemberName b. pointerVariableName->classMemberName c. pointerVariableName&->classMemberName d. &pointerVariableName.classMemberName Answer: B A binary […]

15 Pages | August 23, 2017
CAPP 45086

CAPP 45086

In a circular linked list with more than one node, it is convenient to make the pointer first point to the middle node of the list. Software engineers typically break the software development process into the following four phases: analysis, […]

5 Pages | August 23, 2017
CDA 76654

CDA 76654

To specify a function as a formal parameter to another function, we specify the function type, followed by the function name as a pointer, followed by the parameter types of the function. To implement hashing, we use four arrays. Answer: […]

6 Pages | August 23, 2017
CICS 38357

CICS 38357

A ____ contains a function that can be treated as a function using the function call operator, (). a. function object b. reference object c. property object d. value object The containers map and multimap manage their elements in the […]

13 Pages | August 23, 2017
CICS 84170

CICS 84170

If class dog has a derived class retriever, which of the following is true? a. In the case of single inheritance, dog can have no other derived classes. b. In the case of single inheritance, retriever is derived from no […]

9 Pages | August 23, 2017
CMCS 25509

CMCS 25509

If the list is stored in a linked list, we can traverse the list in only one direction starting at the first node because the links are only in one direction. A friend function is a member function of a […]

5 Pages | August 23, 2017
CMCS 27681

CMCS 27681

____ is when more and more new keys would likely be hashed to the array slots that are already occupied. a. Globbing b. Adjacency c. Clustering d. Affinity The ____ contains algorithms that only look at the elements in a […]

15 Pages | August 23, 2017
CMCS 78905

CMCS 78905

Let G be an undirected graph. G is called ____ if any two vertices in G are connected. a. weakly connected b. completely connected c. strongly connected d. inversely connected The scope resolution operator is ____. a. : b. * […]

12 Pages | August 23, 2017
COMPSCI 22874

COMPSCI 22874

Like function templates, ____ are used to write a single code segment for a set of related classes. a. function types b. class templates c. inherited classes d. protected members In the function ____, the growth rate is exponential. a. […]

13 Pages | August 23, 2017
COMPSCI 79866

COMPSCI 79866

The class pair has two constructors: the default constructor and a constructor with two parameters. If two nonidentical keys are hashed to the same home position then the same probe sequence is followed for both keys. Answer: T The statement […]

6 Pages | August 23, 2017
COP 59241

COP 59241

The statement ____ declares list to be an array of five integers. a. int [5] list; b. int list[5]; c. int list[]; d. int list[]={0,1,2,3,4,5}; The balance factor of x, written bf(x), is defined by ____. a. bf(x)= xl ” […]

12 Pages | August 23, 2017
COP 88210

COP 88210

A(n) ____ finds the location of the smallest element in the unsorted portion of the list and moves it to the top of the unsorted portion of the list. a. selection sort algorithm b. quicksort algorithm c. insertion sort algorithm […]

14 Pages | August 23, 2017
COSC 10489

COSC 10489

Because an AVL tree is a binary search tree, the search algorithm for an AVL tree is the same as the search algorithm for a binary search tree. The front of the queue is accessed whenever a new element is […]

3 Pages | August 23, 2017
COSC 11179

COSC 11179

The first form of ____ uses the equality criteria. a. adjacent_search b. adjacent_query c. adjacent_find d. adjacent_criteria In ____, the elements of the list are viewed as sublists at a particular distance. a. quicksort b. Shellsort c. bubble sort d. […]

12 Pages | August 23, 2017
COSC 22323

COSC 22323

____ use a looping structure, such as while, for, or do. . .while, to repeat a set of statements. a. Recursive control structures b. Iterative control structures c. Sequential control structures d. Decisions structures In the STL container list, the […]

13 Pages | August 23, 2017
COSC 63253

COSC 63253

If the sequential search is unsuccessful, -1 is returned. The performance of a binary search tree depends on the width of the tree. Answer: F Prior to the deleteQueue operation, the queue must exist and must not be full. Answer: […]

5 Pages | August 23, 2017
MPCS 24863

MPCS 24863

In the breadth first topological ordering, we first find a vertex that has a predecessor vertex and place it first in the topological ordering. A sequential search works efficiently for large lists. Answer: F The function copyStack makes a copy […]

6 Pages | August 23, 2017
MPCS 69240

MPCS 69240

____ iterators, with write access, step forward element-by-element. a. Output b. Input c. Random access d. Step A(n) ____ is a collection of a fixed number of components. a. object b. member c. class d. friend Answer: C The ability […]

13 Pages | August 23, 2017