2 answers
1
A man purchases 11 articles @ 10rs per article and sells 10 articles @11 rs per article.Find The Overall Loss or Gain% ?a)23%b)21%c)26%d)20%answer is B option but i want ...
2 answers
4
Qchoose incorrect identity from the followinga) (a+b)* = (a+b)*(a+b)*b) (a+b)* = a(a+b)*b(a+b)* + ∈c)(a+b)* = (a+b)*ab(a+b)* + b*a*d)None of the abovecorrect answer ...
5 answers
5
The minimal state DFA, accepting all strings over the alphabet {0,1} where the nth symbol in every string from the right end is a 1, hasa) 2n states b) 2n-1 states c) 2n...
1 answer
8
my question is whether we have a shortcut an idea which can help us in recognizing any language to be regular or not,in GATE .and also what is the best way to get it prop...
2 answers
9
3 answers
16
2 answers
19
Q) For what value of n Kn can be bipartitea)2b)3c)4d) 5
3 answers
20
Let $x$ be an integer which can take a value of $0$ or $1$. The statementif (x == 0) x = 1; else x = 0;is equivalent to which one of the following ?$x = 1 + x;$$x = 1 - ...
1 answer
23
what are the reasons to use unions or not to use unions in C?why unions in ada are better than C implementation ?
4 answers
24
int i = 1; int main() { int a[]= { 0,1, 2} ; f(a[i], i); printf("%d", a[i]); } void f(int x, int y) { y++; x=5*i; }In above function f() uses " call by name" technique, w...
4 answers
25
int foo(unsigned int n) { int c,x=0; while(n!=0) { if(n&01) x++; n>>=1; } return c; }
1 answer
26
void main() { int x=10, y=5; swap(x,y); print(x,y); } void swap(int a, int b) { int c, x=0; c=a; a=b; b=c; }what is output using call by text?a) 5 0b) 5 10c) 10 0d) ...
1 answer
27
Consider the following C code:char A[20]; A="gate";Which of the following is correct?a) '\0' is automatically appended at the end of "gate".b) '\0' is not stored at the e...