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 once_2019
8
answers
1
GATE CSE 2008 | Question: 63
The $P$ and $V$ operations on counting semaphores, where s is a counting semaphore, are defined as follows: $P(s):$ $s=s-1;$ If $s < 0$ then wait; $V(s):$ $s=s+1;$ If $s \leq0$ then wake up process waiting on s; Assume that $P_b$ and $V_b$ the wait ... $x_b$ and $y_b$ are respectively $0$ and $0$ $0$ and $1$ $1$ and $0$ $1$ and $1$
The $P$ and $V$ operations on counting semaphores, where s is a counting semaphore, are defined as follows:$P(s):$$s=s-1;$If $s < 0$ then wait;$V(s):$$s=s+1;$If $s \leq0$...
23.4k
views
answered
Jun 4, 2020
Operating System
gatecse-2008
operating-system
normal
semaphore
+
–
4
answers
2
GATE CSE 2012 | Question: 36
Consider the program given below, in a block-structured pseudo-language with lexical scoping and nesting of procedures permitted. Program main; Var ... Procedure A1; Var ... Call A2; End A1 Procedure A2; Var ... Procedure A21; Var ... Call ... The correct set of activation records along with their access links is given by:
Consider the program given below, in a block-structured pseudo-language with lexical scoping and nesting of procedures permitted.Program main; Var ... Procedure A1; Var ....
13.2k
views
commented
Jan 30, 2020
Compiler Design
gatecse-2012
compiler-design
runtime-environment
normal
+
–
7
answers
3
GATE CSE 2009 | Question: 47
While opening a $TCP$ connection, the initial sequence number is to be derived using a time-of-day (ToD) clock that keeps running even when the host is down. The low order $32$ bits of the counter of the ToD clock is to be used for the initial sequence numbers ... sequence numbers used for packets of a connection can increase? $0.015$/s $0.064$/s $0.135$/s $0.327$/s
While opening a $TCP$ connection, the initial sequence number is to be derived using a time-of-day (ToD) clock that keeps running even when the host is down. The low orde...
25.9k
views
commented
Jan 29, 2020
Computer Networks
gatecse-2009
computer-networks
tcp
difficult
ambiguous
+
–
3
answers
4
ISRO2007-29
The set of all Equivalence Classes of a set A of Cardinality C is of cardinality $2^c$ have the same cardinality as A forms a partition of A is of cardinality $C^2$
The set of all Equivalence Classes of a set A of Cardinality Cis of cardinality $2^c$have the same cardinality as Aforms a partition of Ais of cardinality $C^2$
16.4k
views
commented
Dec 4, 2019
Set Theory & Algebra
isro2007
set-theory&algebra
equivalence-class
+
–
2
answers
5
ISRO2007-03
The circuit shown in the given figure is a full adder full subtracter shift register decade counter
The circuit shown in the given figure is afull adderfull subtractershift registerdecade counter
6.0k
views
commented
Dec 4, 2019
Digital Logic
isro2007
digital-logic
digital-circuits
adder
+
–
3
answers
6
GATE CSE 2014 Set 1 | Question: 15
Which one of the following is TRUE? The language $L = \left\{a^nb^n \mid n \geq 0\right\}$ is regular. The language $L = \left\{a^n \mid n \text{ is prime }\right\}$ is regular. The language $L$ ... is regular. The language $L = \left\{ww \mid w \in \Sigma^* \text{ with } \Sigma = \left\{0,1\right\}\right\}$ is regular.
Which one of the following is TRUE?The language $L = \left\{a^nb^n \mid n \geq 0\right\}$ is regular.The language $L = \left\{a^n \mid n \text{ is prime }\right\}$ is reg...
9.4k
views
commented
Nov 20, 2019
Theory of Computation
gatecse-2014-set1
theory-of-computation
regular-language
normal
+
–
13
answers
7
GATE CSE 2013 | Question: 9
What is the maximum number of reduce moves that can be taken by a bottom-up parser for a grammar with no epsilon and unit-production (i.e., of type $A \rightarrow \epsilon$ and $A \rightarrow a$) to parse a string with $n$ tokens? $n/2$ $n-1$ $2n-1$ $2^{n}$
What is the maximum number of reduce moves that can be taken by a bottom-up parser for a grammar with no epsilon and unit-production (i.e., of type $A \rightarrow \epsilo...
35.5k
views
commented
Dec 2, 2018
Compiler Design
gatecse-2013
compiler-design
parsing
normal
lr-parser
+
–
0
answers
8
exam query-UPPCL
There is no option for choice of exam city in uppcl form.On what basis they will allocate centers.Any idea ?
There is no option for choice of exam city in uppcl form.On what basis they will allocate centers.Any idea ?
364
views
edited
Nov 28, 2018
2
answers
9
GATE CSE 1987 | Question: 1-xix
Study the following program written in a block-structured language: Var x, y:interger; procedure P(n:interger); begin x:=(n+2)/(n-3); end; procedure Q Var x, y:interger; begin x:=3; y:=4; P(y); Write(x) __(1) end; begin x:=7; y:=8; Q; Write(x); ... marked $(1)$ and $(2)$ in the program if the variables are statically scoped? $3, 6$ $6, 7$ $3, 7$ None of the above.
Study the following program written in a block-structured language:Var x, y:interger; procedure P(n:interger); begin x:=(n+2)/(n-3); end; procedure Q Var x, y:interger; b...
7.4k
views
commented
Nov 21, 2018
Compiler Design
gate1987
compiler-design
variable-scope
runtime-environment
+
–
13
answers
10
GATE CSE 2004 | Question: 82
Let $A[1,\ldots,n]$ be an array storing a bit ($1$ or $0$) at each location, and $f(m)$ is a function whose time complexity is $\Theta(m)$. Consider the following program fragment written in a C like language: counter = 0; for (i=1; i<=n; i++) { if ( ... The complexity of this program fragment is $\Omega(n^2)$ $\Omega (n\log n) \text{ and } O(n^2)$ $\Theta(n)$ $o(n)$
Let $A[1,\ldots,n]$ be an array storing a bit ($1$ or $0$) at each location, and $f(m)$ is a function whose time complexity is $\Theta(m)$. Consider the following program...
20.5k
views
commented
Nov 1, 2018
Algorithms
gatecse-2004
algorithms
time-complexity
normal
+
–
4
answers
11
GATE CSE 2015 Set 3 | Question: 22
Consider the following statements. TCP connections are full duplex TCP has no option for selective acknowledgement TCP connections are message streams Only I is correct Only I and III are correct Only II and III are correct All of I, II and III are correct
Consider the following statements.TCP connections are full duplexTCP has no option for selective acknowledgementTCP connections are message streamsOnly I is correctOnly I...
12.5k
views
commented
Oct 13, 2018
Computer Networks
gatecse-2015-set3
computer-networks
tcp
normal
+
–
0
answers
12
how long does it take for a bit to travel from the beginning to the end of the network?
Suppose the length of a 10Base5 cable is 2500 m. If the speed of propagation in a thick coaxial cable is 200,000,000 m/s, how long does it take for a bit to travel from the beginning to the end of the network? ... 500 meters? A. 26.5 micro seconds B. 52.5 microseconds C. 47.5 micro seconds D. 37.5 micro seconds
Suppose the length of a 10Base5 cable is 2500 m. If the speed of propagation in a thick coaxial cable is 200,000,000 m/s, how long does it take for a bit to travel from t...
4.8k
views
commented
Oct 7, 2018
Computer Networks
computer-networks
+
–
1
answer
13
data link layer
An upper-layer packet is split into 5 frames, each of which has an 90% chance of arriving undamaged. If no error control is done by the data link protocol, how many times must the message be sent on average to get the entire thing through? A. 2.1 B. 1.9 C. 1.7 D. 2.4
An upper-layer packet is split into 5 frames, each of which has an 90% chance of arriving undamaged. If no error control is done by the data link protocol, how many times...
892
views
commented
Oct 7, 2018
Computer Networks
computer-networks
data-link-layer
+
–
3
answers
14
GATE CSE 2005 | Question: 62
Consider the following circuit involving a positive edge triggered D FF. Consider the following timing diagram. Let $A_{i}$ represents the logic level on the line $A$ in the $i$-th clock period. Let $A'$ represent the complement of $A$. The correct output sequence on $Y$ over the ... $A_{1} A_{2}' A_{3} A_{4} A_{5}'$
Consider the following circuit involving a positive edge triggered D FF.Consider the following timing diagram. Let $A_{i}$ represents the logic level on the line $A$ in t...
17.2k
views
commented
Sep 30, 2018
Digital Logic
gatecse-2005
digital-logic
circuit-output
normal
+
–
2
answers
15
GATE CSE 1991 | Question: 03,ix
A link editor is a program that: matches the parameters of the macro-definition with locations of the parameters of the macro call matches external names of one program with their location in other programs matches the parameters of subroutine definition ... call. acts as a link between text editor and the user acts as a link between compiler and the user program
A “link editor” is a program that:matches the parameters of the macro-definition with locations of the parameters of the macro callmatches external names of one progr...
6.4k
views
commented
Sep 29, 2018
Compiler Design
gate1991
compiler-design
normal
linker
multiple-selects
+
–
5
answers
16
GATE IT 2004 | Question: 21
Which level of locking provides the highest degree of concurrency in a relational database ? Page Table Row Page, table and row level locking allow the same degree of concurrency
Which level of locking provides the highest degree of concurrency in a relational database ?PageTableRowPage, table and row level locking allow the same degree of concurr...
19.0k
views
commented
Sep 22, 2018
Databases
gateit-2004
databases
normal
transaction-and-concurrency
+
–
4
answers
17
GATE CSE 2015 Set 2 | Question: 47
A computer system implements $8\;\text{kilobyte}$ pages and a $32\text{-bit}$ physical address space. Each page table entry contains a valid bit, a dirty bit, three permission bits, and the translation. If the maximum size of the page table of a process is $24\;\text{megabytes}$, the length of the virtual address supported by the system is _______ bits.
A computer system implements $8\;\text{kilobyte}$ pages and a $32\text{-bit}$ physical address space. Each page table entry contains a valid bit, a dirty bit, three permi...
19.5k
views
commented
Sep 12, 2018
Operating System
gatecse-2015-set2
operating-system
virtual-memory
normal
numerical-answers
+
–
5
answers
18
GATE CSE 1989 | Question: 2-iv
Match the pairs in the following: ...
Match the pairs in the following:$$\begin{array}{ll|ll}\hline \text{(A)} & \text{Virtual memory} & \text{(p)} & \text{ Temporal Locality} \\\hline \text{(B)} & \text{Sha...
13.0k
views
commented
Sep 2, 2018
Operating System
match-the-following
gate1989
operating-system
virtual-memory
+
–
4
answers
19
GATE CSE 2003 | Question: 4
Let $A$ be a sequence of $8$ distinct integers sorted in ascending order. How many distinct pairs of sequences, $B$ and $C$ are there such that each is sorted in ascending order, $B$ has $5$ and $C$ has $3$ elements, and the result of merging $B$ and $C$ gives $A$ $2$ $30$ $56$ $256$
Let $A$ be a sequence of $8$ distinct integers sorted in ascending order. How many distinct pairs of sequences, $B$ and $C$ are there such thateach is sorted in ascending...
13.6k
views
commented
Aug 28, 2018
Combinatory
gatecse-2003
combinatory
normal
+
–
1
answer
20
data structure
219
views
asked
Aug 4, 2018
Programming in C
data-structures
+
–
6
answers
21
GATE CSE 2016 Set 1 | Question: 43
Consider the transition diagram of a PDA given below with input alphabet $\Sigma=\{a,b\}$ and stack alphabet $\Gamma = \{X,Z\}$. $Z$ is the initial stack symbol. Let $L$ ... on every input $L =\{a^n\mid n \geq0 \} \cup \{a^nb^n \mid n \geq 0\}$ and is deterministic context-free
Consider the transition diagram of a PDA given below with input alphabet $\Sigma=\{a,b\}$ and stack alphabet $\Gamma = \{X,Z\}$. $Z$ is the initial stack symbol. Let $L$ ...
17.1k
views
commented
Jul 15, 2018
Theory of Computation
gatecse-2016-set1
theory-of-computation
pushdown-automata
normal
+
–
2
answers
22
GATE CSE 1999 | Question: 2.4
If $L1$ is context free language and $L2$ is a regular language which of the following is/are false? $L1-L2$ is not context free $L1 \cap L2$ is context free $\sim L1$ is context free $\sim L2$ is regular
If $L1$ is context free language and $L2$ is a regular language which of the following is/are false?$L1-L2$ is not context free$L1 \cap L2$ is context free$\sim L1$ is co...
11.7k
views
commented
Jul 15, 2018
Theory of Computation
gate1999
theory-of-computation
identify-class-language
normal
multiple-selects
+
–
4
answers
23
GATE CSE 2016 Set 1 | Question: 18
Which one of the following regular expressions represents the language: the set of all binary strings having two consecutive $0$'s and two consecutive $1$'s? $(0+1 )^ *0011 (0+1)^* +(0+1)^*1100(0+1)^*$ $(0+1)^* (00(0+1)^*11+11(0+1)^*00)(0+1)^*$ $(0+1)^*00(0+1)^* + (0+1)^*11 (0+1)^*$ $00(0+1)^*11 +11(0+1)^*00$
Which one of the following regular expressions represents the language: the set of all binary strings having two consecutive $0$'s and two consecutive $1$'s?$(0+1 )^ *001...
20.9k
views
commented
Jul 14, 2018
Theory of Computation
gatecse-2016-set1
theory-of-computation
regular-expression
normal
+
–
4
answers
24
GATE CSE 2014 Set 1 | Question: 36
Which of the regular expressions given below represent the following DFA? $0^*1(1+00^*1)^* $ $0^*1^*1+11^*0^*1 $ $(0+1)^*1$ I and II only I and III only II and III only I, II and III
Which of the regular expressions given below represent the following DFA?$0^*1(1+00^*1)^* $$0^*1^*1+11^*0^*1 $$(0+1)^*1$I and II onlyI and III onlyII and III onlyI, II an...
19.1k
views
commented
Jul 14, 2018
Theory of Computation
gatecse-2014-set1
theory-of-computation
regular-expression
finite-automata
easy
+
–
4
answers
25
GATE CSE 1998 | Question: 2.5
Let $L$ be the set of all binary strings whose last two symbols are the same. The number of states in the minimal state deterministic finite state automaton accepting $L$ is $2$ $5$ $8$ $3$
Let $L$ be the set of all binary strings whose last two symbols are the same. The number of states in the minimal state deterministic finite state automaton accepting $L$...
17.5k
views
commented
Jul 14, 2018
Theory of Computation
gate1998
theory-of-computation
finite-automata
normal
minimal-state-automata
+
–
4
answers
26
GATE CSE 1998 | Question: 1.10
Which of the following set can be recognized by a Deterministic Finite state Automaton? The numbers $1, 2, 4, 8, \dots 2^n, \dots$ written in binary The numbers $1, 2, 4, 8,\dots 2^n, \dots$ written in unary The set of binary string in which the number of zeros is the same as the number of ones. The set $\{1, 101, 11011, 1110111, \dots\}$
Which of the following set can be recognized by a Deterministic Finite state Automaton?The numbers $1, 2, 4, 8, \dots 2^n, \dots$ written in binaryThe numbers $1, 2, 4, 8...
15.7k
views
commented
Jul 14, 2018
Theory of Computation
gate1998
theory-of-computation
finite-automata
normal
+
–
5
answers
27
GATE CSE 1994 | Question: 2.10
The regular expression for the language recognized by the finite state automaton of figure is ________
The regular expression for the language recognized by the finite state automaton of figure is ________
8.9k
views
commented
Jul 14, 2018
Theory of Computation
gate1994
theory-of-computation
finite-automata
regular-expression
easy
fill-in-the-blanks
+
–
1
answer
28
logic and predicate
397
views
commented
Jul 14, 2018
1
answer
29
regular expressions
423
views
commented
Jul 8, 2018
Theory of Computation
theory-of-computation
regular-expression
+
–
13
answers
30
GATE IT 2007 | Question: 29
When searching for the key value $60$ in a binary search tree, nodes containing the key values $10, 20, 40, 50, 70, 80, 90$ are traversed, not necessarily in the order given. How many different orders are possible in which these key values can occur on the search path from the root to the node containing the value $60$? $35$ $64$ $128$ $5040$
When searching for the key value $60$ in a binary search tree, nodes containing the key values $10, 20, 40, 50, 70, 80, 90$ are traversed, not necessarily in the order gi...
39.9k
views
commented
Jul 8, 2018
DS
gateit-2007
data-structures
binary-search-tree
normal
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register