Search Header Logo

QUIZ 2

Authored by HOD ICSB

Other

University

Used 3+ times

 QUIZ 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm selects the smallest element from the unsorted part and places it in the correct position?

Insertion Sort

Selection Sort

Merge Sort

Quick Sort

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm repeatedly compares adjacent elements and swaps them if needed?

Bubble Sort

Selection Sort

Insertion Sort

Heap Sort

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst-case time complexity of Selection Sort and Bubble Sort?

O(n)

O(log n)

O(n log n)

O(n²)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which search technique scans elements one by one until the target is found?

Binary Search

Hashing

Sequential Search

Indexing

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the pattern length is m and text length is n, the brute force string matching has time complexity:

O(n + m)

O(log n)

O(m²)

O((n - m + 1) * m)

Access all questions and much more by creating a free account

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

Already have an account?