i
Synopsys
Filter interviews by
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
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...
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
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 togeth...
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
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.
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 t...
This program detects if a number is an integer or a float based on its input format.
Use input() to get user input as a string.
Check if the string contains a decimal point to identify floats.
Use str.isdigit() to check if the string represents an integer.
Example: '123' is int, '123.45' is float.
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,...
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 appeared for an interview in Sep 2024, where I was asked the following questions.
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 appeared for an interview in Nov 2016.
This program detects if a number is an integer or a float based on its input format.
Use input() to get user input as a string.
Check if the string contains a decimal point to identify floats.
Use str.isdigit() to check if the string represents an integer.
Example: '123' is int, '123.45' is float.
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 7 May 2017
I appeared for an interview in Feb 2017.
malloc is a function in C that dynamically allocates memory on the heap. It is used to allocate memory for variables or data structures.
malloc is used in C programming language.
It is used to allocate memory on the heap.
malloc is different from 'new' in C++ as it does not call constructors for objects.
C++ is a general-purpose programming language while Objective C is a superset of C used for iOS and macOS development.
C++ is widely used for developing applications, games, and system software.
Objective C is mainly used for iOS and macOS development.
C++ supports both procedural and object-oriented programming paradigms.
Objective C is an object-oriented language with dynamic runtime features.
C++ has a larger community a...
Class container is a class that holds objects of other classes, while class composition is a way to combine multiple classes to create a new class.
Class container holds objects of other classes, acting as a collection or container.
Class composition combines multiple classes to create a new class with its own behavior and attributes.
In class container, the objects are typically stored in a data structure like an array o...
Divide the horses into groups of 5 and race them. Take the top 2 from each race and race them again. Finally, race the top 2 horses to determine the top 3.
Divide the horses into 3 groups of 5 and race them.
Take the top 2 horses from each race and race them again.
Finally, race the top 2 horses to determine the top 3.
Developing a real-time data processing system for a high-traffic e-commerce website
Implemented a distributed system architecture to handle large volumes of data
Optimized algorithms for efficient data processing and storage
Utilized caching mechanisms to improve system performance
Worked closely with cross-functional teams to troubleshoot and resolve issues
Example: Successfully reduced data processing time by 50% by imple...
Seeking new challenges and opportunities for growth.
Looking for a more challenging role to further develop my skills
Interested in exploring new technologies and industries
Seeking better career advancement opportunities
Want to work in a more collaborative team environment
The width of a tree is the maximum number of nodes at any level in the tree.
To calculate the width of a tree, we can perform a level order traversal and keep track of the maximum number of nodes at any level.
We can use a queue data structure to perform the level order traversal.
At each level, we count the number of nodes in the queue and update the maximum width if necessary.
I applied via Campus Placement and was interviewed in Dec 2016. There were 5 interview rounds.
Design logical circuits for arithmetic circuits in a blackbox.
Understand the functionality of the arithmetic circuits in the blackbox.
Identify the inputs and outputs of the blackbox.
Design logical circuits using logic gates to replicate the arithmetic operations.
Test the logical circuits to ensure they produce the same outputs as the arithmetic circuits.
Recursion in embedded C-code allows a function to call itself, useful for repetitive tasks or complex algorithms.
Ensure proper base case to avoid infinite recursion
Use stack space efficiently as embedded systems have limited resources
Avoid recursive functions with deep call stacks to prevent stack overflow
Example: Recursive function to calculate factorial of a number
I applied via Campus Placement and was interviewed in Dec 2016. There were 4 interview rounds.
I applied via Campus Placement and was interviewed in Dec 2016. There were 5 interview rounds.
I am a passionate software engineer with experience in developing web applications using various technologies.
Experienced in developing web applications using HTML, CSS, JavaScript, and frameworks like React and Angular
Proficient in backend development with Node.js and databases like MongoDB and MySQL
Familiar with version control systems like Git and project management tools like Jira
I applied via Campus Placement and was interviewed in Dec 2016. There were 3 interview rounds.
I am passionate about technology and innovation, and I believe Intel is at the forefront of cutting-edge advancements in the field.
I have always been fascinated by the latest advancements in technology and Intel's reputation for innovation drew me to the company.
I admire Intel's commitment to pushing the boundaries of what is possible in the tech industry.
I am excited about the opportunity to work with a team of talent...
I applied via Campus Placement and was interviewed in Dec 2016. There were 4 interview rounds.
Some of the top questions asked at the Synopsys Software Engineer interview -
based on 5 interview experiences
Difficulty level
Duration
based on 6 reviews
Rating in categories
R&D Engineer
160
salaries
| ₹8.1 L/yr - ₹27.6 L/yr |
Staff Engineer
159
salaries
| ₹18 L/yr - ₹48 L/yr |
Senior R&D Engineer
92
salaries
| ₹15 L/yr - ₹35 L/yr |
Software Engineer
75
salaries
| ₹6.5 L/yr - ₹25 L/yr |
Security Consultant
73
salaries
| ₹5.8 L/yr - ₹16.9 L/yr |
Intel
Apar Industries
Molex
TDK India Private Limited