Unit Test II

Unit Test II

University

45 Qs

quiz-placeholder

Similar activities

Data Structures Quiz

Data Structures Quiz

University

44 Qs

Data Structure and Algorithm

Data Structure and Algorithm

University

43 Qs

Data Structures & Algorithm

Data Structures & Algorithm

University

40 Qs

Quizical Suspect!

Quizical Suspect!

University

40 Qs

Data Structures

Data Structures

University

50 Qs

DS-UNIT-2-Stack Queue

DS-UNIT-2-Stack Queue

University

50 Qs

IT 2-2 MIDTERM EXAM - DSA

IT 2-2 MIDTERM EXAM - DSA

University

40 Qs

Special Prelim Exam in DSA

Special Prelim Exam in DSA

University

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