Synopsys Interview Experience for R&D; Senior Engineer 1
Recently I had gone through four rounds of Synopsys Interviews for R&D; Senior Engineer 1
Round 1:
Hey geek! It's time to become a success story instead of reading them. Check out our most renowned DSA Self Paced Course, now at a student-friendly price and become industry ready. And if you are looking for a more complete interview preparation resource, check out Complete Interview Preparation Course that will prepare you for the SDE role of your dreams!
Feeling prepared enough for your interview? Test your skills with our Test Series that will help you prepare for top companies like Amazon, Microsoft, TCS, Wipro, Google and many more!
Output-based questions:
C++
intj = 0;for(inti = n; i > 1; i = i/2) j++;intadd(int&a;,int&b;){intc = a + b;returnc;}intmain(){intint1, int2, sum;sum = add(int1, int2);}C++
inta =10;int&r; = a;intb = 25;r = b;r++;cout << r << endl << a << endl << b << endl;voidprintArray(intA[]){// write code here}intmain(){intArr[5] = {2, 4, 6, 8, 10};printArray(Arr);return0;}C++
voidChangeArray(intA[],intn){for(inti = 0; i < n; i++)A[i]++;}intmain(){intArr[5] = {2, 4, 6, 8, 10};ChangeArray(Arr, 5);for(inti = 0; i < 5; i++)cout << Arr[i] <<" ";return0;}C++
voidfunc(intn){cout << n;func(n-1);}intmain(){func(3);return0;}intfunc(intn){staticintx = 0;if(n<=0)return0;x++;returnfunc(n-1) + x;}main(){func(5);}C++
voidfoo(intn,intsum){if(n==0)return;intk = n%10;intj = n/10;sum = sum + k;foo(j, sum);cout << k <<", ";}intmain(){inta = 2048, sum = 0;foo(a, sum);cout << sum << endl;}C++
intj = 0;for(inti = n; i > 1; i = i/2) j++;inti = n; 8intj = 0;while(i > 1) {j++;i = i/2;}C++
voidprintArray(intA[]){// write code hereintlen =sizeof(A)/sizeof(A[0]);for(inti = 0; i < len; i++) {printf("%d ", A[i]);}}intmain(){intArr[5] = {2, 4, 6, 8, 10};printArray(Arr);return0;}C++
intfunc(intn){staticintx = 0;if(n<=0)return0;x++;returnfunc(n-1) + x;}main(){func(5);}C++
voidfoo(intn,intsum){if(n==0)return;intk = n%10;intj = n/10;sum = sum + k;foo(j, sum);cout << k <<", ";}intmain(){inta = 2048, sum = 0;foo(a, sum);cout << sum << endl;}- Build Binary search tree using preorder and inorder traversal
- Virtual function questions in C++
Round 2:
- Design Queue using stacks
- Next Greater element and previous smaller element
- Declare 2d array in C++
- What each declaration means below
const char* p; // pointer itself is constant char * const p; // value is consstant const char * const p; // both are constants
- Design your own vector class and difference between vector and array.
Round 3:
- Second largest element in a BST.
- Cycle in a directed and undirected graph
- Basic C++ questions related to virtual functions and constructors.
Round 4:
- Find the next number in the series
3, 5, 8, 13, 22 3 * 2 = 6 - 1 5 5 * 2 = 10 - 2 8 8 * 2 = 16 - 3 13 13 * 2 = 26- 4 22 22 * 2 = 44- 5 39
- Convert string number to integer like atoi and ensure proper test cases are covered
- Why looking for a change and few other behavioral questions.



