1. Int func(){ Int a = 1; a++; Return a; } You have two threads, both call the func function, one thread stops after the 'a++' line and after a context switch the other thread stops after the 'int a = 1' line. what is the value of 'a'?
Design Verification Engineer Interview Questions
3,713 design verification engineer interview questions shared by candidates
Linked List traversal, Fibonacci algorithm (basic and recursive), the difference in complexity between the basic and recursive. Relatively straight forward. Second phone screen: "A person on a stairway needs to get from the bottom of the stairs to the top in the minimum number of steps, no, how possible combinations of steps, no, I don't think I explained that well...what if they took could only take one step forward for every"...really? is this even a real question? somehow the answer was yet again a Fibonacci sequence question. Next was reversing a singly linked list - oops, you can't use any references (!?), or another linked list.. Frustrating to have gotten the "B" team interviewer
Shown a perl code, what does it do?
FizzBuzz with 3 and 5 for Fizz and Buzz, respectively and 15 for FizzBuzz
Coding: 1. The two-sum problem (famous DSA problem), both on sorted and unsorted arrays. 2. In an array, for each number, find out if it is greater than all the numbers to the right of it. Then questions about time and space complexity of my solution.
Puzzle: 2. There is a box with 13 W and 15 B balls. There are also 28 B balls on the outside. At each turn, two balls are randomly and simultaneously taken out of the box. If the balls are of different color, the W ball is returned to the box. If the balls are of the same color, they are removed and a B ball from outside is put into the box. After some turns, only one ball remains in the box. Can you deterministically tell the color of this ball?
Why is scrambling, encoding, and equalization used in PCI Express?
Do you think your team spent too much time for the (simple) design you worked on (with a smile that hints that my team doesn't know what we are working on)?
You have to read a 3 page passage and respond to your interpretation of it.
What motivates you?
Viewing 451 - 460 interview questions