Professional Documents
Culture Documents
Hi, Himanshu. When you submit this form, the owner will see your name and email address.
* Required
Roll Number *
23129
Name *
Himanshu Marathe
Which of the following points is/are not true about Linked List data
structure when it is compared with array?
*
(1 Point)
a) Arrays have better cache locality that can make them better in terms of performance
d) Access of elements in linked list takes less time than compared to arrays
Suppose Base (AAA) =300 and w=4 word per memory cell for AAA. Find the
address of AAA [15] *
(1 Point)
340
320
300
260
push(5), push(8), pop, push(2), push(5), pop, pop, pop, push(1), pop *
(1 Point)
a)8 5 2 5 1
b)8 5 5 2 1
c)8 2 5 5 1
d)8 1 2 5 5
https://forms.office.com/pages/responsepage.aspx?id=PaYKCtCCoUu5CdeYbs5MTFqlQcj_0bhNr5zX40xkSbdURUVRSzVWOThWNU1PN0xPR0Q4… 2/14
04/10/2021, 11:51 DSA Unit Test- I AY2021-22
*
(1 Point)
a) backtracking
b) greedy algorithm
d) dynamic programming
*
(1 Point)
https://forms.office.com/pages/responsepage.aspx?id=PaYKCtCCoUu5CdeYbs5MTFqlQcj_0bhNr5zX40xkSbdURUVRSzVWOThWNU1PN0xPR0Q4… 3/14
04/10/2021, 11:51 DSA Unit Test- I AY2021-22
c) Find and return the position of the given element in the list
a) Fixed size
b) There are chances of wastage of memory space if elements inserted in an array are
lesser than the allocated size
10
https://forms.office.com/pages/responsepage.aspx?id=PaYKCtCCoUu5CdeYbs5MTFqlQcj_0bhNr5zX40xkSbdURUVRSzVWOThWNU1PN0xPR0Q4… 4/14
04/10/2021, 11:51 DSA Unit Test- I AY2021-22
11
The given array is arr = {1,2,3,4,5}. (bubble sort is implemented with a flag
variable)The number of iterations in selection sort and bubble sort respectively
are,
answer choices *
(1 Point)
5 and 4
1 and 4
0 and 4
4 and 1
12
1. the worst-case time complexity of merge sort is O( n log n) and Quick Sort is
O(n^2)
2.the worst-case time complexity of merge sort is O(n^2) and Quick Sort is O(
n log n)
https://forms.office.com/pages/responsepage.aspx?id=PaYKCtCCoUu5CdeYbs5MTFqlQcj_0bhNr5zX40xkSbdURUVRSzVWOThWNU1PN0xPR0Q4… 5/14
04/10/2021, 11:51 DSA Unit Test- I AY2021-22
13
Given an array arr = {45,77,89,90,94,99,100} and key = 100; What are the mid
values(corresponding array elements) generated in the first and second
iterations?
*
(1 Point)
a) 90 and 99
b) 90 and 100
c) 89 and 94
d) 94 and 99
14
Choose the appropriate code that does binary search using recursion. *
(1 Point)
15
6 4 3 7 11 9 14 12
6 3 4 7 9 14 11 12
7 6 14 11 9 4 3 12
7 6 4 3 9 14 11 12
16
a)full
b)one elemet
c)overflow
d)empty
17
https://forms.office.com/pages/responsepage.aspx?id=PaYKCtCCoUu5CdeYbs5MTFqlQcj_0bhNr5zX40xkSbdURUVRSzVWOThWNU1PN0xPR0Q4… 7/14
04/10/2021, 11:51 DSA Unit Test- I AY2021-22
a) O(1)
b) O(n)
c) O(logn)
18
*
(1 Point)
c)Queues use two ends of the structure; stacks use only one.
d)Stacks use two ends of the structure, queues use only one.
19
*
(1 Point)
a)A,B,C,W,Y
b)C,D,W,X,Y
c)W,Y,X,C,D
d)A,B,C,D,W
https://forms.office.com/pages/responsepage.aspx?id=PaYKCtCCoUu5CdeYbs5MTFqlQcj_0bhNr5zX40xkSbdURUVRSzVWOThWNU1PN0xPR0Q4… 8/14
04/10/2021, 11:51 DSA Unit Test- I AY2021-22
20
What is the running time of an insertion sort algorithm if the input is pre-
sorted?
*
(1 Point)
a) O(N2)
b) O(N log N)
c) O(N)
d) O(M log N)
21
(ii) Implementing LISTS on linked lists is more efficient than implementing LISTS
on an array for almost all the basic LIST operations.
*
(1 Point)
https://forms.office.com/pages/responsepage.aspx?id=PaYKCtCCoUu5CdeYbs5MTFqlQcj_0bhNr5zX40xkSbdURUVRSzVWOThWNU1PN0xPR0Q4… 9/14
04/10/2021, 11:51 DSA Unit Test- I AY2021-22
22
Let the following circular queue can accommodate maximum six elements with
the following data
front = 2 rear = 4
What will happen after 'ADD O, P' and 'DEL' operation takes place?
*
(1 Point)
23
average[20] = 13.25; *
(1 Point)
A cast is required
https://forms.office.com/pages/responsepage.aspx?id=PaYKCtCCoUu5CdeYbs5MTFqlQcj_0bhNr5zX40xkSbdURUVRSzVWOThWNU1PN0xPR0Q… 10/14
04/10/2021, 11:51 DSA Unit Test- I AY2021-22
24
*
(1 Point)
a) Insertion sort
b) Merge sort
c) Polynomial manipulation
d) Binary search
25
*
(1 Point)
a)Bubble Sort
b)Insertion Sort
c)Merge Sort
d)Quick Sort
26
In a circular queue, how do you increment the rear end of the queue?
*
(1 Point)
a)rear++
https://forms.office.com/pages/responsepage.aspx?id=PaYKCtCCoUu5CdeYbs5MTFqlQcj_0bhNr5zX40xkSbdURUVRSzVWOThWNU1PN0xPR0Q… 11/14
04/10/2021, 11:51 DSA Unit Test- I AY2021-22
27
*
(1 Point)
a) 6 4 3 7 11 9 14 12
b) 6 3 4 7 9 14 11 12
c) 7 6 14 11 9 4 3 12
d) 7 6 4 3 9 14 11 12
28
*
(1 Point)
a)at the tail of the link list, at the head of link list,
b)at the head of link list, at the centre position in the link list
c)at the head of link list, at the tail of the link list
https://forms.office.com/pages/responsepage.aspx?id=PaYKCtCCoUu5CdeYbs5MTFqlQcj_0bhNr5zX40xkSbdURUVRSzVWOThWNU1PN0xPR0Q… 12/14
04/10/2021, 11:51 DSA Unit Test- I AY2021-22
29
You are given pointers to first and last nodes of a singly linked list, which
of the following operations are dependent on the length of the linked list?
*
(1 Point)
30
What is the time complexity to count the number of elements in the linked list?
*
(1 Point)
a) O(1)
b) O(n)
c) O(logn)
d) O(n^2)
31
*
(1 Point)
a) Insertion Sort
https://forms.office.com/pages/responsepage.aspx?id=PaYKCtCCoUu5CdeYbs5MTFqlQcj_0bhNr5zX40xkSbdURUVRSzVWOThWNU1PN0xPR0Q… 13/14
04/10/2021, 11:51 DSA Unit Test- I AY2021-22
b) Quick Sort
c) Bubble Sort
d) Merge Sort
32
Consider the situation where no other data structure like arrays, linked list is
available to you. How many stacks are needed to implement a queue.
*
(1 Point)
Submit
This content is created by the owner of the form. The data you submit will be sent to the form owner. Microsoft is not
responsible for the privacy or security practices of its customers, including those of this form owner. Never give out your
password.
https://forms.office.com/pages/responsepage.aspx?id=PaYKCtCCoUu5CdeYbs5MTFqlQcj_0bhNr5zX40xkSbdURUVRSzVWOThWNU1PN0xPR0Q… 14/14