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 srestha
0
votes
151
Self-Doubt
194
views
answered
Jun 9, 2018
Algorithms
algorithms
asymptotic-notation
test-series
+
–
3
votes
152
Deadlock
Consider two processes P1 and P2, each needed 3 resources 1, 2 and 3 in a database. If each processes ask them in any order, then the number of ways possible in which system is guaranteed to be deadlock free ________. Given answer is 6. I am getting 12.
Consider two processes P1 and P2, each needed 3 resources 1, 2 and 3 in a database. If each processes ask them in any order, then the number of ways possible in which sy...
5.8k
views
answered
Jun 8, 2018
Operating System
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
153
pipelining
A CPU has five-stage pipeline where each stage takes 1ns, 2ns, 1.5ns, 3ns, 2.5ns. Instruction fetch happens in the first stage of the pipeline. Branch instructions are not overlapped. i.e., the instruction after the branch is not fetched ... one clock cycle. 30% of the instructions are conditional branches. Find the average execution time of the program for 1200 instructions is ________
A CPU has five-stage pipeline where each stage takes 1ns, 2ns, 1.5ns, 3ns, 2.5ns. Instruction fetch happens in the first stage of the pipeline. Branch instructions are no...
1.2k
views
answered
Jun 7, 2018
1
votes
154
What is the relation between sender window size and various terms like last acknowledged frame , last sent frame , etc ?
Please explain ques 43 .
1.9k
views
answered
Jun 4, 2018
Computer Networks
computer-networks
+
–
1
votes
155
Compiler design
640
views
answered
Jun 1, 2018
Compiler Design
compiler-design
parsing
test-series
+
–
1
votes
156
Made easy test
Consider the rank of matrix $'A'$ of size $(m \times n)$ is $"m-1"$. Then, which of the following is true? $AA^T$ will be invertible. $A$ have $"m-1"$ linearly independent rows and $"m-1"$ ... $"n"$ linearly independent columns. $A$ will have $"m-1"$ linearly independent rows and $"n-1"$ independent columns.
Consider the rank of matrix $'A'$ of size $(m \times n)$ is $"m-1"$. Then, which of the following is true?$AA^T$ will be invertible.$A$ have $"m-1"$ linearly independent ...
1.4k
views
answered
May 31, 2018
Linear Algebra
engineering-mathematics
linear-algebra
matrix
+
–
0
votes
157
# P&C
A mixed doubles tennis game is to be played between two teams (each team consists of one male and one female). There are four married couples. No team is to consist of a husband and his wife. What is the maximum number of games that can be played? GIVEN ANS 42 , ... wife at their correct husband (dearrangement=n ) these are no of teams and total no of games will be nc2 . where am i missing ?
A mixed doubles tennis game is to be played between two teams (each team consists of one male and one female). There are four married couples. No team is to consist of a ...
1.2k
views
answered
May 25, 2018
0
votes
158
GATE CSE 2017 Set 1 | Question: 33
Consider a combination of $\text{T}$ and $\text{D}$ flip-flops connected as shown below. The output of the $\text{D}$ flip-flop is connected to the input of the $\text{T}$ flip-flop and the output of the $\text{T}$ flip-flop is connected to the input of ... $3^{\text{rd}}$ cycle are $01$ and after the $4^{\text{th}}$ cycle are $01$ respectively.
Consider a combination of $\text{T}$ and $\text{D}$ flip-flops connected as shown below. The output of the $\text{D}$ flip-flop is connected to the input of the $\text{T}...
14.7k
views
answered
May 19, 2018
Digital Logic
gatecse-2017-set1
digital-logic
flip-flop
normal
+
–
0
votes
159
kennneth rosen chapter- counting
1. Find the coefficient of $x^{10}$ in the power series. $\left ( 1+x^{2}+x^{4}+x^{6}+x^{8}+.... \right )\left ( 1+x^{4}+x^{8}+x^{12}+.... \right )\left ( 1+x^{6}+x^{12}+x^{18}+.... \right )$ ... ........now not able to proceed. 2.Provide a closed formula for the sequence it determines x2+3x+7+(1/(1-x2))
1. Find the coefficient of $x^{10}$ in the power series.$\left ( 1+x^{2}+x^{4}+x^{6}+x^{8}+.... \right )\left ( 1+x^{4}+x^{8}+x^{12}+.... \right )\left ( 1+x^{6}+x^{12}+x...
927
views
answered
May 18, 2018
Combinatory
generating-functions
+
–
0
votes
160
#cds-sampleTest
One in two hundred people in a population have a particular disease. A test is developed for the disease. The test gives a false positive $3\%$ of the time (i.e. reports that a person has the disease even when he/she does not), and a false ... disease even when he/she does). Rahul takes the test and the report comes positive. What is the probability that Rahul has the disease?
One in two hundred people in a population have a particular disease. A test is developed for the disease. The test gives a false positive $3\%$ of the time (i.e. reports ...
919
views
answered
May 17, 2018
Probability
engineering-mathematics
probability
+
–
4
votes
161
GATE CSE 2014 Set 3 | Question: 47
The value of the integral given below is $\int \limits_0^{\pi} \: x^2 \: \cos x\:dx$ $-2\pi$ $\pi$ $-\pi$ $2\pi$
The value of the integral given below is$$\int \limits_0^{\pi} \: x^2 \: \cos x\:dx$$$-2\pi$$\pi$$-\pi$$2\pi$
8.2k
views
answered
May 17, 2018
Calculus
gatecse-2014-set3
calculus
limits
integration
normal
+
–
2
votes
162
Why b is not decrementing ?
main() { int a = 1; int b = 1; int c = a || b--; printf("a = %d b=%d\n",a,b); return 0; }
main(){int a = 1; int b = 1; int c = a || b ; printf("a = %d b=%d\n",a,b); return 0;}
334
views
answered
May 14, 2018
Programming in C
programming-in-c
+
–
0
votes
163
GATE CSE 2014 Set 2 | Question: 4
If the matrix $A$ is such that $A= \begin{bmatrix} 2\\ −4\\7\end{bmatrix}\begin{bmatrix}1& 9& 5\end{bmatrix}$ then the determinant of $A$ is equal to ______.
If the matrix $A$ is such that $$A= \begin{bmatrix} 2\\ −4\\7\end{bmatrix}\begin{bmatrix}1& 9& 5\end{bmatrix}$$ then the determinant of $A$ is equal to ______.
12.9k
views
answered
May 14, 2018
Linear Algebra
gatecse-2014-set2
linear-algebra
numerical-answers
easy
determinant
+
–
2
votes
164
GATE CSE 2014 Set 1 | Question: 47
A function $f(x)$ is continuous in the interval $[0,2]$. It is known that $f(0) = f(2) = -1$ and $f(1) = 1$. Which one of the following statements must be true? There exists a $y$ in the interval $(0,1)$ such that $f(y) = f(y+1)$ For every $y$ ... the function in the interval $(0,2)$ is $1$ There exists a $y$ in the interval $(0,1)$ such that $f(y)$ = $-f(2-y)$
A function $f(x)$ is continuous in the interval $[0,2]$. It is known that $f(0) = f(2) = -1$ and $f(1) = 1$. Which one of the following statements must be true?There exis...
21.0k
views
answered
May 13, 2018
Calculus
gatecse-2014-set1
calculus
continuity
normal
+
–
1
votes
165
GATE CSE 2011 | Question: 31
Given $i = \sqrt{-1}$, what will be the evaluation of the definite integral $\int \limits_0^{\pi/2} \dfrac{\cos x +i \sin x} {\cos x - i \sin x} dx$ ? $0$ $2$ $-i$ $i$
Given $i = \sqrt{-1}$, what will be the evaluation of the definite integral $\int \limits_0^{\pi/2} \dfrac{\cos x +i \sin x} {\cos x - i \sin x} dx$ ?$0$$2$$-i$$i$
10.9k
views
answered
May 11, 2018
Calculus
gatecse-2011
calculus
integration
normal
+
–
12
votes
166
GATE CSE 2011 | Question: 33
Consider a finite sequence of random values $X=[x_1,x_2,\dots x_n]$. Let $\mu_x$ be the mean and $\sigma_x$ be the standard deviation of $X$. Let another finite sequence $Y$ of equal length be derived from this as $y_i=a*x_i+b$, where $a$ and $b$ are positive ... $Y$ in $Y$ $\mu_y=a \mu_x + b$ $\sigma_y=a \sigma_x + b$
Consider a finite sequence of random values $X=[x_1,x_2,\dots x_n]$. Let $\mu_x$ be the mean and $\sigma_x$ be the standard deviation of $X$. Let another finite sequence ...
8.3k
views
answered
May 11, 2018
Probability
gatecse-2011
probability
random-variable
normal
+
–
5
votes
167
GATE CSE 2017 Set 1 | Question: 3
Let $c_{1}.....c_{n}$ be scalars, not all zero, such that $\sum_{i=1}^{n}c_{i}a_{i}$ = 0 where $a_{i}$ are column vectors in $R^{n}$. Consider the set of linear equations $Ax = b$ ... has a unique solution at $x=J_{n}$ where $J_{n}$ denotes a $n$-dimensional vector of all 1. no solution infinitely many solutions finitely many solutions
Let $c_{1}.....c_{n}$ be scalars, not all zero, such that $\sum_{i=1}^{n}c_{i}a_{i}$ = 0 where $a_{i}$ are column vectors in $R^{n}$.Consider the set of linear equations$...
20.3k
views
answered
May 6, 2018
Linear Algebra
gatecse-2017-set1
linear-algebra
system-of-equations
normal
+
–
15
votes
168
GATE CSE 2018 | Question: 27
Let $N$ be the set of natural numbers. Consider the following sets, $P:$ Set of Rational numbers (positive and negative) $Q:$ Set of functions from $\{0,1\}$ to $N$ $R:$ Set of functions from $N$ to $\{0, 1\}$ $S:$ Set of finite subsets of $N$ Which of the above sets are countable? $Q$ and $S$ only $P$ and $S$ only $P$ and $R$ only $P, Q$ and $S$ only
Let $N$ be the set of natural numbers. Consider the following sets,$P:$ Set of Rational numbers (positive and negative)$Q:$ Set of functions from $\{0,1\}$ to $N$$R:$ Set...
21.9k
views
answered
May 5, 2018
Set Theory & Algebra
gatecse-2018
set-theory&algebra
countable-uncountable-set
normal
2-marks
+
–
0
votes
169
c programming
#include<stdio.h> int main() { char *s[] = {"ice","green","cone","please"}; char **ptr[] = {s+3,s+2,s+1,s}; char ***p = ptr; printf("%s\n",**++p); printf("%s\n",*--*++p + 3); printf( ... %s\n",*p[-2]+3); printf("%s\n",p[-1][-1] + 1); return 0; } Please anyone explain this especially last printf statement.
#include<stdio.h>int main(){ char *s[] = {"ice","green","cone","please"}; char ptr[] = {s+3,s+2,s+1,s}; char *p = ptr; printf("%s\n", ++p); printf("%s\n...
2.1k
views
answered
May 2, 2018
1
votes
170
give cfg for the language
Let $L=\{w \mid w \in (0+1)^+ , N_0(w) \le N_1(w) \le 2N_0(w) \}$,where $N_i(w)$ represents number of $i's$ in string $w$. a) Give a CFG for $L$ b) is Lc = Σ*- L context - free? c) Let $\frac{1}{2}$L = $\{x | ∃y ∈ L , |x| = |y| , x.y ∈ L \}$.is $\frac{1}{2}$L context-free?
Let $L=\{w \mid w \in (0+1)^+ , N_0(w) \le N_1(w) \le 2N_0(w) \}$,where $N_i(w)$ represents number of $i's$ in string $w$.a) Give a CFG for $L$b) is Lc = Σ*- L context...
1.5k
views
answered
Apr 30, 2018
Theory of Computation
context-free-grammar
theory-of-computation
+
–
1
votes
171
gilbert strang Problem Set 2.1
Which of the following descriptions are correct? The solutions x of Ax = $\begin{bmatrix} 1 & 1 & 1\\ 1 & 0 & 2 \end{bmatrix}$ $\begin{bmatrix} x1\\ x2\\ x3 \end{bmatrix}$ = $\begin{bmatrix} 0\\ 0\\ \end{bmatrix}$ form (a) a plane. (b) a line. (c) a point. (d) a subspace. (e) the nullspace of A. (f) the column space of A
Which of the following descriptions are correct? The solutions x ofAx = $\begin{bmatrix} 1 & 1 & 1\\ 1 & 0 & 2 \end{bmatrix}$ $\begin{bmatrix} x1\\ x2\\ x3 \end{bmatrix}$...
3.3k
views
answered
Apr 27, 2018
2
votes
172
TOC Decidability Theory
Which of the following problems is solvable? a) Writing a universal Turing machine b) Determining if an arbitrary Turing machine is a Universal Turing Machine c) Determining if a universal Turing Machine can be written in fewer than k instructions for some k d) Determining if a universal Turing Machine and some input will halt
Which of the following problems is solvable?a) Writing a universal Turing machineb) Determining if an arbitrary Turing machine is a Universal Turing Machinec) Determining...
6.0k
views
answered
Apr 25, 2018
Theory of Computation
decidability
theory-of-computation
turing-machine
+
–
4
votes
173
ISRO2018-66
Of the following sorting algorithms, which has a running time that is least dependent on the initial ordering of the input? Mege Sort Insertion Sort Selection Sort Quick Sort
Of the following sorting algorithms, which has a running time that is least dependent on the initial ordering of the input?Mege SortInsertion SortSelection SortQuick Sort...
5.5k
views
answered
Apr 22, 2018
Algorithms
isro2018
algorithms
sorting
+
–
3
votes
174
ISRO-DEC2017-16
Consider the following query : $SELECT$ E.eno, $COUNT(*)$ $FROM$ Employees E $GROUP\, BY$ E.eno If an index on $eno$ is available, the query can be answered by scanning only the index if the index is only hash and clustered the index is only $B+$ tree and clustered index can be hash or $B+$ tree and clustered or non-clustered index can be hash or $B+$ tree and clustered
Consider the following query :$SELECT$ E.eno, $COUNT(*)$$FROM$ Employees E$GROUP\, BY$ E.enoIf an index on $eno$ is available, the query can be answered by scanning only ...
2.0k
views
answered
Apr 20, 2018
Databases
isrodec2017
+
–
0
votes
175
Probability Practice
Six balls are to be randomly chosen from an urn containing 8 red, 10 green, and 12 blue balls. What is the probability at least one red ball, one blue and one green ball is chosen?
Six balls are to be randomly chosen from an urn containing 8 red, 10 green, and 12 blue balls.What is the probability at least one red ball, one blue and one green ball i...
2.1k
views
answered
Apr 10, 2018
Probability
probability
+
–
1
votes
176
ISRO2009-5
What is the primary purpose of a VLAN? Demonstrating the proper layout for a network Simulating a network To create a virtual private network Segmenting a network inside a switch or device
What is the primary purpose of a VLAN?Demonstrating the proper layout for a networkSimulating a networkTo create a virtual private networkSegmenting a network inside a sw...
6.3k
views
answered
Mar 31, 2018
Computer Networks
isro2009
computer-networks
+
–
1
votes
177
ISI2017-MMA-21
There are four machines and it is known that exactly two of them are faulty. They are tested one by one in a random order till both the faulty machines are identified. The probability that only two tests are required is $\left(\dfrac{1}{2}\right)$ $\left(\dfrac{1}{3}\right)$ $\left(\dfrac{1}{4}\right)$ $\left(\dfrac{1}{6}\right)$
There are four machines and it is known that exactly two of them are faulty. They are tested one by one in a random order till both the faulty machines are identified. Th...
2.8k
views
answered
Mar 28, 2018
Probability
isi2017-mma
engineering-mathematics
probability
+
–
0
votes
178
Peter Linz Edition 4 Exercise 4.3 Question 11 (Page No. 123)
Show that the language $L =$\left \{ a^{n!} : n\geq 1 \right \}$ is not regular using pumping lemma
Show that the language $L =$$\left \{ a^{n!} : n\geq 1 \right \}$ is not regular using pumping lemma
1.1k
views
answered
Mar 20, 2018
Theory of Computation
theory-of-computation
peter-linz
peter-linz-edition4
regular-language
pumping-lemma
+
–
4
votes
179
GATE IT 2007 | Question: 24
A depth-first search is performed on a directed acyclic graph. Let $d[u]$ denote the time at which vertex $u$ is visited for the first time and $f[u]$ the time at which the DFS call to the vertex $u$ terminates. Which of the following statements is always TRUE for all edges $(u, v)$ in the graph ? $d[u] < d[v]$ $d[u] < f[v]$ $f[u] < f[v]$ $f[u] > f[v]$
A depth-first search is performed on a directed acyclic graph. Let $d[u]$ denote the time at which vertex $u$ is visited for the first time and $f[u]$ the time at which t...
13.7k
views
answered
Mar 5, 2018
Algorithms
gateit-2007
algorithms
graph-algorithms
normal
graph-search
depth-first-search
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
10
11
...
36
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register