Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Profile
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Recent activity by mahendrapatel
9
answers
1
GATE CSE 2001 | Question: 2.1
How many $4$-digit even numbers have all $4$ digits distinct? $2240$ $2296$ $2620$ $4536$
How many $4$-digit even numbers have all $4$ digits distinct?$2240$$2296$$2620$$4536$
12.7k
views
commented
Mar 13, 2023
Combinatory
gatecse-2001
combinatory
normal
+
–
14
answers
2
GATE CSE 2014 Set 1 | Question: 49
A pennant is a sequence of numbers, each number being $1$ or $2$. An $n-$pennant is a sequence of numbers with sum equal to $n$. For example, $(1,1,2)$ is a $4-$pennant. The set of all possible $1-$pennants is ${(1)}$, the set of all possible ... $(1,2)$ is not the same as the pennant $(2,1)$. The number of $10-$pennants is________
A pennant is a sequence of numbers, each number being $1$ or $2$. An $n-$pennant is a sequence of numbers with sum equal to $n$. For example, $(1,1,2)$ is a $4-$pennant. ...
11.5k
views
commented
Mar 12, 2023
Combinatory
gatecse-2014-set1
combinatory
numerical-answers
normal
+
–
0
answers
3
GATE 2023 - Career advice based on low score
Hello everyone. My expected marks (as per GO Rank Predictor) is 40.33. These are few cases/conditions in case of me: I am a female candidate belonging to EWS Category. I am from CS / IT branch. I don't want to give IIIT or any ... field is highly appreciated. Please help me. Thanks for reading. :) Note: Please don't give any advice like taking a drop.
Hello everyone. My expected marks (as per GO Rank Predictor) is 40.33. These are few cases/conditions in case of me:I am a female candidate belonging to EWS Category.I am...
2.7k
views
commented
Feb 20, 2023
Job Queries
job
admissions
career-advice
+
–
1
answer
4
ISRO CS 2018
#include <stdio.h> int main() { int i,j,x; scanf("%d ",x); i=1; j=1; while(i<10){ j=j*i; i=i+1; if(i==x) break; } return 0; }
#include <stdio.h int main() {int i,j,x;scanf("%d ",x);i=1;j=1;while(i<10){j=j*i;i=i+1;if(i==x) break;}return 0;}
618
views
commented
Feb 20, 2023
Programming in C
isro2018
programming-in-c
+
–
7
answers
5
GATE CSE 2015 Set 1 | Question: 22
Which of the following fields of an IP header is NOT modified by a typical IP router? Check sum Source address Time to Live (TTL) Length
Which of the following fields of an IP header is NOT modified by a typical IP router?Check sumSource addressTime to Live (TTL)Length
10.2k
views
commented
Feb 18, 2023
Computer Networks
gatecse-2015-set1
computer-networks
ip-packet
easy
+
–
1
answer
6
Made Easy test series
answer given is 33
answer given is 33
537
views
answered
Feb 8, 2023
Programming in C
programming-in-c
output
made-easy-test-series
+
–
1
answer
7
Preparation related advise
What are the preparation related mistakes that should be avoided strictly for a repeater?
What are the preparation related mistakes that should be avoided strictly for a repeater?
378
views
commented
Feb 8, 2023
GATE
gate-preparation
+
–
3
answers
8
GATE2016 CE-2: GA-8
Fact 1: Humans are mammals. Fact 2: Some humans are engineers. Fact 3: Engineers build houses. If the above statements are facts, which of the following can be logically inferred? I. All mammals build houses. II. Engineers are mammals. III. Some humans are not engineers. II only. III only. I, II and III. I only.
Fact 1: Humans are mammals.Fact 2: Some humans are engineers.Fact 3: Engineers build houses.If the above statements are facts, which of the following can be logically inf...
4.7k
views
commented
Jan 29, 2023
Analytical Aptitude
gate2016-ce-2
analytical-aptitude
logical-reasoning
statements-follow
+
–
3
answers
9
Digital Logic: Gate2016 ECE
The delays of NOR gates, Multiplexer and Inverters are 2ns, 1.5ns and 1ns respectively. If all the inputs P, Q, R, S and T are applied at the same time instant, Then the Maximum propagation delay (in ns) of the circuit is _______________
The delays of NOR gates, Multiplexer and Inverters are 2ns, 1.5ns and 1ns respectively.If all the inputs P, Q, R, S and T are applied at the same time instant, Then the M...
6.9k
views
commented
Jan 28, 2023
Digital Logic
multiplexer
gate-ece
digital-logic
+
–
9
answers
10
GATE CSE 2019 | Question: 22
Two numbers are chosen independently and uniformly at random from the set $\{1,2,\ldots,13\}.$ The probability (rounded off to $3$ decimal places) that their $4\text{-bit}$ (unsigned) binary representations have the same most significant bit is ___________.
Two numbers are chosen independently and uniformly at random from the set $\{1,2,\ldots,13\}.$The probability (rounded off to $3$ decimal places) that their $4\text{-bit}...
20.0k
views
commented
Jan 28, 2023
Digital Logic
gatecse-2019
numerical-answers
digital-logic
number-representation
probability
1-mark
+
–
2
answers
11
GATE IT 2007 | Question: 38
The following expression was to be realized using $2$-input AND and OR gates. However, during the fabrication all $2$-input AND gates were mistakenly substituted by $2$-input NAND gates. $(a.b).c + (a'.c).d + (b.c).d + a. d$ What is the function finally ... $a' + b' + c' + d'$ $a' + b + c' + d'$ $a' + b' + c + d'$
The following expression was to be realized using $2$-input AND and OR gates. However, during the fabrication all $2$-input AND gates were mistakenly substituted by $2$-i...
6.3k
views
commented
Jan 27, 2023
Digital Logic
gateit-2007
digital-logic
circuit-output
normal
+
–
5
answers
12
GATE CSE 1990 | Question: 3-i
Choose the correct alternatives (More than one may be correct). Two NAND gates having open collector outputs are tied together as shown in below figure. The logic function $Y,$ implemented by the circuit is, $Y=ABC + DE$ $Y=\overline{ABC + DE}$ $Y=ABC.DE$ $Y=\overline{ABC.DE}$
Choose the correct alternatives (More than one may be correct).Two NAND gates having open collector outputs are tied together as shown in below figure.The logic function ...
7.4k
views
commented
Jan 27, 2023
Digital Logic
gate1990
normal
digital-logic
circuit-output
+
–
7
answers
13
GATE CSE 2015 Set 3 | Question: 43
The total number of prime implicants of the function $f(w, x, y, z) = \sum (0, 2, 4, 5, 6, 10)$ is __________
The total number of prime implicants of the function $f(w, x, y, z) = \sum (0, 2, 4, 5, 6, 10)$ is __________
18.4k
views
commented
Jan 27, 2023
Digital Logic
gatecse-2015-set3
digital-logic
canonical-normal-form
normal
numerical-answers
+
–
4
answers
14
GATE CSE 2002 | Question: 2-1
Consider the following logic circuit whose inputs are functions $f_1, f_2, f_3$ and output is $f$ Given that $f_1(x,y,z) = \Sigma (0,1,3,5)$ $f_2(x,y,z) = \Sigma (6,7),$ and $f(x,y,z) = \Sigma (1,4,5).$ $f_3$ is $\Sigma (1,4,5)$ $\Sigma (6,7)$ $\Sigma (0,1,3,5)$ None of the above
Consider the following logic circuit whose inputs are functions $f_1, f_2, f_3$ and output is $f$Given that$f_1(x,y,z) = \Sigma (0,1,3,5)$$f_2(x,y,z) = \Sigma (6,7),$ and...
14.5k
views
commented
Jan 27, 2023
Digital Logic
gatecse-2002
digital-logic
normal
canonical-normal-form
circuit-output
+
–
10
answers
15
GATE CSE 2016 Set 2 | Question: 08
Let, $x_{1} ⊕ x_{2} ⊕ x_{3} ⊕ x_{4}= 0$ where $x_{1}, x_{2}, x_{3}, x_{4}$ are Boolean variables, and $⊕$ is the XOR operator. Which one of the following must always be TRUE? $x_{1}x_{2}x_{3}x_{4} = 0$ $x_{1}x_{3} + x_{2} = 0$ $\bar{x}_{1} ⊕ \bar{x}_{3} = \bar{x}_{2} ⊕ \bar{x}_{4}$ $x_{1} + x_{2} + x_{3} + x_{4} = 0$
Let, $x_{1} ⊕ x_{2} ⊕ x_{3} ⊕ x_{4}= 0$ where $x_{1}, x_{2}, x_{3}, x_{4}$ are Boolean variables, and $⊕$ is the XOR operator.Which one of the following must alwa...
13.5k
views
commented
Jan 26, 2023
Digital Logic
gatecse-2016-set2
digital-logic
boolean-algebra
normal
+
–
3
answers
16
GATE CSE 2012 | Question: 6
The truth table ${\begin{array}{|c|c|c|}\hline \textbf{X}& \textbf{Y}& \textbf{(X,Y)} \\\hline 0& 0& 0 \\ \hline 0& 1&0\\ \hline 1& 0& 1 \\\hline 1& 1& 1 \\\hline \end{array}}$ represents the Boolean function $X$ $X + Y$ $X \oplus Y$ $Y$
The truth table ${\begin{array}{|c|c|c|}\hline\textbf{X}& \textbf{Y}& \textbf{(X,Y)} \\\hline0& 0& 0 \\ \hline 0& 1&0\\ \hline1& 0& 1 \\\hline1&...
4.3k
views
commented
Jan 26, 2023
Digital Logic
gatecse-2012
digital-logic
easy
boolean-algebra
+
–
3
answers
17
GATE CSE 2017 Set 2 | Question: 34
Consider the binary code that consists of only four valid codewords as given below: $00000, 01011, 10101, 11110$ Let the minimum Hamming distance of the code $p$ and the maximum number of erroneous bits that can be corrected by the code be $q$. Then the values of $p$ and $q$ are $p=3$ and $q=1$ $p=3$ and $q=2$ $p=4$ and $q=1$ $p=4$ and $q=2$
Consider the binary code that consists of only four valid codewords as given below:$00000, 01011, 10101, 11110$Let the minimum Hamming distance of the code $p$ and the ma...
15.5k
views
commented
Jan 26, 2023
Computer Networks
gatecse-2017-set2
computer-networks
error-detection
+
–
7
answers
18
GATE CSE 2003 | Question: 28
Which of the following functionality must be implemented by a transport protocol over and above the network protocol? Recovery from packet losses Detection of duplicate packets Packet delivery in the correct order End to end connectivity
Which of the following functionality must be implemented by a transport protocol over and above the network protocol?Recovery from packet lossesDetection of duplicate pac...
14.2k
views
commented
Jan 26, 2023
Computer Networks
gatecse-2003
computer-networks
network-layering
easy
+
–
6
answers
19
GATE IT 2004 | Question: 87
A TCP message consisting of $2100$ $bytes$ is passed to IP for delivery across two networks. The first network can carry a maximum payload of $1200$ $bytes$ per frame and the second network can carry a maximum payload of $400$ $bytes$ per frame, excluding ... second network for this transmission? $\text{40 bytes}$ $\text{80 bytes}$ $\text{120 bytes}$ $\text{160 bytes}$
A TCP message consisting of $2100$ $bytes$ is passed to IP for delivery across two networks. The first network can carry a maximum payload of $1200$ $bytes$ per frame an...
19.4k
views
commented
Jan 26, 2023
Computer Networks
gateit-2004
computer-networks
network-flow
normal
+
–
1
answer
20
Programming
Someone please explain. Function of ‘^’
Someone please explain. Function of ‘^’
274
views
answered
Jan 25, 2023
Programming in C
programming-in-c
made-easy-test-series
+
–
6
answers
21
GATE CSE 2015 Set 1 | Question: 35
What is the output of the following C code? Assume that the address of $x$ is $2000$ (in decimal) and an integer requires four bytes of memory. int main () { unsigned int x [4] [3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, 11, 12}}; printf ("%u, %u, %u", x + 3, *(x + 3), *(x + 2) + 3); } $2036, 2036, 2036$ $2012, 4, 2204$ $2036, 10, 10$ $2012, 4, 6$
What is the output of the following C code? Assume that the address of $x$ is $2000$ (in decimal) and an integer requires four bytes of memory.int main () { unsigned int ...
28.1k
views
answered
Jan 25, 2023
Programming in C
gatecse-2015-set1
programming
programming-in-c
array
normal
+
–
4
answers
22
GATE IT 2008 | Question: 50
Consider the C program below. What does it print? # include <stdio.h> # define swapl (a, b) tmp = a; a = b; b = tmp void swap2 ( int a, int b) { int tmp; tmp = a; a = b; b = tmp; } void swap3 (int*a, int*b) { int tmp; tmp = *a; *a = *b; *b ... (num1 > = num2) {swap3 (&num1, &num2);} printf ("%d, %d", num1, num2); } $5, 5$ $5, 4$ $4, 5$ $4, 4$
Consider the C program below. What does it print?# include <stdio.h # define swapl (a, b) tmp = a; a = b; b = tmp void swap2 ( int a, int b) { int tmp; tmp = a; a = b; b ...
10.5k
views
commented
Jan 25, 2023
Programming in C
gateit-2008
programming
programming-in-c
easy
parameter-passing
+
–
3
answers
23
GATE CSE 2000 | Question: 1.12
The most appropriate matching for the following pairs ... $X - 3 \ \ Y - 2 \ \ Z - 1$ $X - 3 \ \ Y - 1 \ \ Z - 2$
The most appropriate matching for the following pairs$$\begin{array}{|ll|ll|}\hline X: & \text{m = malloc(5); m = NULL;} & 1: & \text{using dangling pointers} \\\hline Y...
11.9k
views
commented
Jan 25, 2023
Programming in C
gatecse-2000
programming
programming-in-c
easy
match-the-following
pointers
+
–
6
answers
24
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 = y; y = temp; } void printab () { static int i, a = -3, b = -6; i = 0; while (i <= 4) { if ((i++)%2 == 1 ... $a = 12, b = 9$ $a = 3, b = 6$ $a = 3, b = 6$ $a = 6, b = 3$ $a = 15, b = 12$
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 ...
25.6k
views
commented
Jan 24, 2023
Programming in C
gateit-2006
programming
programming-in-c
normal
parameter-passing
+
–
3
answers
25
GATE CSE 2010 | Question: 11
What does the following program print? #include<stdio.h> void f(int *p, int *q) { p=q; *p=2; } int i=0, j=1; int main() { f(&i, &j); printf("%d %d\n", i,j); return 0; } $2 \ 2$ $2 \ 1$ $0 \ 1$ $0 \ 2$
What does the following program print?#include<stdio.h void f(int *p, int *q) { p=q; *p=2; } int i=0, j=1; int main() { f(&i, &j); printf("%d %d\n", i,j); return 0; }$2 \...
9.7k
views
commented
Jan 24, 2023
Programming in C
gatecse-2010
programming
programming-in-c
easy
parameter-passing
+
–
4
answers
26
GATE CSE 2008 | Question: 60
What is printed by the following C program? int f(int x, int *py, int **ppz) { int y, z; **ppz += 1; z = **ppz; // corrected z = *ppz; to z = **ppz; *py += 2; y = *py; x += 3; return x+y+z; } void main() { int c, *b, **a; c = 4; b = &c; a = &b; printf("%d", f(c, b, a)); } $18$ $19$ $21$ $22$
What is printed by the following C program?int f(int x, int *py, int ppz) { int y, z; ppz += 1; z = ppz; // corrected z = *ppz; to z = ppz; *py += 2; y = *py; x += 3;...
17.9k
views
commented
Jan 24, 2023
Programming in C
gatecse-2008
programming
programming-in-c
normal
parameter-passing
+
–
4
answers
27
GATE CSE 2003 | Question: 2
Assume the following C variable declaration: int *A[10], B[10][10]; Of the following expressions: $A[2]$ $A[2][3]$ $B[1]$ $B[2][3]$ which will not give compile-time errors if used as left hand sides of assignment statements in a C program? I, II, and IV only II, III, and IV only II and IV only IV only
Assume the following C variable declaration:int *A[10], B[10][10];Of the following expressions:$A $$A [3]$$B $$B [3]$which will not give compile-time errors if used as le...
30.1k
views
commented
Jan 24, 2023
Programming in C
gatecse-2003
programming
programming-in-c
easy
pointers
+
–
3
answers
28
GATE IT 2008 | Question: 51
Consider the C program given below. What does it print? #include <stdio.h> int main () { int i, j; int a [8] = {1, 2, 3, 4, 5, 6, 7, 8}; for(i = 0; i < 3; i++) { a[i] = a[i] + 1; i++; } i--; for (j = 7; j > 4; j--) { int i = j/2; a[i] = a[i] - 1; } printf ("%d, %d", i, a[i]); } $2, 3$ $2, 4$ $3, 2$ $3, 3$
Consider the C program given below. What does it print?#include <stdio.h int main () { int i, j; int a [8] = {1, 2, 3, 4, 5, 6, 7, 8}; for(i = 0; i < 3; i++) { a[i] = a[i...
15.0k
views
commented
Jan 24, 2023
Programming in C
gateit-2008
programming
programming-in-c
normal
array
+
–
5
answers
29
GATE IT 2004 | Question: 27
A host is connected to a Department network which is part of a University network. The University network, in turn, is part of the Internet. The largest network in which the Ethernet address of the host is unique is the subnet to which the host belongs the Department network the University network the Internet
A host is connected to a Department network which is part of a University network. The University network, in turn, is part of the Internet. The largest network in which ...
13.6k
views
commented
Jan 23, 2023
Computer Networks
gateit-2004
computer-networks
lan-technologies
ethernet
normal
+
–
3
answers
30
GATE CSE 2004 | Question: 56
Consider three IP networks $A, B$ and $C$. Host $H_A$ in network $A$ sends messages each containing $180$ bytes of application data to a host $H_C$ in network $C$. The $\text{TCP}$ layer prefixes $20$ byte header to the message. This passes ... $200$ $220$ $240$ $260$
Consider three IP networks $A, B$ and $C$. Host $H_A$ in network $A$ sends messages each containing $180$ bytes of application data to a host $H_C$ in network $C$. The $\...
23.1k
views
commented
Jan 23, 2023
Computer Networks
gatecse-2004
computer-networks
ip-addressing
tcp
normal
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register