Interview Question
Country: India
@vibhutiwary321 can you explain in detail..
does question meant by
1) a or b = (a | b)
OR
2) either a , either b
by 1st C) is correct
by 2nd D) can be correct
In machine language or in theory of computation where we consider systems there two types of notations are used * indicates 0 or more instances and + indicates one or more instances.You can read it under theory of computation about these notations
In the d option that you are saying there will be no zero instance of a or b as when
{0,a,aa,aaaa..aaaaa} is bitwise ORed with b then the result will be
{b,a,aab,aaabbb...} .Note there will be no zero instance of b and in order to get it you also have to cover it under the star notation.I hope you now understand
The answer for this problem is C as * denotes to have 0 or more instances of any value like a* means:
- vgeek June 07, 2013{0,a,aa,aaa,aaaa...} like this