DS QUIZ-1

DS QUIZ-1

University

20 Qs

quiz-placeholder

Similar activities

Alabi, Kolade, CSCI-2380-01P, PRE

Alabi, Kolade, CSCI-2380-01P, PRE

University

15 Qs

ANALYSIS OF ALGORITHMS

ANALYSIS OF ALGORITHMS

University

15 Qs

M3-1

M3-1

University

15 Qs

Linked List - Implementation

Linked List - Implementation

University

15 Qs

Prelims - LIST

Prelims - LIST

University

20 Qs

Linked List (Chapter 2)

Linked List (Chapter 2)

University

15 Qs

C Programming Quiz

C Programming Quiz

12th Grade - University

20 Qs

EC8393_FDS_MODEL EXAM_3_PART B

EC8393_FDS_MODEL EXAM_3_PART B

University

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