Exam 4: Networking and the Internet

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

In general, an algorithm in which of the following categories is considered more efficient?

(Multiple Choice)
4.9/5
(31)

Under the assumption that X takes on only integer values, which of the following is the termination condition for the following loop? repeat ( . . . ) Until (X < 5)

(Multiple Choice)
4.7/5
(24)

Which of the following set of instructions defines an algorithm in the formal, strict sense?

(Multiple Choice)
4.8/5
(42)

Rewrite the following routine using a pretest while statement. Rewrite the following routine using a pretest while statement.

(Essay)
4.8/5
(33)

Use a while loop structure to produce a non-recursive program segment that prints the same sequence of numbers as the following recursive procedure. Use a while loop structure to produce a non-recursive program segment that prints the same sequence of numbers as the following recursive procedure.

(Essay)
4.7/5
(33)

Which of the following is not a way of representing algorithms?

(Multiple Choice)
4.7/5
(29)

When searching within the list Lewis, Maurice, Nathan, Oliver, Pat, Quincy, Roger, Stan, Tom Which of the following entries will be found most quickly using the binary search algorithm?

(Multiple Choice)
4.8/5
(44)

The binary search algorithm is an example of an algorithm in which of the following classes?

(Multiple Choice)
4.9/5
(38)

Which of the following is an activity?

(Multiple Choice)
4.8/5
(43)

The pseudocode used in this chapter included both an if-then statement and an if-then-else statement. Show how the statement The pseudocode used in this chapter included both an if-then statement and an if-then-else statement. Show how the statement   can be simulated with a program segment using only if-then statements. can be simulated with a program segment using only if-then statements.

(Essay)
4.8/5
(39)

Which of the following is a loop invariant at the point at which the test for termination is performed in the following loop structure? Which of the following is a loop invariant at the point at which the test for termination is performed in the following loop structure?

(Multiple Choice)
5.0/5
(36)

The insertion sort algorithm is an example of an algorithm in which of the following classes?

(Multiple Choice)
4.8/5
(36)

Which of the following does not print the same sequence of numbers as the others?

(Multiple Choice)
4.7/5
(32)
Showing 21 - 33 of 33
close modal

Filters

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