Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage
Programming in C.
Recursion.
Recent activity in Programming and DS
85
85 votes
7
answers
7 answers
30.6k
30.6k views
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...
AneeshS
30.6k
views
commented
6 hours
ago
Data Structures
gatecse-2015-set2
data-structures
binary-heap
normal
+
–
126
126 votes
9
answers
9 answers
42.8k
42.8k views
GATE CSE 2003 | Question: 6
Let $T(n)$ be the number of different binary search trees on $n$ distinct elements.Then $T(n) = \sum_{k=1}^{n} T(k-1)T(x)$, where $x$ is $n-k+1$$n-k$$n-k-1$$n-k-2$
Prasanna___S
42.8k
views
commented
7 hours
ago
Data Structures
gatecse-2003
normal
binary-search-tree
+
–
76
76 votes
10
answers
10 answers
19.0k
19.0k views
GATE CSE 2015 | Set 3 | Question: 30
Consider the following two C code segments. $Y$ and $X$ are one and two dimensional arrays of size $n$ and $ n \times n$ respectively, where $2 \leq n \leq 10$. Assume th...
Satyarth_Prakash
19.0k
views
answered
7 hours
ago
Programming in C
gatecse-2015-set3
programming-in-c
normal
array
+
–
14
14 votes
2
answers
2 answers
11.5k
11.5k views
GATE CSE 2002 | Question: 1.18
The results returned by function under value-result and reference parameter passing conventionsDo not differDiffer in the presence of loopsDiffer in all casesMay differ i...
himansh2096
11.5k
views
commented
8 hours
ago
Programming in C
gatecse-2002
programming
parameter-passing
normal
out-of-gatecse-syllabus
+
–
243
243 votes
14
answers
14 answers
62.8k
62.8k views
GATE CSE 2016 | Set 1 | Question: 41
Let $Q$ denote a queue containing sixteen numbers and $S$ be an empty stack. $Head(Q)$ returns the element at the head of the queue $Q$ without removing it from $Q$. Simi...
Sudo_404_Div
62.8k
views
commented
11 hours
ago
Data Structures
gatecse-2016-set1
data-structures
queue
difficult
numerical-answers
+
–
0
0 votes
1
1 answer
1.8k
1.8k views
pointer type
If a record is deleted while another record still contains a pointer to it, that pointer is called a Pinned pointerDangling pointerPointless pointerNone of the above
soujanyareddy13
1.8k
views
edited
15 hours
ago
Programming in C
+
–
0
0 votes
1
answers
1 answer
7.8k
7.8k views
what is the value of postfix expression a b c d + - * (where a=8,b=4, c=2, d=5)
soujanyareddy13
7.8k
views
recategorized
15 hours
ago
Data Structures
+
–
138
138 votes
12
answers
12 answers
49.6k
49.6k views
GATE CSE 2006 | Question: 49
An implementation of a queue $Q$, using two stacks $S1$ and $S2$, is given below: void insert (Q, x) { push (S1, x); } void delete (Q) { if (stack-empty(S2)) then if (sta...
Raj Kushwaha
49.6k
views
commented
15 hours
ago
Data Structures
gatecse-2006
data-structures
queue
stack
normal
+
–
111
111 votes
12
12 answers
44.2k
44.2k views
GATE CSE 2022 | Question: 52
Consider the queues $Q_{1}$ containing four elements and $Q_{2}$ containing none (shown as the $\textsf{Initial State}$ in the figure). The only operations allowed on the...
aaha
44.2k
views
commented
15 hours
ago
Data Structures
gatecse-2022
numerical-answers
data-structures
queue
two-marks
+
–
59
59 votes
4
answers
4 answers
17.5k
17.5k views
GATE CSE 2002 | Question: 2.18
The C language is:A context free languageA context sensitive languageA regular languageParsable fully only by a Turing machine
akshay_123
17.5k
views
commented
23 hours
ago
Programming in C
gatecse-2002
programming
programming-in-c
normal
+
–
8
8 votes
2
2 answers
559
559 views
GO Classes DPP | GATE CS, DA | Data Structure | Stack & Queue
Which of the following statements are true?$\text{S1.}$ Stack operations $\texttt{push}$, $\texttt{pop}$, and $\texttt{isEmpty}$ can be worst-case $O(1)$ for a linked-lis...
Gubba_Venkat
559
views
answered
1 day
ago
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-234
goclasses-cs-dpp
goclasses-cs-dpp-day-332
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
stack
queue
priority-queue
+
–
34
34 votes
3
3 answers
12.3k
12.3k views
GATE CSE 2025 | Set 1 | Question: 53
Consider the following C program:#include <stdio.h int gate (int n) { int d, t, newnum, turn; newnum = turn = 0; t=1; while (n>=t) t *= 10; t /=10; while (t>0) { d = n/t;...
Aryan Prasad_1
12.3k
views
answered
1 day
ago
Programming in C
gatecse2025-set1
programming-in-c
output
numerical-answers
two-marks
+
–
106
106 votes
13
answers
13 answers
47.4k
47.4k views
GATE IT 2007 | Question: 28
Consider a hash function that distributes keys uniformly. The hash table size is $20$. After hashing of how many keys will the probability that any new key hashed collide...
Utsav_Singh
47.4k
views
commented
1 day
ago
Data Structures
gateit-2007
data-structures
hashing
probability
normal
+
–
120
120 votes
14
answers
14 answers
68.2k
68.2k views
GATE CSE 2018 | Question: 46
The number of possible min-heaps containing each value from $\{1,2,3,4,5,6,7\}$ exactly once is _______
AneeshS
68.2k
views
commented
2 days
ago
Data Structures
gatecse-2018
binary-heap
numerical-answers
combinatory
two-marks
+
–
15
15 votes
6
6 answers
8.2k
8.2k views
GATE CSE 2025 | Set 1 | Question: 25
The height of any rooted tree is defined as the maximum number of edges in the path from the root node to any leaf node.Suppose a Min-Heap $\text{T}$ stores $32$ keys. Th...
AneeshS
8.2k
views
commented
2 days
ago
Data Structures
gatecse2025-set1
data-structures
binary-heap
numerical-answers
easy
one-mark
+
–
78
78 votes
5
answers
5 answers
32.7k
32.7k views
GATE CSE 2014 | Set 3 | Question: 40
Consider a hash table with $100$ slots. Collisions are resolved using chaining. Assuming simple uniform hashing, what is the probability that the first $3$ slots are unfi...
Utsav_Singh
32.7k
views
commented
2 days
ago
Data Structures
gatecse-2014-set3
data-structures
hashing
probability
normal
+
–
160
160 votes
16
answers
16 answers
60.5k
60.5k views
GATE CSE 2004 | Question: 85
A program takes as input a balanced binary search tree with $n$ leaf nodes and computes the value of a function $g(x)$ for each node $x$. If the cost of computing $g(x)$ ...
Avdhesh_Singh_Soharu
60.5k
views
answer edited
2 days
ago
Data Structures
gatecse-2004
binary-search-tree
normal
data-structures
+
–
6
6 votes
3
3 answers
260
260 views
GO Classes DPP | GATE CS, DA | Data Structure | BST Properties
Consider the following statements about Binary Search Trees.$\text{S1}:$ The largest value of a BST is the last value in the list produced by an inorder traversal. $\text...
Prasanna___S
260
views
answered
2 days
ago
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-225
goclasses-cs-dpp
goclasses-cs-dpp-day-323
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-search-tree
+
–
8
8 votes
4
answers
4 answers
13.6k
13.6k views
ISRO CSE 2016 | Question: 30
A complete binary tree with $n$ non-leaf nodes contains$\log_{2}n$ nodes$n+1$ nodes$2n$ nodes$2n+1$ nodes
Neela_Avinashh
13.6k
views
commented
2 days
ago
Data Structures
data-structures
binary-tree
isro2016
+
–
9
9 votes
3
3 answers
279
279 views
GO Classes DPP | GATE CS | Data Structures | Find Middle Node
Consider the problem of finding the middle node in a list $l$ of size $n$, given that $n$ is odd. Count the number of accesses to positions of list $l$ needed to find the...
Prasanna___S
279
views
answered
2 days
ago
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-314
data-structures
goclasses-ds-practice-questions
linked-list
+
–
34
34 votes
6
6 answers
19.2k
19.2k views
GATE CSE 2023 | Question: 37
Consider the $\text{C}$ function $\text{foo}$ and the binary tree shown.typedef struct node { int val; struct node *left, *right; } node; int foo(node *p) { int retval; i...
Aman2028
19.2k
views
commented
2 days
ago
Data Structures
gatecse-2023
data-structures
binary-tree
two-marks
+
–
154
154 votes
10
answers
10 answers
39.2k
39.2k views
GATE CSE 2002 | Question: 2.12
A weight-balanced tree is a binary tree in which for each node, the number of nodes in the left sub tree is at least half and at most twice the number of nodes in the rig...
P_Sri_ManiKanta
39.2k
views
commented
3 days
ago
Data Structures
gatecse-2002
data-structures
binary-tree
normal
+
–
117
117 votes
10
answers
10 answers
42.1k
42.1k views
GATE IT 2006 | Question: 50
Which one of the choices given below would be printed when the following program is executed?#include <stdio.h void swap (int *x, int *y) { static int *temp; temp = x; x ...
Aman2028
42.1k
views
answered
4 days
ago
Programming in C
gateit-2006
programming
programming-in-c
normal
parameter-passing
+
–
9
9 votes
6
6 answers
2.1k
2.1k views
GATE CSE 2026 | Set 1 | Question: 29
Consider the following code snippet in C language that computes the number of nodes in a non-empty singly linked list pointed to by the pointer variable head.struct node{...
B O B
2.1k
views
commented
5 days
ago
Data Structures
gatecse-2026-set1
data-structures
two-marks
linked-list
+
–
162
162 votes
11
answers
11 answers
45.1k
45.1k views
GATE CSE 2017 | Set 1 | Question: 53
Consider the following C program.#include<stdio.h #include<string.h void printlength(char *s, char *t) { unsigned int c=0; int len = ((strlen(s) - strlen(t)) c) ? strlen...
Parikhit_Kurmi
45.1k
views
commented
6 days
ago
Programming in C
gatecse-2017-set1
programming
programming-in-c
normal
numerical-answers
+
–
259
259 votes
22
answers
22 answers
79.0k
79.0k views
GATE CSE 2016 | Set 2 | Question: 40
The number of ways in which the numbers $1, 2, 3, 4, 5, 6, 7$ can be inserted in an empty binary search tree, such that the resulting tree has height $6$, is _________.No...
Skyler_30
79.0k
views
commented
6 days
ago
Data Structures
gatecse-2016-set2
data-structures
binary-search-tree
normal
numerical-answers
+
–
1
1 vote
0
0 answers
63
63 views
What's the answer?
panchalte713
63
views
asked
6 days
ago
Programming in Python
+
–
38
38 votes
8
8 answers
14.0k
14.0k views
GATE CSE 2025 | Set 1 | Question: 52
Let $\mathrm{LIST}$ be a datatype for an implementation of linked list defined as follows:typedef struct list { int data; struct list *next; } LIST;Suppose a program has ...
Snehal Banerjee
14.0k
views
answered
6 days
ago
Data Structures
gatecse2025-set1
data-structures
linked-list
numerical-answers
two-marks
+
–
110
110 votes
12
answers
12 answers
44.6k
44.6k views
GATE CSE 2019 | Question: 27
Consider the following C program:#include <stdio.h int r() { static int num=7; return num ; } int main() { for (r();r();r()) printf(“%d”,r()); return 0; }Which one of the...
Baki Hanma
44.6k
views
answered
6 days
ago
Programming in C
gatecse-2019
programming-in-c
programming
two-marks
+
–
86
86 votes
5
answers
5 answers
20.7k
20.7k views
GATE CSE 2016 | Set 1 | Question: 12
Consider the following "C" program.void f(int, short); void main() { int i = 100; short s = 12; short *p = &s; ____________; // call to f() } Which one of the following e...
Divyansh_Gupta
20.7k
views
answered
6 days
ago
Programming in C
gatecse-2016-set1
programming-in-c
easy
+
–
To see more, click for all the
questions in this category
.