Which among the following are the code to check the overflow and underflow conditions?
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 “gate2020”?
At the front of a partially filled array(so that data[0] is always the front)

1) A function pointer points to code
2) A function pointer points to data
3) We can allocate &/or deallocate memory using function pointers
4) We can’t allocate &/or deallocate memory using function pointers
struct box
{
int data;
struct Node *next;
};
void fun1(struct box* h)
{
if(h == NULL)
return;
fun1(h->next);
printf("%d ", h->data);
}
int getCount(struct Node* head)
{
if (head == NULL)
return 0;
return 1 + getCount(head->next);
}
How many times getCount gets called ?
Which one of the following is a valid sequence of elements in an array representing 3-ary max heap?
[MSQ]
We want to convert this BST into a balanced tree, whose balance factor () ranges from -1≤α≤1. Having these assumptions what will be the balance factor of the node 34 at initial step? If the tree is imbalance then which kind of imbalance is present in the tree?
Note: Consider height of child is 1.
Preorder: 67, 60, 55, 48, 58, 64, 80, 74, 84, 88, 90
What will be the post-order traversal of the above BST?