Q.1
While implementing Stack using list when we want to delete element we must use pop function as__________
  • list.pop(0)
  • list.pop(pos)
  • list.pop()
  • list.pop(1)
Q.2
In a graph if E=(u,v) means _____________
  • u is adjacent to v but v is not adjacent to u
  • e begins at u and ends at v
  • u is processor and v is successor
  • both b and c
Q.3
Stack is also called as
  • Last in first out
  • First in last out
  • Last in last out
  • First in first out
Q.4
What does the following function do for a given Linked List with first node as head?
  • 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
Q.5
Consider the following operation performed on a stack of size 5.Push(1);Pop();Push(2);Push(3);Pop();Push(4);Pop();Pop();Push(5);After the completion of all operation, the number of elements present in stack are
  • a)1
  • b)2
  • c)3
  • d)4
Q.6
Identify the types of sorting that used partition and exchange sort.
  • Bubble sort
  • Selection sort
  • Quick sort
  • Merge sort
0 h : 0 m : 1 s