DS Quiz for 4th Sep.

DS Quiz for 4th Sep.

University

6 Qs

quiz-placeholder

Similar activities

Gameplay-Quiz 1 & Quiz 2

Gameplay-Quiz 1 & Quiz 2

University

10 Qs

KDJK Quiz Angkatan 22

KDJK Quiz Angkatan 22

University

10 Qs

What do you know - Informatics?

What do you know - Informatics?

University

10 Qs

CIS2303 Week 1_2 CLO1

CIS2303 Week 1_2 CLO1

University

11 Qs

Social Media Communication Quiz

Social Media Communication Quiz

University

10 Qs

Introduction to HTML

Introduction to HTML

University

10 Qs

Fixed Length Subnet Mask (FLSM)

Fixed Length Subnet Mask (FLSM)

University

10 Qs

Exploring Microservices Arch

Exploring Microservices Arch

University

10 Qs

DS Quiz for 4th Sep.

DS Quiz for 4th Sep.

Assessment

Quiz

Computers

University

Medium

Created by

Hriday Gupta

Used 1+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider an implementation of unsorted singly linked list. Suppose it has its representation with a head and tail pointer. Given the representation, which of the following operation can be implemented in O(1) time?

I.Insertion at the front of the linked list

II. Insertion at the end of the linked list

III.Deletion of the last node of the linked list

IV.Deletion of the front node of the linked list

I and II

I and III

I,II and III

I,II and IV

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would be the asymptotic time complexity to add an element in the linked list?

O(1)

O(n)

O(n2)

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variant of linked list in which last node of the list points to the first node of the list is?

Singly linked list

Doubly linked list

Circular linked list

Multiply linked list

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In doubly linked lists, traversal can be performed?

Only in forward direction

Only in reverse direction

In both directions

None

5.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

According to today class discussion what should be filled at dotted position


while(ptr->next!=NULL)

{

printf("%d->",ptr->data);

.................................

}

6.

FILL IN THE BLANK QUESTION

10 sec • 1 pt

According to today class discussion what should be filled at dotted position


Hint:- In Create function


temp=(struct node *)malloc(sizeof(struct node));

printf("Enter data:");

scanf("%d",&x);

temp->data=x;

temp->next=NULL;

if(head==NULL)

head=...............................;