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
Questions by just_bhavana
2
votes
1
answer
31
Serializability and strict schedules
Answer is given as D. Not serializable, agreed. But how is it strict??
Answer is given as D. Not serializable, agreed. But how is it strict??
13.0k
views
asked
Aug 4, 2017
Databases
databases
serializability
strict-schedule
+
–
3
votes
1
answer
32
Relational Algebra
Consider the following schema: Student (Sid, Sname, age) Course Info (Cid, Cname, Instructor SSN) Enroll (Sid, Cid, grade). The relational algebra expression for “find the Cid’s of courses enrolled by two different students” is ??
Consider the following schema:Student (Sid, Sname, age)Course Info (Cid, Cname, Instructor SSN)Enroll (Sid, Cid, grade).The relational algebra expression for “find the ...
1.6k
views
asked
Aug 4, 2017
Databases
databases
relational-algebra
+
–
3
votes
0
answers
33
ER diagrams and functional dependency
Let R represents an one to many relationship between entities E1 and E2 and the set A, B attributes represent the key of R (A is key for E1 and B is key for E2) then which of the following statements is correct? The FD, A→B will only holds The FD, B→A will only holds (a) and (b) hold together Neither (a) nor (b) holds
Let R represents an one to many relationship between entities E1 and E2 and the set A, B attributes represent the key of R (A is key for E1 and B is key for E2) then whic...
735
views
asked
Aug 4, 2017
Databases
databases
database-normalization
er-diagram
+
–
5
votes
1
answer
34
Self-doubt
Can there ever be a TLB hit and a page fault?
Can there ever be a TLB hit and a page fault?
1.4k
views
asked
Jul 23, 2017
Operating System
operating-system
translation-lookaside-buffer
+
–
2
votes
4
answers
35
Test Series
How come here deadlock is not possible?! It says each process needs a minimum of one instance to complete. So maximum could be anything greater than one and deadlock may happen in the worst case, right?
How come here deadlock is not possible?! It says each process needs a minimum of one instance to complete. So maximum could be anything greater than one and deadlock may...
894
views
asked
Jul 18, 2017
Operating System
operating-system
deadlock-prevention-avoidance-detection
+
–
1
votes
1
answer
36
Paging with segmentation
Consider a system with segmented paging architecture where logical address space and physical address space is 216 B. The LAS is divided into 8 equal size pages which are powers of 2. Page table stored in memory is byte addressable. What must be the ... so that page table of segment exactly fits in one page frame ? Somebody please explain the part of the question in bold
Consider a system with segmented paging architecture where logical address space and physical address space is 216 B. The LAS is divided into 8 equal size pages which are...
678
views
asked
Jul 16, 2017
Operating System
operating-system
+
–
17
votes
1
answer
37
Token Bucket
Token Bucket mechanism is used for congestion control at router. Bucket capacity in 700 Bytes (initially full), token arrival rate is 200 Bytes/sec and maximum output rate is 300 Bytes/sec. The amount of time (in sec) required to transmit 3000 Bytes file is _____.
Token Bucket mechanism is used for congestion control at router. Bucket capacity in 700 Bytes (initially full), token arrival rate is 200 Bytes/sec and maximum output rat...
4.4k
views
asked
Jul 12, 2017
Computer Networks
computer-networks
token-bucket
+
–
0
votes
2
answers
38
DCFL or NCFL
L = {ai bj ck | i = k or j = k} Is it a DCFL or an NCFL?
L = {ai bj ck | i = k or j = k}Is it a DCFL or an NCFL?
1.0k
views
asked
Jul 7, 2017
Theory of Computation
theory-of-computation
+
–
6
votes
3
answers
39
DCFLs
S1: Every DCFL has unambiguous grammar S2: Every language accepted by DPDA with final state is also accepted by DPDA with empty stack S1 is given as true and S2 false. Explain how?!
S1: Every DCFL has unambiguous grammarS2: Every language accepted by DPDA with final state is also accepted by DPDA with empty stackS1 is given as true and S2 false.Expla...
3.4k
views
asked
Jul 4, 2017
Theory of Computation
theory-of-computation
dcfl
unambiguous-grammar
+
–
1
votes
1
answer
40
Identify the language
L = { w | w $\epsilon$ (a,b)* and #a(w) - #b(w) $\leq$ 10}. Is L regular or a CFL?
L = { w | w $\epsilon$ (a,b)* and #a(w) - #b(w) $\leq$ 10}. Is L regular or a CFL?
382
views
asked
Jul 4, 2017
Theory of Computation
theory-of-computation
identify-class-language
+
–
1
votes
1
answer
41
Identify the language
L1 = {w | length of w is odd and its middle symbol is 0, w $\epsilon$ (0,1)*} Is it regular, a CFL or a CSL?
L1 = {w | length of w is odd and its middle symbol is 0, w $\epsilon$ (0,1)*}Is it regular, a CFL or a CSL?
531
views
asked
Jul 4, 2017
Theory of Computation
theory-of-computation
identify-class-language
+
–
2
votes
1
answer
42
Mealy-Moore machines
Mealy machines do not respond for epsilon whereas Moore machines do. Is this true? Please explain.
Mealy machines do not respond for epsilon whereas Moore machines do. Is this true? Please explain.
3.0k
views
asked
Jul 3, 2017
Theory of Computation
theory-of-computation
+
–
1
votes
3
answers
43
Predict the output
#include <stdio.h> void f(int); int main() { int a=4; f(a); return 0; } void f(int n) { if(n>0) { f(--n); printf("%d", n); f(--n); } } Explain how function calls take place
#include <stdio.h void f(int); int main() { int a=4; f(a); return 0; } void f(int n) { if(n>0) { f( n); printf("%d", n); f( n); } }Explain how function calls take place
1.3k
views
asked
Jun 23, 2017
Programming in C
programming-in-c
recursion
+
–
0
votes
1
answer
44
C Proramming
main() { unsigned int num; int i; scanf("%u",num); for(i=0;i<16;i++) printf("%d", num << i & 1 <<15 ? 1 : 0); } This program calculates the binary equivalent of a number. Can anyone explain its working??
main(){unsigned int num;int i;scanf("%u",num);for(i=0;i<16;i++)printf("%d", num << i & 1 <<15 ? 1 : 0);}This program calculates the binary equivalent of a number. Can a...
484
views
asked
Jun 20, 2017
Programming in C
programming-in-c
+
–
0
votes
1
answer
45
C Programming
P1: int main() { int a,b,c; a = 10; a>=5? b=100 : b=200; printf("%d %d",a,b); return 0; } P2: int main() { int a,b,c; a = 10; a>=5? b=100 : (b=200); printf("%d %d",a,b); return 0; } P1 gives error as lvalue required as left operand of assignment a>=5? b=100 : b=200; ^ while P2 doesn't! Please explain why?
P1:int main(){int a,b,c;a = 10;a>=5? b=100 : b=200;printf("%d %d",a,b); return 0;}P2:int main(){int a,b,c;a = 10;a>=5? b=100 : (b=200);printf("%d %d",a,b); return 0...
585
views
asked
Jun 20, 2017
Programming in C
programming-in-c
ternary-operator
+
–
2
votes
3
answers
46
Pointers
One of the disadvantage of pass by reference is that the called function may inadvertently corrupt the caller's data. This can be avoided by : a) declaring the actual parameters constant b) declaring the formal parameters constant c) passing pointers d) None of these
One of the disadvantage of pass by reference is that the called function may inadvertently corrupt the caller's data. This can be avoided by :a) declaring the actual para...
5.5k
views
asked
Jun 18, 2017
DS
programming-in-c
pointers
+
–
0
votes
1
answer
47
Finite State Machine
The difference between number of states in two equivalent mealy and moore machines is 1 a) True b) False
The difference between number of states in two equivalent mealy and moore machines is 1a) Trueb) False
1.8k
views
asked
Mar 4, 2017
Theory of Computation
theory-of-computation
+
–
Page:
« prev
1
2
3
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register