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 Rajatagrawal
5
answers
1
GATE CSE 2023 | Question: 40
Suppose you are asked to design a new reliable byte-stream transport protocol like $\text{TCP}.$ This protocol, named $\textsf{myTCP}$, runs over a $100 \mathrm{~Mbps}$ network with Round Trip Time of $150$ ... lengths of the Sequence Number field in the $\textsf{myTCP}$ header? $30$ bits $32$ bits $34$ bits $36$ bits
Suppose you are asked to design a new reliable byte-stream transport protocol like $\text{TCP}.$ This protocol, named $\textsf{myTCP}$, runs over a $100 \mathrm{~Mbps}$ n...
9.8k
views
answered
Dec 14, 2023
Computer Networks
gatecse-2023
computer-networks
tcp
multiple-selects
2-marks
+
–
6
answers
2
GATE CSE 1996 | Question: 1.13
An advantage of chained hash table (external hashing) over the open addressing scheme is Worst case complexity of search operations is less Space used is less Deletion is easier None of the above
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...
13.8k
views
commented
Nov 29, 2023
DS
gate1996
data-structures
hashing
normal
+
–
5
answers
3
GATE CSE 2019 | Question: 42
The index node (inode) of a Unix -like file system has $12$ direct, one single-indirect and one double-indirect pointers. The disk block size is $4$ kB, and the disk block address is $32$-bits long. The maximum possible file size is (rounded off to $1$ decimal place) ____ GB
The index node (inode) of a Unix -like file system has $12$ direct, one single-indirect and one double-indirect pointers. The disk block size is $4$ kB, and the disk bloc...
23.0k
views
commented
Sep 28, 2023
Operating System
gatecse-2019
numerical-answers
operating-system
file-system
2-marks
+
–
3
answers
4
GATE CSE 1988 | Question: 10iib
Given below is solution for the critical section problem of two processes $P_0$ and $P_1$ ... until false Determine of the above solution is correct. If it is incorrect, demonstrate with an example how it violates the conditions.
Given below is solution for the critical section problem of two processes $P_0$ and $P_1$ sharing the following variables:var flag :array [0..1] of boolean; (initially fa...
4.2k
views
commented
Sep 10, 2023
Operating System
gate1988
descriptive
operating-system
process-synchronization
+
–
5
answers
5
GATE IT 2008 | Question: 53
The following is a code with two threads, producer and consumer, that can run in parallel. Further, $S$ and $Q$ are binary semaphores quipped with the standard $P$ and $V$ operations. semaphore S = 1, Q = 0; integer x; producer: ... lost Values generated and stored in '$x$' by the producer will always be consumed before the producer can generate a new value
The following is a code with two threads, producer and consumer, that can run in parallel. Further, $S$ and $Q$ are binary semaphores quipped with the standard $P$ and $V...
9.8k
views
answered
Sep 7, 2023
Operating System
gateit-2008
operating-system
process-synchronization
normal
+
–
2
answers
6
physics wallah question
$L_1=a^ * b^ *$ $L_2=a^ + b^ +$ Find $L_2-L_1$: A. $a ^ *$ B. $b ^ *$ C. $a ^ * +b^ *$ D. None
$L_1=a^ * b^ *$$L_2=a^ + b^ +$Find $L_2-L_1$:A. $a ^ *$B. $b ^ *$C. $a ^ * +b^ *$D. None
396
views
commented
Aug 26, 2023
Theory of Computation
theory-of-computation
physicswallah
+
–
0
answers
7
Made Easy DFS video Lecture
Caption
Caption
248
views
commented
Aug 26, 2023
Programming in C
programming
+
–
2
answers
8
Very Basic Question
When to convert ‘K’ or ‘M’ as power of 2 vs power of 10? Ex – 4K as $^{2^{12}}$ or 4*10^3?
When to convert ‘K’ or ‘M’ as power of 2 vs power of 10?Ex – 4K as $^{2^{12}}$ or 4*10^3?
254
views
commented
Aug 22, 2023
CO and Architecture
self-doubt
general-topic-doubt
+
–
2
answers
9
Made Easy Book
114
114
351
views
answered
Aug 21, 2023
Theory of Computation
theory-of-computation
+
–
0
answers
10
Are GO Classes good ? Reviews from enrolled students preferred.
How do you rate the classes for those subjects ? I would not be in doubt if there were demo lectures for subjects other than maths.
How do you rate the classes for those subjects ? I would not be in doubt if there were demo lectures for subjects other than maths.
347
views
commented
Aug 21, 2023
Study Resources
gate-preparation
goclasses
query
+
–
2
answers
11
GATE IT 2007 | Question: 32
Consider the following C program: #include <stdio.h> #define EOF -1 void push (int); /* push the argument on the stack */ int pop (void); /* pop the top of the stack */ void flagError (); int main () { int c, m, n, r; while ((c = getchar ()) != EOF) { if ( ... is the output of the program for the following input? $5 \ 2 \ * \ 3 \ 3 \ 2 \ + * +$ $15$ $25$ $30$ $150$
Consider the following C program: #include <stdio.h #define EOF -1 void push (int); /* push the argument on the stack */ int pop (void); /* pop the top of the stack */ vo...
6.9k
views
commented
Aug 7, 2023
DS
gateit-2007
stack
normal
+
–
11
answers
12
GATE CSE 2017 Set 1 | Question: 08
Consider the C code fragment given below. typedef struct node { int data; node* next; } node; void join(node* m, node* n) { node* p = n; while(p->next != NULL) { p = p->next; } p->next = m; } Assuming that m and n ... append list m to the end of list n. cause a null pointer dereference for all inputs. append list n to the end of list m for all inputs.
Consider the C code fragment given below.typedef struct node { int data; node* next; } node; void join(node* m, node* n) { node* p = n; while(p->next != NULL) { p = p->ne...
25.7k
views
commented
Aug 4, 2023
DS
gatecse-2017-set1
data-structures
linked-list
normal
+
–
6
answers
13
GATE CSE 2016 Set 2 | Question: 15
$N$ items are stored in a sorted doubly linked list. For a delete operation, a pointer is provided to the record to be deleted. For a decrease-key operation, a pointer is provided to the record on which the operation is to be performed. An algorithm performs the following operations ... together? $O(\log^{2} N)$ $O(N)$ $O(N^{2})$ $\Theta\left(N^{2}\log N\right)$
$N$ items are stored in a sorted doubly linked list. For a delete operation, a pointer is provided to the record to be deleted. For a decrease-key operation, a pointer is...
34.3k
views
comment edited
Aug 4, 2023
DS
gatecse-2016-set2
data-structures
linked-list
time-complexity
normal
algorithms
+
–
1
answer
14
UGC NET CSE | June 2023 | Part 2: 13
Consider universe positive integer $X=\{1 \leq n \leq 8\}$, proposition $P=$ " $n$ is an even integers", $Q="(3 \leq n \leq 7) \wedge(n \neq 6)$ ". Then truth set of $P$ $\leftrightarrow \mathrm{Q}$ is $\{1,4\}$ $\{2,6\}$ $\{3,4,5\}$ $\{1\}$
Consider universe positive integer $X=\{1 \leq n \leq 8\}$, proposition $P=$ " $n$ is an even integers", $Q="(3 \leq n \leq 7) \wedge(n \neq 6)$ ". Then truth set of $P$ ...
395
views
answered
Jul 31, 2023
Others
ugcnetcse-june2023-paper2
+
–
1
answer
15
UGC NET CSE | June 2023 | Part 2: 1
What is the output of following code? main () struct s1 { char * z; int i; struct s1 * p; } static struct s 1 a []}={ {"Nagpur", 1, a+1} {"Raipur', 2, a+2} {"Kanpur', 3, a} }; struct s 1* ptr =a ... %s\n", a[0].z. ptr $/rightarrow$ z, a [2]. p $/rightarrow$ z;) Nagpur Raipur Kanpur Nagpur Nagpur Nagpur Kanpur Kanpur Kanpur Error
What is the output of following code?main () struct s1 { char * z; int i; struct s1 * p; } static struct s 1 a []}={ {"Nagpur", 1, a+1} {"Raipur', 2, a+2} {"Kanpur', 3, a...
465
views
answered
Jul 31, 2023
Others
ugcnetcse-june2023-paper2
+
–
2
answers
16
UGC NET CSE | June 2023 | Part 2: 8
In a multiuser operating system, $20$ requests are made to use a particular resource per hour, on an average. The probability that no request is made in $45$ minutes is $\mathrm{e}^{-15}$ $\mathrm{e}^{-5}$ $1-\mathrm{e}^{-5}$ $1-\mathrm{e}^{-10}$
In a multiuser operating system, $20$ requests are made to use a particular resource per hour, on an average. The probability that no request is made in $45$ minutes is$\...
212
views
answered
Jul 31, 2023
Others
ugcnetcse-june2023-paper2
+
–
1
answer
17
Arrays, Storage classes
Can an array store elements of different storage classes?
Can an array store elements of different storage classes?
378
views
commented
Jul 20, 2023
Programming in C
array
storage-classes-in-c
+
–
1
answer
18
GO class
sir in this question m should be equal to n without this how rank=n?
sir in this question m should be equal to n without this how rank=n?
382
views
answered
Jul 18, 2023
Linear Algebra
goclasses
engineering-mathematics
+
–
1
answer
19
what will be output and explain how
#include<stdio.h> #include<string.h> #define MAX(x, y) ((x) > (y) ? (x) : (y)) int main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i, j, k); return 0; }
#include<stdio.h #include<string.h #define MAX(x, y) ((x) (y) ? (x) : (y)) int main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i, j, k); return ...
437
views
commented
Jun 25, 2023
Programming in C
macros
programming-in-c
+
–
1
answer
20
let a = {2,4,6,8} suppose b is a set with |b| = 5 what are the smallest and largest possible values of |A*B|
let a = {2,4,6,8} suppose b is a set with |b| = 5 what are the smallest and largest possible values of |A*B|
373
views
answer edited
Jun 11, 2023
Others
discrete-mathematics
set-theory
+
–
0
answers
21
Programming 2024 test series
Caption @sachinmittal1 sir here answer should be B na because Arr[2] point s to the 0th index of 2nd 1D-array so it means pointing to address of arr[2][0] so address size would be 8.
Caption@sachinmittal1 sir here answer should be B na because Arr point s to the 0th index of 2nd 1D-array so it means pointing to address of arr [0] so address size woul...
320
views
commented
Jun 11, 2023
Programming in C
goclasses
+
–
1
answer
22
#Prims Algorithm
208
views
answered
Jun 11, 2023
Algorithms
algorithms
+
–
1
answer
23
UGCNET CSE December 2022: 6
The memory size for $\mathrm{n}$ address lines and $\mathrm{m}$ data lines is given by $2^{\mathrm{m}} \times \mathrm{n}$ $\mathrm{m} \times \mathrm{n}^{2}$ $2^{\mathrm{n}} \times \mathrm{m}$ $\mathrm{n} \times \mathrm{m}^{2}$ (Option $1[39321]) 1$ (Option $2 [39322]) 2$ (Option $3 [39323]) 3$ (Option $4 [39324]) 4$ Answer Given by Candidate : $3$
The memory size for $\mathrm{n}$ address lines and $\mathrm{m}$ data lines is given by$2^{\mathrm{m}} \times \mathrm{n}$$\mathrm{m} \times \mathrm{n}^{2}$$2^{\mathrm{n}} ...
343
views
answered
May 21, 2023
Others
ugcnetcse-dec2022
+
–
1
answer
24
UGCNET CSE December 2022: 4
Consider the following conditional code, which returns a Boolean values if $((x>25) \& \&(y>100))$ return 'false'; else iff $(x \leq 25) \& \& \&(y \leq 100))$ return 'true'; else iff $(x>25)$ $\&\&$ ... $2 [39314]) 2$ (Option $3 [39315]) 3$ (Option $4 [39316]) 4$ Answer Given by Candidate : $4$
Consider the following conditional code, which returns a Boolean valuesif $((x>25) \& \&(y>100))$return 'false';else iff $(x \leq 25) \& \& \&(y \leq 100))$return 'true';...
491
views
answered
May 21, 2023
Others
ugcnetcse-dec2022
+
–
1
answer
25
UGCNET CSE December 2022: 5
Which one of the following types of memory is fastest Cache Memory Register Memory Main Memory Secondary Memory (Option $1 [39317]) 1$ (Option $2 [39318]) 2$ (Option $3 [39319]) 3$ (Option $4 [39320]) 4$ Answer Given by Candidate : $2$
Which one of the following types of memory is fastestCache MemoryRegister MemoryMain MemorySecondary Memory(Option $1 [39317]) 1$(Option $2 [39318]) 2$(Option $3 [39319])...
344
views
answered
May 21, 2023
Others
ugcnetcse-dec2022
+
–
1
answer
26
UGCNET CSE December 2022: 2
A relation '$R$ ' is defined on ordered pairs of integers as: $(x, y) R(u, v)$ if $x<u$ and $y>v$. Then $R$ is Neither a partial order nor an equivalence relation A partial order but not a total order A total order An equivalence relation (Option ... $2 [39306]) 2$ (Option $3 [39307]) 3$ (Option $4 [39308]) 4$ Answer Given by Candidate : $4$
A relation '$R$ ' is defined on ordered pairs of integers as: $(x, y) R(u, v)$ if $x<u$ and $y>v$. Then $R$ isNeither a partial order nor an equivalence relationA partial...
502
views
answered
May 21, 2023
Others
ugcnetcse-dec2022
+
–
2
answers
27
UGCNET CSE December 2022: 1
The negation of "Some students like hockey" is: Some students dislike hockey Every student dislike hockey Every student like hockey All students like hockey (Option $1[39301]) 1$ (Option $2[39302]) 2$ (Option $3 [39303]) 3$ (Option $4[39304]) 4$ Answer Given by Candidate : $2$
The negation of "Some students like hockey" is:Some students dislike hockeyEvery student dislike hockeyEvery student like hockeyAll students like hockey(Option $1[39301])...
1.3k
views
answered
May 21, 2023
Others
ugcnetcse-dec2022
+
–
3
answers
28
C Programming Recursion
#include<stdio.h> void print(int n) { printf("Hello "); if(n++ == 0) return ; print(n); n++; } int main() { void print(); print(-4); } How many times printf execute?? And How ??
#include<stdio.h void print(int n) { printf("Hello "); if(n++ == 0) return ; print(n); n++; } int main() { void print(); print(-4); }How many times printf execute?? And H...
1.2k
views
commented
May 20, 2023
Programming in C
programming-in-c
programming
recursion
+
–
1
answer
29
How can we write a English statement into First order logic? Q. There are At most 100 cubes.
265
views
answered
May 16, 2023
Unknown Category
discrete-mathematics
first-order-logic
+
–
1
answer
30
when CPU needs to access some data does it first check in registers or L1 cache?
184
views
answered
May 14, 2023
CO and Architecture
co-and-architecture
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register