Lesson 3 Flashcards

1
Q

_______ is a sequence of data structures, which are connected together via links. It is a sequence of links which contains items. Each link contains a connection to another link. This is the second most-used data structure after array.

A

Linked List

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Each link of a linked list can store a data called an _______.

A

Link

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Each link of a linked list contains a link to the next link called _______.

A

Next

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A _________ contains the connection link to the first link called First.

A

Linked List

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

True or false:
Linked List contains a link element called first.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

True or False:
Each link carries a data field(s) and a link field called next.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

True or False:

Each link is linked with its next link using its next link.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

True or False:

Last link carries a link as null to mark the end of the list.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

______ can be visualized as a chain of nodes, where every node points to the next node

A

Linked list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Item navigation is forward only.

A

Simple Linked List

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Items can be navigated forward and backward.

A

Doubly Linked List

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Last item contains link of the first element as next and the first element has a link to the last element as previous.

A

Circular Linked List

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Basic Operations supported by a list:

Adds an element at the beginning of the list.

A

Insertion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Basic Operations supported by a list:

Deletes an element at the beginning of the list.

A

Deletion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Basic Operations supported by a list:

Displays the complete list.

A

Display

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Basic Operations supported by a list:

Searches an element using the given key.

A

Search

17
Q

Basic Operations supported by a list:

Deletes an element using the given key.

A

Delete

18
Q

_________ is a variation of Linked list in which navigation is possible in both ways, either forward and backward easily as compared to Single Linked List. Following are the important terms to understand the concept of doubly linked list.

A

Doubly Linked List

19
Q

Each link of a linked list contains a link to the previous link called _____.

A

Prev

20
Q

A ______ contains the connection link to the first link called First and to the last link called Last.

A

LinkedList

21
Q

The way to write arithmetic expression is known as a ______. An arithmetic expression can be written in three different but equivalent notations, i.e., without changing the essence or output of an expression.

A

notation

22
Q

The 3 notations are:

A

Infix Notation
Prefix (Polish) Notation
Postfix (Reverse-Polish) Notation

23
Q

We write expression in _________, e.g. a - b + c, where operators are used in-between operands.

A

infix notation

24
Q

In this notation, operator is prefixed to operands, i.e. operator is written ahead of operands. For example, +ab. This is equivalent to its infix notation a
+ b. Prefix notation is also known as ________.

A

Prefix/Polish Notation

25
Q

This notation style is known as _________. In this notation style, the operator is postfixed to the operands i.e., the operator is written after the operands. For example, ab+. This is equivalent to its infix notation a + b.

A

Reversed Polish Notation/Post Notation

26
Q

When an operand is in between two different operators, which operator will take the operand first, is decided by the ________ of an operator over others.

A

precedence

27
Q

___________ describes the rule where operators with the same precedence appear in an expression. For example, in expression a + b − c, both + and – have the same precedence, then which part of the expression will be evaluated first, is determined by associativity of those operators. Here, both + and − are left associative, so the expression will be evaluated as (a + b) − c.

A

Associativity

28
Q

___________ is an abstract data structure, somewhat similar to Stacks. Unlike stacks, this is open at both its ends. One end is always used to insert data (enqueue) and the other is used to remove data (dequeue). It follows First-In-First-Out methodology, i.e., the data item stored first will be accessed first.

A

Queue

29
Q

Basic operations of Queue:

A

Enqueue()
Dequeue()

30
Q

Add (store) an item to the queue

A

enqueue()

31
Q

Remove (access) an item from the queue.

A

dequeue()

32
Q

Gets the element at the front of the queue without removing it.

A

peek()

33
Q

Checks if the queue is full.

A

isfull()

34
Q

Checks if the queue is empty.

A

isempty()

35
Q

True or False:
In queue, we always dequeue (or access) data, pointed by front pointer and while enqueing (or storing) data in the queue we take help of rear pointer

A

True

36
Q
A