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
Answers by IamRishabh
1
votes
1
What is the output || Single linked list ?
struct node{ int num; struct node *next; } void print(struct node *ptr) { if(ptr) { printf("%d",ptr->data); do{ printf("%d",ptr->data); } while(ptr->next); } } What is the output, if a $SLL : 1\rightarrow 2\rightarrow 3\rightarrow 4\rightarrow 5$ is passed in the above $C$ code ? Assume Head pointer at Node $1$
struct node{ int num; struct node *next; } void print(struct node *ptr) { if(ptr) { printf("%d",ptr->data); do{ printf("%d",ptr->data); } while(ptr->next); } }What is the...
1.5k
views
answered
Jul 18, 2017
DS
linked-list
data-structures
programming-in-c
output
+
–
1
votes
2
sum of n terms
find sum of n terms 1^2 - 2^2 + 3^2 - 4^2 + 5^2 - 6^2 + ................... can anyone explain me this how to solve this
find sum of n terms 1^2 - 2^2 + 3^2 - 4^2 + 5^2 - 6^2 + ................... can anyone explain me this how to solve this
290
views
answered
Jul 17, 2017
1
votes
3
#made easy
consider two hosts A and B . The speed of propagation delay between these two end systems is 20 milliseconds. hannel transmission rate is 1 Mbps. packet size is 500 bytes 1. If Stop N wait protocol is used then what will be throughput of the sender (ignore transmission time of ACK ... 14% c. 17% d. 21% 2. what is throughput of sender ? a. 110 kbps b. 166.67kbps c. 179.5kbps d.144.8kbps
consider two hosts A and B . The speed of propagation delay between these two end systems is 20 milliseconds. hannel transmission rate is 1 Mbps. packet size is 500 bytes...
366
views
answered
Mar 31, 2017
1
votes
4
Matching time complexities
740
views
answered
Feb 3, 2017
Algorithms
time-complexity
algorithms
recurrence-relation
match-the-following
+
–
0
votes
5
linearalgebra
if $A = \begin{bmatrix} 2 &3 &4 \\ 3 & -1 &2 \\ -1& 4 & 5 \end{bmatrix}$ then rank of the matrix $(A-A^T)$ is _____ (A) $1$ (B) $2$ (C) $3$ (D) $0$
if $A = \begin{bmatrix} 2 &3 &4 \\ 3 & -1 &2 \\ -1& 4 & 5 \end{bmatrix}$ then rank of the matrix $(A-A^T)$ is _____(A) $1$ (B) $2$ (C...
877
views
answered
Jan 29, 2017
Linear Algebra
matrix
linear-algebra
+
–
3
votes
6
Virtual Gate Test Series: Computer Networks - Sliding Window
What is send as ack in sliding window? The next packet which the sender want to received or the packet right now sender received? I think the sender send the ack as the packet it has got right now. ? In sliding window protocol, sender's window size is ... $(B)$ Frame $n-1$ $(C)$ Frames $0$ to $n$ $(D)$ Frames $0$ to $n-1$
What is send as ack in sliding window? The next packet which the sender want to received or the packet right now sender received?I think the sender send the ack as the pa...
1.3k
views
answered
Jan 26, 2017
Computer Networks
computer-networks
sliding-window
virtual-gate-test-series
+
–
2
votes
7
Fragmentation Ipv4-Ipv6
True or false - 1. In Ipv4 fragmentation can be done both at Source and intermediate routers. 2. In Ipv6 fragmentation can be done only at Source and not intermediate routers. 3. In both IPv6/4 reassembly is done only at the destination. 4. ... fragmentation done at the Source in Ipv4? Should the 1) be false since segmentation is done and hence fragmentation can be avoided?
True or false -1. In Ipv4 fragmentation can be done both at Source and intermediate routers.2. In Ipv6 fragmentation can be done only at Source and not intermediate route...
2.9k
views
answered
Jan 24, 2017
Computer Networks
computer-networks
fragmentation
network-layering
ip-addressing
ipv6
+
–
0
votes
8
minimum expression
370
views
answered
Jan 22, 2017
Digital Logic
digital-logic
+
–
0
votes
9
combinational circuits
370
views
answered
Jan 22, 2017
1
votes
10
ace mock logic
309
views
answered
Jan 22, 2017
0
votes
11
Using Horner method and Brutef force method what will be the Time Complexity of
Using Horner method and Brute force what will be the Time Complexity of 4x4+7x3-2x2+3x+6
Using Horner method and Brute force what will be the Time Complexity of 4x4+7x3-2x2+3x+6
1.4k
views
answered
Jan 17, 2017
Algorithms
time-complexity
algorithms
+
–
1
votes
12
switch case output in case of expressions
#include int main() { char check = 'a'; switch (check) { case 'a' || 1: printf("Gates "); case 'b' || 2: printf("Quiz "); break; default: printf("GatesQuiz"); } return 0; } (a) Gates (b) Gates Quiz (c) Gates Quiz GatesQuiz (d) Compile-time error
#includeint main(){ char check = 'a';switch (check){case 'a' || 1: printf("Gates ");case 'b' || 2: printf("Quiz ");break;default: printf("GatesQuiz");} return 0; }(a) Gat...
1.7k
views
answered
Jan 13, 2017
Programming in C
programming-in-c
+
–
2
votes
13
hashing
pls explain..
pls explain..
466
views
answered
Jan 13, 2017
0
votes
14
Madeeeasy DE test
Test 2 ques 12
Test 2 ques 12
368
views
answered
Jan 12, 2017
0
votes
15
ACE test
Qus 12. A magnitude comparator consists of inputs A[A3 A2 A1 A0] and B[B3 B2 B1 B0]. The total number of comparisons performed for A>B is ______________
Qus 12. A magnitude comparator consists of inputs A[A3 A2 A1 A0] and B[B3 B2 B1 B0]. The total number of comparisons performed for A>B is ______________
494
views
answered
Jan 12, 2017
1
votes
16
General doubt on calculating the Time complexity for the given Insertion Sort Algorithm in the worst and average case
INSERTION-SORT (A, n) ⊳ A[1 . . n]for (j ← 2 to len(A) ){key ← A[ j];i ← j – 1 ; while (i 0 and A[i] key) { A[...
846
views
answered
Jan 12, 2017
Algorithms
algorithms
time-complexity
sorting
programming-in-c
data-structures
+
–
1
votes
17
OS Test -1
A computer has 20 tape drivers, with n processes competing for them. Each process may need five drivers. What is the maximum value of n for the system to be deadlock free?
A computer has 20 tape drivers, with n processes competing for them. Each process may need five drivers. What is the maximum value of n for the system to be deadlock free...
327
views
answered
Jan 12, 2017
CO and Architecture
test-series
+
–
0
votes
18
If L=(a+b)* and R=a*b*a* then L intersection R=?
We know, here R subset L so by formula R intersection L= R, but for any string R=L( both language are same) R intersection L can be R or L? Correct me!
We know, here R subset L so by formula R intersection L= R, but for any string R=L( both language are same) R intersection L can be R or L?Correct me!
2.9k
views
answered
Jan 12, 2017
Theory of Computation
theory-of-computation
regular-language
set-theory&algebra
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register