Exam 7: Software Engineering

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following is a LIFO structure?

Free
(Multiple Choice)
4.8/5
(42)
Correct Answer:
Verified

B

The table below represents a portion of a computer's main memory containing a linked list. Each entry consists of two cells, the first being data, the second being a pointer to the next entry. If the nil pointer is represented by 00 and the list's head pointer contains 52, modify the memory cells so the data at address 56 is inserted at the end of the list. The table below represents a portion of a computer's main memory containing a linked list. Each entry consists of two cells, the first being data, the second being a pointer to the next entry. If the nil pointer is represented by 00 and the list's head pointer contains 52, modify the memory cells so the data at address 56 is inserted at the end of the list.

Free
(Short Answer)
4.8/5
(40)
Correct Answer:
Verified

Change the cell at address 55 to 56.

What is the distinction between a user-defined data type and an abstract data type?

Free
(Essay)
4.8/5
(36)
Correct Answer:
Verified

A user-defined data type is merely a "data storage template" whereas an abstract data type includes procedures for manipulating the data as well.

The nodes in which of the trees below will be printed in alphabetical order by the following recursive procedure? The nodes in which of the trees below will be printed in alphabetical order by the following recursive procedure?

(Multiple Choice)
4.7/5
(43)

In which direction does an unchecked queue crawl through memory (in the direction of its head or in the direction of its tail)? ________________

(Short Answer)
4.9/5
(40)

In a machine language, what advantage does indirect addressing offer over immediate and direct addressing?

(Essay)
4.8/5
(32)

Two special forms of lists are the LIFO structures known as _______________ , in which entries are inserted and removed from the ______________ , and FIFO structures known as ________________ , in which entries are removed from the ________________ and inserted at the ________________ .

(Short Answer)
4.7/5
(35)

Which of the following is a FIFO structure?

(Multiple Choice)
4.8/5
(42)

The table below represents a portion of a computer's main memory containing a binary tree stored row by row in a contiguous block as described in the chapter. What is the left child of the node V? The table below represents a portion of a computer's main memory containing a binary tree stored row by row in a contiguous block as described in the chapter. What is the left child of the node V?

(Multiple Choice)
4.8/5
(36)

In a machine language, the technique in which an instruction contains the location of a pointer to the data to be manipulated is called

(Multiple Choice)
4.7/5
(45)

Which of the following is not a means of locating an entry in a linked storage structure?

(Multiple Choice)
4.8/5
(33)

In a machine language, the technique in which the data to be manipulated by an instruction is included within the instruction itself is called

(Multiple Choice)
4.8/5
(42)

Which of the following is not used when determining the location of an entry in a two-dimensional homogeneous array stored in row-major order?

(Multiple Choice)
4.8/5
(30)

If the number of nodes in a binary tree is 2n (where n is a positive integer), then the entire tree would contain at least

(Multiple Choice)
4.7/5
(34)

The table below represents a portion of a computer's main memory containing a linked list. Each entry consists of two cells, the first being data, the second being a pointer to the next entry. If the nil pointer is represented by 00 and the list's head pointer contains 52, modify the memory cells so the data at address 50 replaces the second entry in the list. The table below represents a portion of a computer's main memory containing a linked list. Each entry consists of two cells, the first being data, the second being a pointer to the next entry. If the nil pointer is represented by 00 and the list's head pointer contains 52, modify the memory cells so the data at address 50 replaces the second entry in the list.

(Short Answer)
4.9/5
(29)

The table below represents a portion of a computer's main memory containing a binary tree stored row by row in a contiguous block as described in the chapter. Draw a picture of the tree. The table below represents a portion of a computer's main memory containing a binary tree stored row by row in a contiguous block as described in the chapter. Draw a picture of the tree.

(Essay)
4.9/5
(40)

If the longest path in a binary tree contained exactly four nodes, what is the maximum number of nodes that could be in the entire tree?

(Multiple Choice)
4.8/5
(38)

Suppose a binary tree contained the nodes W, X, Y, and Z. If W and X were children of Y, and Z had no children, which node would be the root?

(Multiple Choice)
4.9/5
(42)

If a stack contained the entries w, x, y, z (from top to bottom), which of the following would be the contents after two entries were removed and the entry r was inserted?

(Multiple Choice)
4.9/5
(37)

What condition indicates that a linked list is empty?

(Short Answer)
4.8/5
(31)
Showing 1 - 20 of 34
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)