Filter interviews by
I applied via LinkedIn and was interviewed before Jul 2023. There were 2 interview rounds.
Swapping two numbers without using a third variable in C code.
Use bitwise XOR operation to swap two numbers without using a third variable.
Example: int a = 5, b = 10; a = a ^ b; b = a ^ b; a = a ^ b; // Now a = 10, b = 5
The candidate is asked to explain a piece of code during the interview for an Internship Trainee position.
Break down the code line by line and explain the purpose of each line
Discuss any functions or variables used in the code and their significance
Explain the expected output or outcome of the code
Simulink logic for up counter using a chart
Create a Simulink model
Use a Stateflow chart to implement the up counter logic
Define states for counting up and resetting
Transition between states based on input signals
Use chart actions to increment the counter
I am passionate about the industry and believe this internship will provide valuable experience and opportunities for growth.
Passionate about the industry
Seeking valuable experience and growth opportunities
Believe in the company's mission and values
Top trending discussions
I applied via Walk-in and was interviewed before Sep 2020. There were 5 interview rounds.
I applied via Company Website and was interviewed in Jun 2024. There were 2 interview rounds.
Hackerrank assesment
I applied via Referral and was interviewed before Feb 2023. There were 2 interview rounds.
A code to reverse a phrase by splitting it into words and reversing the order of the words.
Split the phrase into an array of words using a space as the delimiter
Reverse the order of the words in the array
Join the words back together with spaces in between
Smart pointers are objects that store a pointer to dynamically allocated memory and provide automatic memory management.
Smart pointers help prevent memory leaks by automatically releasing memory when the pointer is no longer needed.
Examples include unique_ptr, shared_ptr, and weak_ptr in C++.
unique_ptr is used for exclusive ownership, shared_ptr for shared ownership, and weak_ptr to break circular references.
A lambda function is a small anonymous function defined in a single line of code without a name.
Lambda functions are often used in programming languages that support functional programming.
They are commonly used for short, simple operations that do not require a named function.
Lambda functions can take any number of arguments but can only have one expression.
Example: lambda x: x*2 defines a lambda function that doubles
Threading is a way for a program to split itself into multiple simultaneous tasks.
Threading allows for parallel execution of tasks within a program.
Each thread has its own stack and runs independently of other threads.
Threads can communicate with each other and share resources.
Example: A web server handling multiple client requests concurrently using threads.
Lambda function is an anonymous function in programming that can have multiple parameters and can be used as an argument to other functions.
Lambda functions are also known as anonymous functions because they do not have a name.
They are often used for short, one-time tasks that do not require a separate function definition.
Lambda functions can take multiple parameters and return a single value.
Example: lambda x, y: x + ...
I appeared for an interview before Mar 2023.
Coding test, on C, around 1 hr, on teams
Structure is a collection of variables of different data types while union is a collection of variables of same data type.
Structure allocates memory for all its variables while union allocates memory for only one variable at a time.
Structure is used when we want to store different types of data while union is used when we want to store only one type of data.
Structure is accessed using dot operator while union is access...
Dangling pointers can be avoided by setting them to NULL after freeing the memory they point to.
Always initialize pointers to NULL.
Set pointers to NULL after freeing the memory they point to.
Avoid accessing memory through a pointer after it has been freed.
Use smart pointers or garbage collection to automate memory management.
A program to print Fibonacci series using recursion.
Define a recursive function that takes an integer n as input
Base case: if n is 0 or 1, return n
Recursive case: return the sum of the previous two Fibonacci numbers
Call the recursive function with the desired number of terms and print the result
I applied via Approached by Company and was interviewed before Aug 2021. There were 3 interview rounds.
based on 2 interviews
Interview experience
based on 2 reviews
Rating in categories
Technical Specialist
1.2k
salaries
| ₹7 L/yr - ₹24.2 L/yr |
Technical Architect
372
salaries
| ₹10.1 L/yr - ₹34 L/yr |
Senior Engineer
358
salaries
| ₹5.4 L/yr - ₹22 L/yr |
Technical Lead
304
salaries
| ₹11.9 L/yr - ₹31 L/yr |
Module Lead
300
salaries
| ₹8 L/yr - ₹19 L/yr |
Bosch
Yazaki
Faurecia
Valeo