Webpage

$$\small{\overset{{\large{\textbf{Mark Distribution in Previous GATE}}}}{\begin{array}{|c|c|c|c|c|c|c|c|}\hline \textbf{Year}&\textbf{2019}&\textbf{2018}&\textbf{2017-1}&\textbf{2017-2}&\textbf{2016-1}&\textbf{2016-2}&\textbf{Minimum}&\textbf{Average}&\textbf{Maximum} \\\hline\textbf{1 Mark Count}&2&2&1&2&2&1&1&1.7&2 \\\hline\textbf{2 Marks Count}&3&3&4&4&2&2&2&3&4 \\\hline\textbf{Total Marks}&8&8&9&10&6&5&\bf{5}&\bf{8}&\bf{10}\\\hline \end{array}}}$$

# Recent questions in Programming

1
If there is negative edge cycle then dijkstra algorithm will give correct path or not same thing about bellman ford also? Bellman ford always halts or not?
2
void foo(int n) { if(n==1) printf("#"); for(i=0;i<n;i++) foo(n-1); } Number of time # will be printed , when foo(7) is called_________
3
maximum and minimum height of the avl tree with 42 node
4
What is the exact definition of full and complete binary tree? And what is the relation between them.
5
formule for 1.number of binary tree 2.number of binary search tree 3.number labeled binary tree 4.number of unlabeled binary tree
1 vote
6
Consider the following C program: Which of the following represents output of above C program? A)1, 0 B)2, 0 C)1, 1 D)2, 1
1 vote
7
what is the output???? and how it internally converted to int when we are printing with %d format specifier?? when i run in my ide i got 50 as output and i donn’t know how it came? can anyone explain how 50 came #include <stdio.h> int main() { char a = '12'; printf("%d", a); return 0; }
8
Ouput please explain 2nd and 3rd Output.
9
T(n)=sqrt(n).T(sqrt(n))+cn for n>2 with some positive constant c and T(2)=1
1 vote
10
11
what is the output of the following programming???? and am confusing is unsigned int stores signed integer, and what is ~ ' this symbol ?? and what happened when assigning ~0' to y????? and what will be printed when x,y are printing and how ? can anyone tell me how it happened ..Thankyou .. ... (x == y) printf("same"); else printf("not same"); printf("\n x is %u, y is %u", x, y); return 0; }
12
plz explain in detail with the example
13
in the soln how they are taking i?
14
why this program given run time error #include<stdio.h> int main ( ) { int x = 2, y = 5; if (x < y) return (x = x+y); else printf(“%d “,x); printf(“%d”,y); } https://ideone.com/AqYv40
15
Consider the following function. Void gradeup(int n) { enqueue(Q,0); enqueue(Q,1); for (i=0;i<n;i++) { x = dequeue(Q); y = dequeue(Q); enqueue(O,y); enqueue(Q+x+y); print(x); } } What is the functionality of above function gradeup? A Prints numbers from 0 to n-1 B Prints number from n-1 to 0 C Prints first n fibboacci numbers D Prints first n fibbonacci number in reverse order
16
here ans given is 5 and 20 but when we subtract two pointer we need to divide by data type size.here int is 4 byte.Hence ans should have been (5-1)/4 .For second part,on type casting the soln given in geeks is 5*(size of int)/size of char.This is how they arrived at 20.how?
17
what is the reason…..?for error..