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
#21
8.4k
views
2
answers
14
votes
GATE CSE 2022 | Question: 33
What is printed by the following $\text{ANSI C}$ program?#include<stdio.h int main (int argc, char *argv[]) { int a[3][3][3] = {{1, 2, 3, 4, 5, 6, 7, 8, 9}, {10, 11, 12, ...
Arjun
8.4k
views
Arjun
asked
Feb 15, 2022
Programming in C
gatecse-2022
programming
programming-in-c
array
output
2-marks
+
–
#22
11.5k
views
1
answers
20
votes
GATE CSE 2022 | Question: 34
What is printed by the following $\text{ANSI C}$ program?#include<stdio.h int main(int argc, char *argv[]) { char a = ‘P’; char b = ‘x’; char c = (a&b) + ‘*’;...
Arjun
11.5k
views
Arjun
asked
Feb 15, 2022
Programming in C
gatecse-2022
programming
programming-in-c
output
2-marks
+
–
#23
19.3k
views
6
answers
34
votes
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...
Arjun
19.3k
views
Arjun
asked
Feb 15, 2022
DS
gatecse-2022
numerical-answers
data-structures
queue
2-marks
+
–
#24
9.2k
views
4
answers
14
votes
GATE CSE 2021 Set 2 | Question: 2
Let $H$ be a binary min-heap consisting of $n$ elements implemented as an array. What is the worst case time complexity of an optimal algorithm to find the...
Arjun
9.2k
views
Arjun
asked
Feb 18, 2021
DS
gatecse-2021-set2
data-structures
binary-heap
time-complexity
1-mark
+
–
#25
30.7k
views
11
answers
40
votes
GATE CSE 2021 Set 2 | Question: 10
Consider the following $\text{ANSI C}$ program.#include <stdio.h int main() { int arr[4][5]; int i, j; for (i=0; i<4; i++) { for (j=0; j<5; j++) { arr[i...
Arjun
30.7k
views
Arjun
asked
Feb 18, 2021
Programming in C
gatecse-2021-set2
programming-in-c
array
output
1-mark
+
–
#26
11.5k
views
3
answers
14
votes
GATE CSE 2021 Set 2 | Question: 16
Consider a complete binary tree with $7$ nodes. Let $A$ denote the set of first $3$ elements obtained by performing Breadth-First Search $\text{(BFS)}$ starting from the ...
Arjun
11.5k
views
Arjun
asked
Feb 18, 2021
DS
gatecse-2021-set2
numerical-answers
data-structures
binary-tree
1-mark
+
–
#27
9.9k
views
2
answers
17
votes
GATE CSE 2021 Set 2 | Question: 35
Consider the following $\text{ANSI C}$ program:#include <stdio.h #include <stdlib.h struct Node{ int value; struct Node *next;}; int main( ) { struct Node *boxE, *head, *...
Arjun
9.9k
views
Arjun
asked
Feb 18, 2021
Programming in C
gatecse-2021-set2
programming-in-c
normal
pointers
structure
2-marks
+
–
#28
17.3k
views
4
answers
33
votes
GATE CSE 2021 Set 1 | Question: 2
Let $P$ be an array containing $n$ integers. Let $t$ be the lowest upper bound on the number of comparisons of the array elements, required to find the min...
Arjun
17.3k
views
Arjun
asked
Feb 18, 2021
DS
gatecse-2021-set1
data-structures
array
1-mark
+
–
#29
12.1k
views
3
answers
19
votes
GATE CSE 2021 Set 1 | Question: 10
A binary search tree $T$ contains $n$ distinct elements. What is the time complexity of picking an element in $T$ that is smaller than the maximum element in $T$?$\Theta(...
Arjun
12.1k
views
Arjun
asked
Feb 18, 2021
DS
gatecse-2021-set1
data-structures
binary-search-tree
time-complexity
1-mark
+
–
#30
8.6k
views
3
answers
10
votes
GATE CSE 2021 Set 1 | Question: 21
Consider the following sequence of operations on an empty stack.$$\textsf{push}(54);\textsf{push}(52);\textsf{pop}();\textsf{push}(55);\textsf{push}(62);\textsf{s}=\texts...
Arjun
8.6k
views
Arjun
asked
Feb 18, 2021
DS
gatecse-2021-set1
data-structures
stack
easy
numerical-answers
1-mark
+
–
#31
9.4k
views
4
answers
19
votes
GATE CSE 2021 Set 1 | Question: 37
Consider the following$\text{ ANSI C}$ program.#include <stdio.h int main() { int i, j, count; count=0; i=0; for (j=-3; j<=3; j++) { if (( j >= 0) && (i++)...
Arjun
9.4k
views
Arjun
asked
Feb 18, 2021
Programming in C
gatecse-2021-set1
programming-in-c
2-marks
+
–
#32
14.3k
views
2
answers
30
votes
GATE CSE 2021 Set 1 | Question: 41
An $articulation$ $point$ in a connected graph is a vertex such that removing the vertex and its incident edges disconnects the graph into two or more connected component...
Arjun
14.3k
views
Arjun
asked
Feb 18, 2021
DS
gatecse-2021-set1
multiple-selects
data-structures
tree
2-marks
+
–
#33
19.2k
views
5
answers
8
votes
GATE CSE 2020 | Question: 5
The preorder traversal of a binary search tree is $15, 10, 12, 11, 20, 18, 16, 19$. Which one of the following is the postorder traversal of the tree?$10,11,12,15,16,18,1...
Arjun
19.2k
views
Arjun
asked
Feb 12, 2020
DS
gatecse-2020
binary-search-tree
1-mark
+
–
#34
14.1k
views
2
answers
27
votes
GATE CSE 2020 | Question: 6
What is the worst case time complexity of inserting $n^{2}$ elements into an AVL-tree with $n$ elements initially?$\Theta (n^{4})$$\Theta (n^{2})$$\Theta (n^{2}\log n)$$\...
Arjun
14.1k
views
Arjun
asked
Feb 12, 2020
DS
gatecse-2020
binary-tree
avl-tree
1-mark
+
–
#35
27.1k
views
9
answers
37
votes
GATE CSE 2020 | Question: 16
What is the worst case time complexity of inserting $n$ elements into an empty linked list, if the linked list needs to be maintained in sorted order?$\Theta(n)$$\Theta(n...
Arjun
27.1k
views
Arjun
asked
Feb 12, 2020
DS
gatecse-2020
linked-list
1-mark
+
–
#36
24.0k
views
2
answers
36
votes
GATE CSE 2020 | Question: 22
Consider the following C program.#include <stdio.h int main () { int a[4] [5] = {{1, 2, 3, 4, 5}, {6, 7,8, 9, 10}, {11, 12, 13, ...
Arjun
24.0k
views
Arjun
asked
Feb 12, 2020
Programming in C
gatecse-2020
numerical-answers
programming-in-c
array
1-mark
+
–
#37
22.5k
views
4
answers
29
votes
GATE CSE 2020 | Question: 41
In a balanced binary search tree with $n$ elements, what is the worst case time complexity of reporting all elements in range $[a,b]$? Assume that the number of reported ...
Arjun
22.5k
views
Arjun
asked
Feb 12, 2020
DS
gatecse-2020
data-structures
binary-search-tree
2-marks
+
–
#38
23.9k
views
3
answers
38
votes
GATE CSE 2020 | Question: 46
Consider the following C functions.int fun1(int n) { static int i= 0; if (n 0) { ++i; fun1(n-1); } return (i); }int fun2(int n) { static int i= ...
Arjun
23.9k
views
Arjun
asked
Feb 12, 2020
Programming in C
gatecse-2020
numerical-answers
programming-in-c
recursion
2-marks
+
–
#39
15.4k
views
6
answers
28
votes
GATE CSE 2020 | Question: 47
Consider the array representation of a binary min-heap containing $1023$ elements. The minimum number of comparisons required to find the maximum in the heap is _________...
Arjun
15.4k
views
Arjun
asked
Feb 12, 2020
DS
gatecse-2020
numerical-answers
binary-heap
2-marks
+
–
#40
9.9k
views
4
answers
13
votes
GATE CSE 2019 | Question: 18
Consider the following C program :#include<stdio.h int jumble(int x, int y){ x = 2*x+y; return x; } int main(){ int x=2, y=5; y=jumble(y,x); x=jumble(y,x); printf("%d \n"...
Arjun
9.9k
views
Arjun
asked
Feb 7, 2019
Programming in C
gatecse-2019
programming-in-c
numerical-answers
identify-function
1-mark
+
–
Page:
« prev
1
2
3
4
5
6
7
...
16
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register