DS QUIZ-1

DS QUIZ-1

University

20 Qs

quiz-placeholder

Similar activities

1 Binary Search Trees

1 Binary Search Trees

University

20 Qs

Linked List

Linked List

KG - University

18 Qs

DATA STRUCTURES WORKSHOP DAY-1

DATA STRUCTURES WORKSHOP DAY-1

University

25 Qs

Final Komputasi Awan

Final Komputasi Awan

University

20 Qs

Flip Flop

Flip Flop

University

15 Qs

blockchain

blockchain

University

19 Qs

NGP Quiz 3 Batch 7

NGP Quiz 3 Batch 7

University

15 Qs

Linked list 1

Linked list 1

University

20 Qs

DS QUIZ-1

DS QUIZ-1

Assessment

Quiz

Computers

University

Hard

Created by

SOBHANBABU SOBHANBABU

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following is/are linear data structure(s)

Array

Tree

Graph

Linked list

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst case time complexity of Linear Search

O(n)

O(logn)

O(n^2)

O(logn^2)

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How to calculate mid point in Binary Search

mid=low+high/2

mid=(high-low)/2

mid=(high+low)/2

mid=low+high-1

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Binary search input elements are always in ____________

Ascending Order

Descending Order

Either in Ascending or descending order

No specific order

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Binary search follows_____________

Divide and conquer strategy

Greedy appraoch

No specific approach

Dynamic Programming approach

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is node in linked list

collection of data and address fields

Node contains only data

Node contains either data or address

Node is a chain

7.

MULTIPLE SELECT QUESTION

1 min • 1 pt

How to create a node for SLL in C language

n=(Node*)malloc(sizeof(Node);

n=(Node*)calloc(1,sizeof(Node));

n=(Node*)malloc(sizeof(Node*));

n=malloc(sizeof(Node);

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?