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
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?
529
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...
470
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...
583
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
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register