Higher Standard Algorithms

Higher Standard Algorithms

11th Grade

7 Qs

quiz-placeholder

Similar activities

Search Algorithms

Search Algorithms

9th - 11th Grade

12 Qs

Grade2-Term3-Shj

Grade2-Term3-Shj

4th Grade - University

10 Qs

PYTHON 1

PYTHON 1

11th - 12th Grade

10 Qs

Quiz 16 - Arrays and Loops

Quiz 16 - Arrays and Loops

11th Grade

10 Qs

Introduction to Programming

Introduction to Programming

9th Grade - University

10 Qs

for and while loops level 2

for and while loops level 2

9th - 12th Grade

12 Qs

AP CSP Unit 3: Lessons 2-7 Vocab Quiz

AP CSP Unit 3: Lessons 2-7 Vocab Quiz

9th - 12th Grade

10 Qs

Comp Sci Unit 2 #5

Comp Sci Unit 2 #5

11th Grade

10 Qs

Higher Standard Algorithms

Higher Standard Algorithms

Assessment

Quiz

Computers

11th Grade

Easy

Created by

Emma Maley

Used 1+ times

FREE Resource

7 questions

Show all answers

1.

REORDER QUESTION

1 min • 1 pt

Reorder the following to create a find minimum algorithm

end if
next

min = values(x)

for x = 2 to arraysize

if values(x) < min then

min = values(1)

2.

REORDER QUESTION

1 min • 1 pt

Reorder the following to create a find maximum algorithm

if values(x) > max then

max = values(x)

max = values(1)

end if
next

for x = 2 to arraysize

3.

REORDER QUESTION

1 min • 1 pt

Reorder the following to create a count occurrences algorithm:

counter = 0

counter = counter + 1

if values(x) = "condition" then

for x = 1 to arraysize

end if
next

4.

REORDER QUESTION

1 min • 1 pt

Reorder the following to create a linear search algorithm:

counter = 0
found = false

loop until counter = arraysize-1 or found = true

counter = counter +1

do
if values(x) = target then

found = true
end if

5.

DRAG AND DROP QUESTION

1 min • 1 pt

It is more efficient to use a ​ (a)   in a linear search algorithm as the loop will stop repeating when the item is found ​ (b)   or when each item in the array has been traversed. This means the loop is not repeating unnecessarily after the item has been found.

conditional loop
fixed loop
(found = true)
(found = false)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which standard algorithm would be used to find the fastest swimmer's time?

find minimum

find maximum

count occurrences

linear search

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which standard algorithm would be used to find the highest test percentage?

find maximum

find minimum

linear search

count occurrences