QUIZ 2

QUIZ 2

University

5 Qs

quiz-placeholder

Similar activities

Properties of Logarithms

Properties of Logarithms

University

8 Qs

QUIZ3:-DATA STRUCTURE

QUIZ3:-DATA STRUCTURE

University

10 Qs

Computational Thinking for Problem Solving

Computational Thinking for Problem Solving

University

10 Qs

Algorithm Quizz 2

Algorithm Quizz 2

University

10 Qs

CHAPTER 3 - BINARY SEARCH TREE

CHAPTER 3 - BINARY SEARCH TREE

University

6 Qs

Estructuras de Información

Estructuras de Información

University

10 Qs

K-Nearest Neighbors Quiz

K-Nearest Neighbors Quiz

University

10 Qs

DAA

DAA

University

10 Qs

 QUIZ 2

QUIZ 2

Assessment

Quiz

Other

University

Medium

Created by

HOD ICSB

Used 3+ times

FREE Resource

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)