Datastructure Basics

Datastructure Basics

Assessment

Quiz

World Languages

1st Grade

Easy

Created by

Nafis Mahamud Shahin

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a linked list?

A linked list has a fixed size

A linked list does not contain nodes

A linked list is a type of tree structure

A linked list is a linear data structure where each element is a separate object called a node. Each node contains a data field and a reference (link) to the next node in the sequence.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are nodes connected in a linked list?

Nodes in a linked list are connected through cables.

Nodes in a linked list are connected through wires.

Nodes in a linked list are connected through tubes.

Nodes in a linked list are connected through pointers.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a singly linked list and a doubly linked list?

Doubly linked lists are unidirectional, while singly linked lists are bidirectional.

The memory usage of singly linked lists is higher than that of doubly linked lists.

Singly linked lists have nodes with two links, while doubly linked lists have nodes with one link.

The main difference is that singly linked lists have one link per node, pointing to the next node, while doubly linked lists have two links per node, pointing to both the next and previous nodes.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the concept of a stack.

A stack is a data structure that follows the First In, First Out (FIFO) principle.

A stack is a data structure that does not restrict the order of element retrieval.

A stack is a data structure that follows the Last In, First Out (LIFO) principle.

A stack is a data structure that allows random access to elements.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the rule followed in stack data structure?

First In First Out (FIFO)

Last In First Out (LIFO)

Shortest element first

Random order

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a stack different from a queue?

In a stack, elements are added and removed from the same end following the Last In First Out (LIFO) principle. In a queue, elements are added at the rear and removed from the front following the First In First Out (FIFO) principle.

In a stack, elements are removed from the front, while in a queue, elements are removed from the rear.

Stacks are typically implemented using arrays, while queues are implemented using linked lists.

Stacks allow random access to elements, while queues only allow sequential access.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Define a queue.

A queue is a non-linear data structure.

A queue is a data structure that follows the Last In First Out (LIFO) principle.

A queue is a linear data structure that follows the First In First Out (FIFO) principle.

A queue is a data structure that allows random access to elements.

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?