ADS 1 March 2025

ADS 1 March 2025

University

19 Qs

quiz-placeholder

Similar activities

Quiz - Linked list

Quiz - Linked list

University

14 Qs

Quizze Buzzie

Quizze Buzzie

University

14 Qs

Data Structures Activity - 1

Data Structures Activity - 1

University

15 Qs

String & Struct Exercise

String & Struct Exercise

University

17 Qs

Data Structures

Data Structures

University

20 Qs

Fundamentals of data Structures & Linked list

Fundamentals of data Structures & Linked list

University

20 Qs

ITEDAT Endterm Quiz #2

ITEDAT Endterm Quiz #2

University

20 Qs

C - Structures

C - Structures

University

20 Qs

ADS 1 March 2025

ADS 1 March 2025

Assessment

Quiz

Computers

University

Hard

Created by

Sanjib Kalita

Used 1+ times

FREE Resource

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the primary advantage of a linked list over an array in C?

Easier element access using index

Uses less memory than an array

Dynamic memory allocation and efficient insertions/deletions

Fixed size during compilation

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a node typically represented in a singly linked list in C?

struct Node ( int data, struct Node next)

struct Node ( int data, struct Node **next)

struct Node ( int data, struct Node *next)

struct Node ( int data, struct Node next[])

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of inserting a node at the beginning of a singly linked list?

O(1)

O(n)

O(log n)

O(n²)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of searching for an element in a singly linked list?


O(1)

O(n)

O(log n)

O(n²)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operations is NOT possible in a singly linked list?


Traversing the list

Deleting a node from the middle

Inserting a node at the beginning

Traversing backward

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pointer is used to traverse a singly linked list?

head

tail

current

current

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you insert a node at the end of a singly linked list?

Modify head pointer to point to new node

Traverse the list until next pointer is NULL and add new node

Set next of the last node to NULL

None of the above

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?