question Flashcards

(45 cards)

1
Q

is a linear data structure which follows a particular order in which the operations are performed.

A

stack

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

The order may be LIFO(Last In First Out) or FILO(First In Last Out).

A

stack

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

Stack terminology ( 2 )

A

push() pop()

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

(storing) an element on the stack.

A

push

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

Removing (accessing) an element from the stack.

A

pop()

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

get the top data element of the stack, without removing it

A

peek()

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

The way to write arithmetic expression is known as a _______

A

notation

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

Notations ( 3 )

A

infix, prefix, postfix

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

where operators are used in-between operands.

A

infix notation

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

the operator is written after the operands.

A

postfix notation

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

is an abstract data structure, somewhat similar to Stacks.

A

queue

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

The process of putting a new data element onto stack is known as a

A

push operation

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

operator is written ahead of operands.

A

prefix notation

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

This notation style is known asReversed Polish Notation

A

postfix notation

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

This search algorithm works on the principle of divide and conquer.

A

Binary Search

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

True or false
Interpolation search is an improved variant of binary search

A

true

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

True or false
In interpolation, the data collection should be in a sorted form and equally distributed

A

true

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

True or false
In interpolation, The algorithm works on the probing position of the required value

A

true

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

True or false
Binary search looks for a particular item by comparing the middle most item of the collection

20
Q

In this type of search, a sequential search is made over all items one by one

A

Linear Search

21
Q

this search is a fast search algorithm with run-time complexity of Ο(log n

A

Binary Search

22
Q

this search is an improved variant of binary search.

A

interpolation search

23
Q

For this algorithm to work properly, the data collection should be in the sorted form

A

binary search

24
Q

the data collection should be in a sorted form and equally distributed.

A

interpolation search

25
Most common orders are in numerical or lexicographical order
sorting
26
True or false Bubble sort is a simple sorting algorithm
true
27
algorithm is comparison-based algorithm in which each pair of adjacent elements is compared and the elements are swapped if they are not in order.
bubble sort
28
This is an in-place comparison-based sorting algorithm
insertion sort
29
a sub-list is maintained which is always sorted.
insertion sort
30
an in-place comparison-based algorithm in which the list is divided into two parts, the sorted part at the left end and the unsorted part at the right end. Initially, the sorted part is empty and the unsorted part is the entire list.
selection sort
31
The smallest element is selected from the unsorted array and swapped with the leftmost element, and that element becomes a part of the sorted array.
selection sort
32
a sorting technique based on divide and conquer technique. With worst-case time complexity being Ο(n log n), it is one of the most respected algorithms.
merge sort
33
a highly efficient sorting algorithm and is based on partitioning of array of data into smaller arrays.
quick sort
34
is a highly efficient sorting algorithm and is based on insertion sort algorithm.
shell sort
35
This algorithm uses insertion sort on a widely spread elements, first to sort them and then sorts the less widely spaced elements. This spacing is termed as interval. 
shell sort
36
refers to arranging data in a particular format.
sorting
37
True or false linear search is an improved variant of binary search
false
38
True or false The top pointer provides top value of the stack without actually removing it.
true
39
True or false stack data structure which follows first in first out methodology.
false
40
provides top value of the stack without actually removing it.
top pointer
41
known as reversed polish notation
postfix notation
42
known as polish notation
prefix notation
43
add (store) an item to the queue.
enqueue
44
remove (access) an item from the queue.
dequeue
45
is open at both its ends
queue