G10 CS Linear Search

G10 CS Linear Search

12th Grade

10 Qs

quiz-placeholder

Similar activities

Basics of spreadsheet

Basics of spreadsheet

12th Grade

15 Qs

Stepwise Refinement

Stepwise Refinement

11th - 12th Grade

13 Qs

MEDIA AND INFORMATION LITERACY

MEDIA AND INFORMATION LITERACY

12th Grade

10 Qs

To Change or Not to Change?

To Change or Not to Change?

12th Grade

10 Qs

Python List

Python List

4th Grade - University

15 Qs

Threats to Data

Threats to Data

9th - 12th Grade

11 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)

COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)

11th - 12th Grade

10 Qs

G10 CS Linear Search

G10 CS Linear Search

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Fritz Bansag

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which of the following cases, linear search algorithm is used?

To search an element in ORDERED list

To search an element in a list of few elements.

Well suited for almost type of list

To search in an unordered list consisting of few elements

None of the choices

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the worst case scenario of search array students?

(a) All searches take the same time

(b) Item = Henry

(c) Item = Annabelle

(d) B or C

(e) None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the best case scenario of search array students?

(a) item = Andrew

(b) Item = George

(c) Item = Annabelle

(d) All searched take the same time

(e) None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A linear search takes 2 inputs: one is a ordered list and another one is unsorted list. Which of the two will be sorted faster?

Sorted List

Unsorted List

Depends on the item of the position in the list

Not applicable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Under which of the following conditions is a linear search complete?

(a) Item is found

(b) Item is not present in the list

(c) a or b

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times is the code inside while loop (position = position + 1) executed if item = ‘G’?

1

2

3

4

8

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times is the code inside while loop (position = position + 1) executed if item = ‘K’?

5

6

7

4

8

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?