Unit Test II

Unit Test II

University

45 Qs

quiz-placeholder

Similar activities

struktur data array dan linked list

struktur data array dan linked list

University

40 Qs

Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

40 Qs

ITC 214 - Data Structures and Algorithm - Final Exam

ITC 214 - Data Structures and Algorithm - Final Exam

University

45 Qs

CS8391 - DS - Model #1

CS8391 - DS - Model #1

University

50 Qs

BTEC Fundamentals of Computer Systems (student questions)

BTEC Fundamentals of Computer Systems (student questions)

10th Grade - University

48 Qs

Self Assessment on Stacks & Queues

Self Assessment on Stacks & Queues

University

50 Qs

DSU MCQ on Stacks & Queues

DSU MCQ on Stacks & Queues

University

50 Qs

Estructura de datos parcial final

Estructura de datos parcial final

University

42 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?