Search Header Logo

DS CA1 QUIZ

Authored by Deepak Mangal

Computers

University

Used 3+ times

DS CA1 QUIZ
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 5 pts

What is the time complexity of accessing the nth element on an unsorted array?

O(n)

O(1)

O(log(n))

O(n^2)

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which type of sort algorithm is this?

Insertion
Bubble
Merge

3.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Media Image

What is the time complexity of this function / algorithm?

O(n)

Colinas debe saber !

O(n^2)

O(1)

O(nlog(n))

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Identify selection sort on values: {10, 6, 3, 2, 8}

{6,10,3,2,8}, {3,6,10,2,8}, {2,3,6,8,10}

{6,10,3,2,8}, {3,6,10,2,8}, {2,3,6,10,8}, {2,3,6,8,10}

{2,6,3,10,8}, {2,3,6,10,8}, {2,3,6,10,8}, {2,3,6,8,10}

{2,6,3,10,8}, {2,3,6,10,8}, {2,3,6,8,10}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we describe an array in the best possible way?

The Array shows a hierarchical structure.

Arrays are immutable (Not Modifiable)

Container that stores the elements of similar types

The Array is not a data structure

6.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Media Image

What is the time complexity of this function / algorithm?

O(n)

O(log(n))

O(1)

O(n^2)

Preguntale al frances

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the disadvantage of array data structure?

Elements of an array can be accessed in constant time

Elements are stored in contiguous memory location

The amount of memory to be allocated should be known beforehand

Multiple other data structures can be implemented using Array

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?