i
Synopsys
Filter interviews by
Clear (1)
Identify if a number is positive, negative, or zero
Check if the number is greater than 0 to determine if it is positive
Check if the number is less than 0 to determine if it is negative
If the number is neither greater nor less than 0, it is zero
I applied via LinkedIn and was interviewed in Jun 2021. There was 1 interview round.
References and pointers are both used to refer to memory locations, but references cannot be null and cannot be reseated.
Pointers can be null or uninitialized
Pointers can be reseated to point to a different memory location
References are automatically dereferenced
References cannot be used with arrays
Pointers can be used with arrays
References are necessary when passing large objects to functions or when returning objects from functions.
When passing large objects to functions
When returning objects from functions
When working with complex data structures
When implementing operator overloading
When working with polymorphism
Const pointers should be declared in the same scope as the variable they point to.
Declaring const pointers in the same scope as the variable they point to ensures that the pointer cannot be used to modify the variable.
If the pointer is only used within a function, it should be declared within that function.
If the pointer is used across multiple functions, it should be declared in a header file or at the top of the sour...
Copy constructor with pointers creates a new object by copying the values of the existing object's pointers.
Copy constructor is used to create a new object from an existing object.
Pointers in the new object point to the same memory locations as the original object.
Deep copy should be used to avoid shallow copy issues.
new and malloc are used for dynamic memory allocation in C++ and C respectively.
new is an operator in C++ while malloc is a function in C.
new automatically calls the constructor while malloc does not.
new returns a pointer to the object while malloc returns a void pointer.
new throws an exception if allocation fails while malloc returns NULL.
new can be overloaded while malloc cannot be.
new and delete are used together wh
I was interviewed in Nov 2016.
Need more context. What needs to be done with the large rectangle?
What are the dimensions of the rectangle?
Is it a 2D or 3D object?
What is the context of the problem?
Are there any constraints or limitations?
What tools or programming languages can be used?
Derive a formula to determine how many smaller rectangles fit into a bigger rectangle given their dimensions.
Calculate the number of times the smaller rectangle can fit into the bigger rectangle horizontally and vertically
Divide the width of the bigger rectangle by the width of the smaller rectangle to get the horizontal count
Divide the height of the bigger rectangle by the height of the smaller rectangle to get the ve...
At least 4 points are required to draw a rectangle.
A rectangle has 4 sides and 4 corners, so at least 4 points are needed to define those corners.
The points must be arranged in a specific order to form a closed shape with 4 sides.
Additional points can be used to add details or modify the shape of the rectangle.
The number of points required may vary depending on the software or tool used to draw the rectangle.
Answering how to calculate new coordinates of a scaled rectangle and providing a program for it.
To calculate new coordinates, multiply the original coordinates by the scaling factor
Scaling factor can be calculated by dividing the new length/breadth by the original length/breadth
Program can take input of original coordinates, scaling factor, and output new coordinates
Example: Original coordinates: (0,0), (0,5), (5,5), (...
Top trending discussions
posted on 12 Jul 2016
I applied via Campus Placement
The question is about finding the minimum steps to reach from a source string to a destination string using three operations.
BFS and DFS are graph traversal techniques that can be used to solve this problem.
BFS is typically used when finding the shortest path or exploring all possible paths in a graph.
DFS is useful when searching for a specific path or exploring deeply into a graph.
In this case, BFS can be used to find...
I applied via Campus Placement and was interviewed in Dec 2016. There were 5 interview rounds.
UDP is preferred over TCP in this project due to its low latency and lightweight nature.
UDP is a connectionless protocol, which means it does not establish a direct connection between the sender and receiver.
UDP is faster than TCP as it does not have the overhead of establishing and maintaining a connection.
UDP is suitable for applications where real-time data transmission is crucial, such as video streaming or online ...
To clear the 7th bit in a 32-bit register, perform a bitwise AND operation with a mask that has all bits set to 1 except the 7th bit.
Create a mask with the 7th bit set to 0 and all other bits set to 1
Perform a bitwise AND operation between the register and the mask
Store the result back in the register
posted on 14 Jul 2017
I applied via Referral and was interviewed before Sep 2020. There was 1 interview round.
posted on 6 Oct 2023
I applied via Campus Placement and was interviewed in Apr 2023. There were 2 interview rounds.
Level was medium to hard
To print a tree in anticlockwise direction, start from the bottom left and traverse each level from right to left.
Start from the bottom left of the tree
Traverse each level from right to left
Print the nodes as you traverse
posted on 20 Nov 2024
I applied via Naukri.com and was interviewed in May 2024. There were 2 interview rounds.
Coding round where they ask few coding questions
posted on 13 Aug 2024
3 rounds online, dsa, hr
Some of the top questions asked at the Synopsys Software Engineer interview -
based on 4 interviews
Interview experience
based on 5 reviews
Rating in categories
Hyderabad / Secunderabad,
Bangalore / Bengaluru
3-7 Yrs
Not Disclosed
R&D Engineer
148
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior R&D Engineer
100
salaries
| ₹0 L/yr - ₹0 L/yr |
Staff Engineer
89
salaries
| ₹0 L/yr - ₹0 L/yr |
Security Consultant
60
salaries
| ₹0 L/yr - ₹0 L/yr |
Applications Engineer
58
salaries
| ₹0 L/yr - ₹0 L/yr |
Cadence Design Systems
Mentor Graphics
Ansys Software Private Limited
Infineon Technologies