wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Demo DS-A ASHV Quiz

Total questions: 17

Worksheet time: 17mins

Name
Class
Date
1.

What is our HOD Name?

a)

Dr. K.Chokkanathan

b)

Dr. Kalpana

c)

Dr. Sridevi

d)

Dr. Sameena Athahar Khan

2.

Find top of stack using operations

push(10), push(20), push(30), pop(), push(15), push(25), pop()

(a)  

3.

If elements are inserted in the order -1,2,-3,0,1,4,7,-4 then to delete value 0 how many dequeue operations are required?

(a)  

4.

arr = {45,77,89,90,94,99,100} and key = 99; what are the mid values in the first and second levels of recursion?

a)

90 and 94

b)

90 and 89

c)

90 and 99

d)

89 and 94

5.
 In computing, What is FILO?
a)
First In First Out
b)
First In Last out
c)
Last Out Lowest Order
d)
A very thin unleavened dough used for making pastries such as baklava and börek in Middle Eastern and Balkan cuisines.
6.

The situation when in a linked list START=NULL is

a)

underflow

b)

overflow

c)

housefull

d)

saturated

7.

Consider the following pseudocode that uses a stack

declare a stack of characters

while ( there are more characters in the word to read ){

{

read a character

push the character on the stack

}

while ( the stack is not empty )

{ pop a character off the stack

write the character to the screen

}

What is output for input "computer"?

a)

computer

b)

computercomputer

c)

retupmocretupmoc

d)

retupmoc

8.

A node that is not a root or a leaf is known as __________ node because it is found in the middle portion of a tree.

a)

root

b)

leaf

c)

internal node

d)

tree

9.
A Binary search requires the data it is searching to be ordered in some way...
a)
True
b)
False
10.

Any two nodes which are connected by an edge in a graph are called _________ nodes.

a)

Adjacent

b)

Proper

c)

Node

d)

None of above

11.

What does the following function do for a given Linked List with first node as head?


void fun1(struct node* head)

{

if(head == NULL)

return;

fun1(head->next);

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

}

a)

Prints all nodes of linked lists

b)

Prints all nodes of linked list in reverse order

c)

Prints alternate nodes of Linked List

d)

Prints alternate nodes in reverse order

12.

What is the full Form of RAIDS?? (Event of Our College)

(a)  

13.

If elements are inserted in the order -1,2,-3,0,1,4,7,-4 then to delete value 0 how many dequeue operations are required?

(a)  

14.

Distinct edges which connect the same end points are called _________ edges.

a)

parallel

b)

level

c)

both a and b

d)

none of above

15.
A Binary search requires the data it is searching to be ordered in some way...
a)
True
b)
False
16.

To add a new element to a list we use which Python command?

a)

a) list1.addEnd(5)

b)

b) list1.addLast(5)

c)

c) list1.append(5)

d)

d) list1.add(5)

17.

Consider the following pseudocode that uses a stack

declare a stack of characters

while ( there are more characters in the word to read ){

{

read a character

push the character on the stack

}

while ( the stack is not empty )

{ pop a character off the stack

write the character to the screen

}

What is output for input "computer"?

a)

computer

b)

computercomputer

c)

retupmocretupmoc

d)

retupmoc