Tskafli5

15 Questions | Attempts: 342
Please wait...

Question 1 / 16
🏆 Rank #--
Score 0/100

1. 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 sequential search algorithm? 

Submit
Please wait...
About This Quiz
Tskafli5 - Quiz

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Which of the following is not a means of repeating a block of instructions?

Submit

3. 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?

Submit

4. Which of the following is an activity?

Submit

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

Submit

6. Which of the following set of instructions defines an algorithm in the formal, strict sense? x <-- x +1. The other 2 create an infinite loop. The definition of algorithm states that it has to terminate. a. X <-- 3;  while (X < 5) do  (X <-- X – 1) b. X <-- 3;  while (X < 5) do  (X <-- X) c. X <-- 3;  while (X < 5) do  (X <-- X + 1)  

Explanation

x

Submit

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

Submit

8. Which of the following is a representation?

Submit

9. Which of the following is a loop invariant at the point at which the test for termination is performed in the following loop structure? X <-- 3; repeat (X <-- X + 2) until (X > 5)

Submit

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

Submit

11. Which of the following does not print the same sequence of numbers as the others? a. X <-- 5while (X<6) do (print the value of X;X<-X+1while (X < 6) do (print the value of X; X <-- X + 1)   b. X <-- 5 repeat (print the value of X;X <-- X+1 until (X>6)repeat (print the value of X; X <-- X + 1)until (X > 6)   c. X <-- 4 while (X<5) do (X <-- X +1; print the value of X) while (X < 5) do ( X <-- X + 1; print the value of X )  

Explanation

a .X b. X 6) rétt svar!
c. X

Submit

12. Preconditions, postconditions, and loop invariants are examples of which of the following?

Submit

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

Submit

14. Which of the following is a loop invariant at the point at which the test for termination is performed in the following loop structure? X <-- 3; while (X < 5) do (X <-- X + 2)

Submit

15. Tengdu við það sem á við mofo.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (15)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
When searching within the list: Lewis, Maurice, Nathan, Oliver, Pat,...
Which of the following is not a means of repeating a block of...
When searching within the list: Lewis, Maurice, Nathan, Oliver, Pat,...
Which of the following is an activity?
The insertion sort algorithm is an example of an algorithm in...
Which of the following set of instructions defines an algorithm in the...
Under the assumption that X takes on only integer values, which of the...
Which of the following is a representation?
Which of the following is a loop invariant at the point at which the...
Which of the following is not a way of representing algorithms?
Which of the following does not print the same sequence of numbers as...
Preconditions, postconditions, and loop invariants are examples of...
The binary search algorithm is an example of an algorithm in which of...
Which of the following is a loop invariant at the point at which the...
Tengdu við það sem á við mofo.
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!