1 votes
1 answer
41
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?
2 votes
1 answer
42
Mealy machines do not respond for epsilon whereas Moore machines do. Is this true? Please explain.
1 votes
3 answers
43
#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
0 votes
1 answer
44
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...
2 votes
3 answers
46
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...
0 votes
1 answer
47
The difference between number of states in two equivalent mealy and moore machines is 1a) Trueb) False