Unit Test II

Unit Test II

University

45 Qs

quiz-placeholder

Similar activities

DSA CO5

DSA CO5

University

50 Qs

EAS Struktur Data Kelas D

EAS Struktur Data Kelas D

University

47 Qs

ITC 214 - Data Structures and Algorithm - Final Exam

ITC 214 - Data Structures and Algorithm - Final Exam

University

45 Qs

Data Structures & Algorithm

Data Structures & Algorithm

University

40 Qs

CS8391 - DS - Model #1

CS8391 - DS - Model #1

University

50 Qs

Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

40 Qs

DS-UNIT-2-Stack Queue

DS-UNIT-2-Stack Queue

University

50 Qs

SAS Informatika Ganjil Kelas 9

SAS Informatika Ganjil Kelas 9

9th Grade - University

50 Qs

Unit Test II

Unit Test II

Assessment

Quiz

Computers

University

Medium

Created by

Ankita Luke

Used 2+ times

FREE Resource

45 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT an attribute of algorithms?

Correctness

Ambiguity

Finiteness

Efficiency

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of linear search?

O(log n)

O(n²)

O(1)

O(n)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm is the fastest for large datasets?

Selection Sort

Bubble Sort

Merge Sort

Insertion Sort

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary disadvantage of Bubble Sort?

Only works with sorted arrays

Complex implementation

Requires additional memory

Inefficient for large datasets

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a stable sorting algorithm?

Heap Sort

Selection Sort

Merge Sort

Quick Sort

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a 2D array, the address of A[i][j] is calculated using:

Base + (i + j) × size

Base + (j x num_rows + i) × size

Base + (i x num_cols + j) × size

Base + (i x j) × size

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of memory allocation is used for arrays?

Dynamic Memory Allocation

Static Memory Allocation

None of the above

Both DMA and SMA

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?