Previous GATE Questions in Programming and DS

70 votes
13 answers
62
38 votes
7 answers
65
Let $T$ be a tree with $10$ vertices. The sum of the degrees of all the vertices in $T$ is ________
33 votes
10 answers
67
25 votes
7 answers
68
Consider the following C program.#include<stdio.h int main () { int m=10; int n, n1; n=++m; n1=m++; n ; n1; n-=n1; printf(“%d”, n); return 0; }The output of the prog...
30 votes
11 answers
70
26 votes
3 answers
71
Match the following:$$\begin{array}{|ll|ll|}\hline P. & \text{static char var ;} & \text{i.} & \text{Sequence of memory locations to store addresses} \\\hline Q. & \text...
0 votes
1 answer
73
Write a LISP function to compute the product of all the numbers in a list. Assume that the list contains only number.
4 votes
2 answers
74
14 votes
3 answers
75
6 votes
2 answers
76
Mark the balance factor of each node on the tree given in the below figure and state whether it is height-balanced.
8 votes
2 answers
77
Define the height of a binary tree or subtree and also define a height-balanced (AVL) tree.
8 votes
1 answer
78
0 votes
0 answers
79
Which of the following features are available in Ada?procedures, monitors, packages, common statement, goto statement, generic unit tasks, backtracking, recursion, except...