Interview Question


Country: India




Comment hidden because of low score. Click to expand.
0
of 0 vote

The answer for this problem is C as * denotes to have 0 or more instances of any value like a* means:
{0,a,aa,aaa,aaaa...} like this

- vgeek June 07, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

@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

- !@# June 07, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

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

- vgeek June 07, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

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

- vgeek June 07, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

C

- go4gold June 07, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

c

- Deepak Bisht June 07, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

B

- Naresh Bansal June 07, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

C

- prachi June 07, 2013 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More