Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage
Programming in C.
Recursion.
Filter
Recent
Hot!
Most votes
Most answers
Most views
Previous GATE
Featured
Previous GATE Questions in Programming and DS
#141
16.7k
views
4
answers
62
votes
GATE CSE 2015 Set 2 | Question: 17
Consider a complete binary tree where the left and right subtrees of the root are max-heaps. The lower bound for the number of operations to convert the tree to a heap is...
go_editor
16.7k
views
go_editor
asked
Feb 12, 2015
DS
gatecse-2015-set2
data-structures
binary-heap
normal
+
–
#142
14.7k
views
4
answers
42
votes
GATE CSE 2015 Set 2 | Question: 15
Consider the following function written in the C programming langauge :void foo(char *a) { if (*a && *a != ' ') { foo(a+1); putchar(*a); } }The output of the above func...
go_editor
14.7k
views
go_editor
asked
Feb 12, 2015
Programming in C
gatecse-2015-set2
programming
programming-in-c
normal
recursion
+
–
#143
31.0k
views
12
answers
35
votes
GATE CSE 2015 Set 2 | Question: 10
A binary tree T has $20$ leaves. The number of nodes in T having two children is ______.
go_editor
31.0k
views
go_editor
asked
Feb 12, 2015
DS
gatecse-2015-set2
data-structures
binary-tree
normal
numerical-answers
+
–
#144
1.6k
views
1
answers
3
votes
GATE CSE 1996 | Question: 19
Consider the following program in pseudo-Pascal syntax. What is printed by the program if parameter $a$ in procedure $\text{test1}$ is passed ascall-by-reference paramete...
Kathleen
1.6k
views
Kathleen
asked
Oct 9, 2014
Programming in C
gate1996
programming
parameter-passing
normal
out-of-syllabus-now
+
–
#145
6.4k
views
4
answers
24
votes
GATE CSE 1996 | Question: 15
Insert the characters of the string $K \ R \ P \ C \ S \ N \ Y \ T \ J \ M$ into a hash table of size $10$.Use the hash function$$h(x)=( ord (x) – ord (\text{“}a\tex...
Kathleen
6.4k
views
Kathleen
asked
Oct 9, 2014
DS
gate1996
data-structures
hashing
normal
descriptive
+
–
#146
23.3k
views
7
answers
55
votes
GATE CSE 1996 | Question: 4
A binary search tree is used to locate the number $43$. Which of the following probe sequences are possible and which are not? Explain.$\begin{array}{llllll} \text{(a)} ...
Kathleen
23.3k
views
Kathleen
asked
Oct 9, 2014
DS
gate1996
data-structures
binary-search-tree
normal
descriptive
+
–
#147
30.9k
views
5
answers
27
votes
GATE CSE 1996 | Question: 2.14
A binary search tree is generated by inserting in order the following integers:$$50, 15, 62, 5, 20, 58, 91, 3, 8, 37, 60, 24$$The number of nodes in the left subtree and ...
Kathleen
30.9k
views
Kathleen
asked
Oct 9, 2014
DS
gate1996
data-structures
binary-search-tree
easy
+
–
#148
14.4k
views
3
answers
28
votes
GATE CSE 1996 | Question: 2.11
The minimum number of interchanges needed to convert the array into a max-heap is$89, 19, 40, 17, 12, 10, 2, 5, 7, 11, 6, 9, 70$$0$$1$$2$$3$
Kathleen
14.4k
views
Kathleen
asked
Oct 9, 2014
DS
gate1996
data-structures
binary-heap
easy
+
–
#149
4.5k
views
3
answers
21
votes
GATE CSE 1996 | Question: 1.15
Which of the following sequences denotes the post order traversal sequence of the below tree?$f\; e\; g\; c\; d\; b\; a$$g\; c\; b\; d\; a\; f\; e$$g\; c\; d\; b\; f\; e\...
Kathleen
4.5k
views
Kathleen
asked
Oct 9, 2014
DS
gate1996
data-structures
binary-tree
easy
+
–
#150
12.5k
views
3
answers
29
votes
GATE CSE 1996 | Question: 1.14
In the balanced binary tree in the below figure, how many nodes will become unbalanced when a node is inserted as a child of the node “g”?$1$$3$$7$$8$
Kathleen
12.5k
views
Kathleen
asked
Oct 9, 2014
DS
gate1996
data-structures
binary-tree
normal
+
–
#151
14.0k
views
6
answers
39
votes
GATE CSE 1996 | Question: 1.13
An advantage of chained hash table (external hashing) over the open addressing scheme isWorst case complexity of search operations is lessSpace used is lessDeletion is ea...
Kathleen
14.0k
views
Kathleen
asked
Oct 9, 2014
DS
gate1996
data-structures
hashing
normal
+
–
#152
15.3k
views
4
answers
33
votes
GATE CSE 1996 | Question: 1.12
Consider the following statements:First-in-first out types of computations are efficiently supported by STACKS.Implementing LISTS on linked lists is more efficient than i...
Kathleen
15.3k
views
Kathleen
asked
Oct 9, 2014
DS
gate1996
data-structures
easy
queue
stack
linked-list
+
–
#153
3.8k
views
3
answers
25
votes
GATE CSE 1995 | Question: 6
What is the number of binary trees with $3$ nodes which when traversed in post-order give the sequence $A, B, C ?$ Draw all these binary trees.
Kathleen
3.8k
views
Kathleen
asked
Oct 8, 2014
DS
gate1995
data-structures
binary-tree
normal
descriptive
+
–
#154
5.5k
views
3
answers
21
votes
GATE CSE 1995 | Question: 3
Consider the following high level programming segment. Give the contents of the memory locations for variables $W, X, Y$ and $Z$ after the execution of the program segmen...
Kathleen
5.5k
views
Kathleen
asked
Oct 8, 2014
Programming in C
gate1995
programming
identify-function
descriptive
+
–
#155
11.6k
views
3
answers
26
votes
GATE CSE 1995 | Question: 2.22
Which of the following statements is true?As the number of entries in a hash table increases, the number of collisions increases.Recursive programs are efficientThe worst...
Kathleen
11.6k
views
Kathleen
asked
Oct 8, 2014
DS
gate1995
data-structures
linked-list
hashing
+
–
#156
38.6k
views
7
answers
49
votes
GATE CSE 1995 | Question: 2.21
The postfix expression for the infix expression $A+B*(C+D)/F+D*E$ is:$AB + CD + *F/D +E*$$ABCD + *F/DE* ++$$A * B + CD/F *DE ++$$A + *BCD/F* DE ++$
Kathleen
38.6k
views
Kathleen
asked
Oct 8, 2014
DS
gate1995
data-structures
stack
easy
+
–
#157
36.4k
views
6
answers
43
votes
GATE CSE 1995 | Question: 1.17
A binary tree $T$ has $n$ leaf nodes. The number of nodes of degree $2$ in $T$ is$\log_2 n$$n-1$$n$$2^n$
Kathleen
36.4k
views
Kathleen
asked
Oct 8, 2014
DS
gate1995
data-structures
binary-tree
normal
+
–
#158
7.6k
views
3
answers
32
votes
GATE CSE 1994 | Question: 26
A queue $Q$ containing $n$ items and an empty stack $S$ are given. It is required to transfer all the items from the queue to the stack, so that the item at the front of ...
Kathleen
7.6k
views
Kathleen
asked
Oct 5, 2014
DS
gate1994
data-structures
queue
stack
normal
descriptive
+
–
#159
5.1k
views
6
answers
29
votes
GATE CSE 1994 | Question: 25
An array $A$ contains $n$ integers in non-decreasing order, $A \leq A \leq \cdots \leq A[n]$. Describe, using Pascal like pseudo code, a linear time algorithm to find $...
Kathleen
5.1k
views
Kathleen
asked
Oct 5, 2014
DS
gate1994
data-structures
array
normal
descriptive
+
–
#160
1.9k
views
1
answers
1
votes
GATE CSE 1994 | Question: 22
Consider the program below:Program main: var r:integer; procedure two: begin write (r); end procedure one: var r:integer; begin r:=5; two; end begin r:=2; two; one; two; ...
Kathleen
1.9k
views
Kathleen
asked
Oct 5, 2014
Programming in C
gate1994
programming
variable-binding
normal
out-of-gate-syllabus
+
–
Page:
« prev
1
...
3
4
5
6
7
8
9
10
11
12
13
...
16
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register