Add office photos
Engaged Employer

Aptiv

3.5
based on 842 Reviews
Video summary
Filter interviews by

50+ Mars Incorporated Chocolate Interview Questions and Answers

Updated 3 Feb 2025

Q1. 3. 1)Do you know about Autosar. 2)define function definition and function declaration. 3)difference between structure and union. 4) define Enumeration 5)what is microcontroller and microprocessor and its applic...

read more
Ans.

Interview questions for Embedded Software Engineer including Autosar, function definition, structure and union, microcontroller and microprocessor, and communication protocols.

  • Autosar is an automotive software architecture standard.

  • Function definition specifies the code to be executed by a function.

  • Function declaration specifies the function's name, return type, and parameters.

  • Structure is a collection of variables of different data types, while union is a collection of varia...read more

Add your answer

Q2. write a program on structure.? and by using pointers how we declare structures.

Ans.

A program on structures using pointers to declare them.

  • Use the 'struct' keyword to define a structure

  • Use the 'typedef' keyword to create a new type name for the structure

  • Use the '->' operator to access structure members through a pointer

  • Example: typedef struct { int x; int y; } Point; Point *p;

  • Example: p->x = 5; p->y = 10;

Add your answer

Q3. What are storage class specifiers in c?

Ans.

Storage class specifiers in C are used to define the scope and lifetime of variables.

  • There are four storage class specifiers in C: auto, register, static, and extern.

  • Auto variables are local to a block and have automatic storage duration.

  • Register variables are stored in CPU registers for faster access.

  • Static variables have a lifetime throughout the program and are initialized only once.

  • Extern variables are declared in one file and can be used in other files.

  • Storage class spec...read more

Add your answer

Q4. What is Little endian and Big endian in C

Ans.

Little endian and Big endian are byte ordering formats in which multi-byte data is stored in memory.

  • Little endian: Least significant byte is stored at the lowest memory address.

  • Big endian: Most significant byte is stored at the lowest memory address.

  • Example: In Little endian, the number 0x12345678 is stored as 78 56 34 12 in memory.

  • Example: In Big endian, the same number is stored as 12 34 56 78 in memory.

Add your answer
Discover Mars Incorporated Chocolate interview dos and don'ts from real experiences

Q5. - Write a code to reverse a phrase like (I love my country) make it as (Country my love i).

Ans.

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

Add your answer

Q6. What is 5 core tool , 7 qc tool , 8 D , why why analysis

Ans.

Core tools and techniques used in quality engineering include 5 core tools, 7 QC tools, 8D methodology, and the Why-Why analysis.

  • 5 Core Tools: APQP, PPAP, FMEA, MSA, SPC

  • 7 QC Tools: Check sheets, Pareto charts, Cause-and-effect diagrams, Histograms, Scatter diagrams, Control charts, Flowcharts

  • 8D Methodology: Eight disciplines problem solving approach used to identify, correct, and prevent recurring problems

  • Why-Why Analysis: Technique used to determine the root cause of a probl...read more

Add your answer
Are these interview questions helpful?

Q7. Draw architecture diagram for your Machine Learning Project

Ans.

The architecture diagram for a Machine Learning project typically includes data preprocessing, model training, evaluation, and deployment stages.

  • Data preprocessing stage involves cleaning, transforming, and preparing the data for model training.

  • Model training stage includes selecting the appropriate algorithm, training the model on the data, and tuning hyperparameters.

  • Evaluation stage involves assessing the model's performance using metrics like accuracy, precision, recall, a...read more

Add your answer

Q8. Negative test case for Jenkins failure

Ans.

Negative test case for Jenkins failure

  • Trigger a build with incorrect configuration settings

  • Simulate network connectivity issues during build process

  • Introduce a syntax error in the Jenkinsfile

  • Test Jenkins failure when running out of disk space

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. What does preprocessor do in c?

Ans.

Preprocessor in C is a tool that processes source code before compilation.

  • It performs macro substitution

  • It includes header files

  • It conditionally compiles code

  • It defines constants and symbols

  • It removes comments

  • Examples of preprocessor directives are #include, #define, #ifdef, #ifndef, #endif

  • Preprocessor directives start with a # symbol

Add your answer

Q10. How to detect false target?

Ans.

Detecting false targets involves analyzing patterns, behavior, and data to identify inconsistencies.

  • Analyze patterns and behavior of the target to look for inconsistencies

  • Use data validation techniques to verify the authenticity of the target

  • Implement anomaly detection algorithms to flag suspicious targets

  • Utilize machine learning models to predict and identify false targets

Add your answer

Q11. Write a C program to find Factorial of a number

Ans.

A C program to find the factorial of a number using recursion

  • Use a recursive function to calculate the factorial

  • Handle the base case when the number is 0 or 1

  • Multiply the number with the factorial of (number-1) in each recursive call

Add your answer

Q12. How byte padding is done?

Ans.

Byte padding is the process of adding extra bytes to a data structure to ensure it meets a certain size or alignment requirement.

  • Byte padding is commonly used in computer memory allocation to align data structures to memory boundaries.

  • Padding is necessary to ensure that data structures are properly aligned for efficient memory access.

  • For example, if a data structure requires alignment on a 4-byte boundary, padding may be added to ensure that the structure starts at a memory a...read more

Add your answer

Q13. What is Interrupt service routine?

Ans.

An Interrupt Service Routine (ISR) is a function that is executed in response to an interrupt signal.

  • ISR is a type of callback function that handles interrupts

  • It is a low-level function that runs in response to a hardware event

  • ISR must be short and fast to avoid blocking other interrupts

  • Examples of interrupts include keyboard input, timer events, and hardware errors

Add your answer

Q14. what is ASPICE and CMMI difference

Ans.

ASPICE and CMMI are both process improvement models, but ASPICE is specific to automotive industry while CMMI is more general.

  • ASPICE stands for Automotive SPICE and is used in the automotive industry to improve software development processes.

  • CMMI stands for Capability Maturity Model Integration and is a more general process improvement model used in various industries.

  • ASPICE focuses on software development processes specific to the automotive industry, such as safety and reli...read more

Add your answer

Q15. Why do you use Docker and Git

Ans.

I use Docker for containerization to easily manage and deploy applications, and Git for version control to collaborate and track changes.

  • Docker allows for consistent development environments across different machines

  • Git helps track changes, collaborate with team members, and revert to previous versions if needed

  • Both tools improve efficiency and productivity in software development

Add your answer

Q16. 1. What is structured, pointer, array , union

Ans.

Structured, pointer, array, and union are all data types in C programming language.

  • Structured data type is a collection of variables of different data types under a single name.

  • Pointer is a variable that stores the memory address of another variable.

  • Array is a collection of similar data types stored in contiguous memory locations.

  • Union is a special data type that allows storing different data types in the same memory location.

  • Example: struct employee { char name[20]; int age;...read more

Add your answer

Q17. What are different interrupts?

Ans.

Interrupts are signals sent to the processor to temporarily halt its current task and execute a specific task.

  • Hardware interrupts - generated by external devices

  • Software interrupts - generated by software programs

  • Maskable interrupts - can be disabled by the processor

  • Non-maskable interrupts - cannot be disabled by the processor

  • Examples - keyboard input, mouse input, timer interrupts, etc.

Add your answer

Q18. What are the criteria for c program

Ans.

Criteria for C program include syntax correctness, logical flow, and efficient memory usage.

  • Correct syntax and logical flow are essential for program functionality

  • Efficient memory usage is important for performance optimization

  • Program should be well-documented and easy to maintain

  • Code should be modular and reusable for future projects

Add your answer

Q19. Several Autosar APIs for different Autosar layers

Ans.

Autosar APIs are standardized interfaces for communication between software components in automotive systems.

  • Autosar Communication Stack APIs: for communication between ECUs

  • Autosar RTE APIs: for communication between application software components

  • Autosar Diagnostic APIs: for handling diagnostic communication

  • Autosar Memory Stack APIs: for memory management in Autosar systems

Add your answer

Q20. Project release process

Ans.

The project release process involves planning, testing, and deploying software updates.

  • Create a release plan outlining tasks and timelines

  • Perform thorough testing to ensure quality and functionality

  • Deploy updates using version control systems like Git

  • Communicate with stakeholders about the release schedule

Add your answer

Q21. Write a pattern pyramid number in Java

Ans.

Pattern pyramid number in Java

  • Use nested loops to print the pyramid pattern

  • Increment the number in each row

  • Handle spaces for proper alignment

Add your answer

Q22. how do you manage cost and schedule management

Ans.

Cost and schedule management is achieved through effective planning, monitoring, and control.

  • Develop a detailed project plan with clear timelines and budget allocations

  • Regularly monitor progress against the plan and adjust as necessary

  • Identify and mitigate potential risks that could impact cost or schedule

  • Communicate regularly with stakeholders to ensure alignment and manage expectations

  • Use project management tools and software to track progress and identify areas for improve...read more

Add your answer

Q23. what is AGILE and SCRUM approach

Ans.

AGILE is a project management approach that emphasizes flexibility and collaboration. SCRUM is a specific framework within AGILE.

  • AGILE focuses on delivering working software frequently and adapting to change

  • SCRUM is a framework for implementing AGILE that includes roles like Product Owner and Scrum Master

  • SCRUM also includes ceremonies like Sprint Planning and Daily Standups

  • Both AGILE and SCRUM prioritize customer satisfaction and continuous improvement

Add your answer

Q24. What is the role of company in DWM

Ans.

The role of a company in Design for Manufacturability (DWM) is to ensure that products are designed in a way that makes them easy and cost-effective to manufacture.

  • Ensuring that product designs are optimized for efficient manufacturing processes

  • Collaborating with design and manufacturing teams to identify and address potential manufacturing challenges early in the design phase

  • Implementing design guidelines and best practices to improve manufacturability

  • Conducting design revie...read more

Add your answer

Q25. How to manage the Critical situation?

Ans.

Critical situations can be managed by staying calm, assessing the situation, and taking decisive action.

  • Stay calm and composed to avoid panic

  • Assess the situation to determine the severity and potential impact

  • Identify the root cause of the problem

  • Develop a plan of action and communicate it clearly to all involved parties

  • Take decisive action to resolve the issue as quickly and safely as possible

  • Evaluate the effectiveness of the response and make necessary adjustments

  • Document th...read more

Add your answer

Q26. Bit manipulation set a bit , clear a bit , Toggle a bit

Add your answer

Q27. What is the 7 Qc tools?

Ans.

The 7 QC tools are a set of problem-solving tools used in quality management.

  • Check sheet: Used to collect and organize data for analysis.

  • Cause-and-effect diagram (also known as Fishbone or Ishikawa diagram): Used to identify and analyze potential causes of a problem.

  • Control chart: Used to monitor and control process performance over time.

  • Histogram: Used to visualize the distribution of data.

  • Pareto chart: Used to prioritize problems or causes based on their frequency or impact...read more

View 1 answer

Q28. How to manage team conflict

Ans.

Managing team conflict involves active listening, facilitating open communication, finding common ground, and mediating resolutions.

  • Encourage open communication among team members to address conflicts early on

  • Practice active listening to understand all perspectives and emotions involved

  • Facilitate discussions to find common ground and reach a mutually beneficial solution

  • Use mediation techniques to help team members resolve conflicts peacefully

  • Establish team norms and guideline...read more

Add your answer

Q29. difference between INT and Void function

Ans.

INT function returns an integer value while Void function does not return any value.

  • INT function is used to return an integer value after performing some operations.

  • Void function does not return any value and is used to perform some operations.

  • INT function can be used in mathematical calculations while Void function cannot.

  • Example of INT function: int add(int a, int b) { return a + b; }

  • Example of Void function: void printHello() { printf("Hello!"); }

Add your answer

Q30. What is MSA and SPC explain

Ans.

MSA stands for Measurement System Analysis and SPC stands for Statistical Process Control.

  • MSA is a method used to assess the measurement system variation to ensure data accuracy.

  • SPC is a method used to monitor and control a process through statistical analysis.

  • MSA includes Gage R&R studies to evaluate the measurement system's repeatability and reproducibility.

  • SPC involves using control charts to detect any variations in a process over time.

  • Both MSA and SPC are essential tools...read more

Add your answer

Q31. Explain agile method of management

Ans.

Agile management is a flexible and iterative approach to project management that focuses on delivering value to customers through collaboration and adaptability.

  • Iterative approach to project management

  • Focus on delivering value to customers

  • Emphasis on collaboration and communication

  • Adaptability to changing requirements

  • Regular feedback and continuous improvement

  • Use of short development cycles or sprints

Add your answer

Q32. What is the smart pointers?

Ans.

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.

Add your answer

Q33. What is the lamda function?

Ans.

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 the input x.

Add your answer

Q34. What is lamda function?

Ans.

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 + y is a lambda function that takes two parameters x and y a...read more

Add your answer

Q35. bubble sorting code,what is oops etc

Ans.

Bubble sorting is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order.

  • Bubble sort is not efficient for large datasets due to its O(n^2) time complexity.

  • Object-oriented programming (OOP) is a programming paradigm based on the concept of 'objects', which can contain data in the form of fields (attributes) and code in the form of procedures (methods).

  • In OOP, objects interact with each other ...read more

Add your answer

Q36. Tell me about lean manufacturing

Ans.

Lean manufacturing is a systematic approach to identifying and eliminating waste in the production process.

  • Focuses on continuous improvement

  • Involves all employees in the process

  • Reduces lead time and inventory

  • Uses tools such as value stream mapping and 5S

  • Examples include Toyota Production System and Kaizen

Add your answer

Q37. How is RFQ sent to supplier ?

Ans.

RFQ is sent to supplier via email or online portals.

  • RFQ can be sent via email to the supplier's designated email address.

  • Online portals can also be used to send RFQ to suppliers.

  • The RFQ should include all necessary information such as product specifications, quantity, delivery date, and pricing.

  • The supplier should be given a deadline to respond to the RFQ.

  • Follow-up communication may be necessary to ensure timely and accurate responses.

Add your answer

Q38. what is ISO26262

Ans.

ISO26262 is a standard for functional safety of road vehicles.

  • ISO26262 is a standard for the development of safety-critical automotive systems.

  • It provides guidelines for the entire development process, from concept to decommissioning.

  • The standard defines four Automotive Safety Integrity Levels (ASIL) to classify the safety requirements of a system.

  • ISO26262 requires a safety management system, hazard analysis and risk assessment, and validation and verification of safety requi...read more

Add your answer

Q39. What do u know about pointers

Ans.

Pointers are variables that store memory addresses. They are used to manipulate data and create dynamic data structures.

  • Pointers allow for direct memory manipulation

  • They can be used to create dynamic data structures like linked lists

  • Pointers can be passed as arguments to functions

  • They can be used to access hardware directly

  • Null pointers are used to indicate the absence of a valid memory address

Add your answer

Q40. Tell me the crystal frequency formula

Ans.

The crystal frequency formula is used to calculate the resonant frequency of a crystal oscillator.

  • The crystal frequency formula is: f = 1 / (2 * pi * sqrt(L * C))

  • Where f is the resonant frequency in Hertz, L is the inductance in Henrys, and C is the capacitance in Farads

  • This formula is commonly used in electronics for designing crystal oscillators

Add your answer

Q41. What is process quality

Ans.

Process quality refers to the level of consistency, accuracy, and effectiveness in the execution of a particular process.

  • Process quality is about ensuring that a specific process consistently meets the desired standards and requirements.

  • It involves identifying and eliminating defects, errors, and variations in the process to improve overall quality.

  • Process quality can be measured using metrics such as defect rates, cycle times, and customer satisfaction.

  • Examples include imple...read more

Add your answer

Q42. Do you have any idea on PPAP

Ans.

PPAP stands for Production Part Approval Process.

  • PPAP is a standardized process in the automotive industry to ensure that suppliers meet the requirements for production parts.

  • It involves submitting samples of the parts, along with documentation and test results, to the customer for approval.

  • PPAP has five levels, with each level requiring more documentation and testing than the previous one.

  • PPAP is important for ensuring quality and consistency in automotive parts.

  • Examples of ...read more

Add your answer

Q43. Explain ASPICE process

Ans.

ASPICE (Automotive SPICE) is a process assessment model used in the automotive industry to evaluate and improve software development processes.

  • ASPICE is based on the ISO/IEC 15504 standard for process assessment.

  • It helps organizations to assess the maturity of their software development processes.

  • ASPICE defines a set of process attributes and levels of maturity.

  • It is commonly used by automotive manufacturers and suppliers to ensure high-quality software development.

  • ASPICE ass...read more

Add your answer

Q44. What is Autosar

Ans.

Autosar is a standardized software architecture for automotive electronics.

  • Autosar stands for Automotive Open System Architecture

  • It is a collaboration between automotive manufacturers, suppliers, and tool developers

  • It aims to standardize the software architecture of electronic control units (ECUs) in vehicles

  • Autosar defines a common language, methodology, and tools for developing automotive software

  • Examples of Autosar modules include communication stacks, diagnostic services,...read more

Add your answer

Q45. AUTOSAR LAYERS and the BSW layer advantages

Ans.

AUTOSAR layers provide a structured approach to software architecture, with BSW layer offering low-level hardware access and services.

  • AUTOSAR architecture consists of four layers: Application Layer, RTE Layer, BSW Layer, and MCAL Layer.

  • BSW Layer provides standardized services for accessing hardware and managing resources, such as communication stacks, diagnostics, and memory management.

  • Advantages of BSW Layer include portability, reusability, and scalability of software compo...read more

Add your answer

Q46. What is threading?

Ans.

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.

Add your answer

Q47. How exception handled in mcu

Ans.

Exceptions in MCUs are typically handled through interrupt service routines or error handling mechanisms.

  • MCUs use interrupt service routines to handle exceptions such as divide by zero or invalid memory access.

  • Error handling mechanisms like watchdog timers can reset the MCU if a critical error occurs.

  • Some MCUs have built-in fault detection and correction mechanisms to handle exceptions.

  • Exception handling in MCUs is crucial for ensuring system stability and reliability.

Add your answer

Q48. Have worked on cmm scripts

Ans.

Yes, I have experience working on CMM scripts.

  • Yes, I have written CMM scripts for automated testing of embedded software.

  • I have used CMM scripts to automate testing processes and improve efficiency.

  • Experience in debugging and optimizing CMM scripts for better performance.

Add your answer

Q49. What is thermodynamics

Ans.

Thermodynamics is the study of energy and its transformations in systems.

  • Thermodynamics deals with the relationship between heat, work, and energy.

  • It focuses on understanding how energy is transferred and converted between different forms.

  • Laws of thermodynamics govern the behavior of energy in various systems.

  • Applications include engines, refrigeration, and power generation.

  • Example: A car engine converts chemical energy from fuel into mechanical work and heat.

Add your answer

Q50. Etl architecture explain

Ans.

ETL architecture refers to the design and structure of the ETL process.

  • ETL architecture includes the extraction of data from various sources, transformation of the data to fit the target system, and loading the data into the target system.

  • It involves the use of tools and technologies such as ETL tools, data warehouses, and data marts.

  • ETL architecture should be designed to ensure data accuracy, consistency, and completeness.

  • Examples of ETL architecture include the hub-and-spok...read more

Add your answer

Q51. 8D explain.

Ans.

8D is a problem-solving methodology used in quality management to identify, correct, and prevent recurring problems.

  • 8D stands for 8 disciplines, each representing a step in the problem-solving process

  • Steps include defining the problem, forming a team, identifying root causes, implementing corrective actions, and preventing recurrence

  • Example: A manufacturing company uses 8D to address a recurring defect in their product

Add your answer

Q52. 34 service details in uds

Ans.

UDS (Unified Diagnostic Services) protocol supports 34 service details for communication between a vehicle's ECU and a diagnostic tool.

  • UDS protocol is used for diagnostic communication in automotive systems

  • Some of the 34 services include Read Data By Identifier, Clear Diagnostic Information, and Input Output Control

  • These services allow for reading and writing data, clearing diagnostic trouble codes, and controlling various functions of the ECU

Add your answer

Q53. Plastics and their uses

Ans.

Plastics are versatile materials used in various industries for their durability, flexibility, and cost-effectiveness.

  • Plastics are commonly used in packaging materials such as bottles, containers, and bags.

  • They are also used in construction for pipes, insulation, and flooring.

  • In the automotive industry, plastics are used for interior components, bumpers, and body panels.

  • Plastics are essential in electronics for casings, connectors, and circuit boards.

  • Medical devices and equip...read more

Add your answer

Q54. Material selection process

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Mars Incorporated Chocolate

based on 69 interviews
Interview experience
3.8
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

4.0
 • 362 Interview Questions
3.7
 • 343 Interview Questions
3.8
 • 168 Interview Questions
4.1
 • 160 Interview Questions
3.9
 • 154 Interview Questions
4.0
 • 136 Interview Questions
View all
Top Aptiv Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter