Add office photos
Employer?
Claim Account for FREE

National Infotech

4.1
based on 3 Reviews
Filter interviews by

Tech Mahindra Interview Questions and Answers

Updated 5 Feb 2024

Q1. What is the difference between a while loop and a do while loop?

Ans.

A while loop checks the condition before executing the code block, while a do while loop executes the code block once before checking the condition.

  • While loop: Condition is checked before entering the loop.

  • Do while loop: Code block is executed at least once before checking the condition.

  • Example: while (condition) { // code block } vs. do { // code block } while (condition);

Add your answer

Q2. What do you know about embedded c programming?

Ans.

Embedded C programming is a specialized skill used in developing software for embedded systems.

  • Embedded C is a variant of the C programming language specifically designed for embedded systems.

  • It is used to write code for microcontrollers, sensors, and other hardware devices.

  • Embedded C programming requires knowledge of low-level hardware interactions and memory management.

  • Example: Writing code to control a robotic arm using a microcontroller.

Add your answer

Q3. How the boost converter will work?

Ans.

Boost converter is a type of DC-DC converter that steps up the input voltage to a higher output voltage.

  • Boost converter uses an inductor, a diode, a capacitor, and a switch to increase the voltage level.

  • During the switch on-time, energy is stored in the inductor. During the switch off-time, the energy is transferred to the output.

  • The output voltage is higher than the input voltage due to the energy transfer process.

  • Boost converters are commonly used in applications where a hi...read more

Add your answer

Q4. Why do we use timers and counters?

Ans.

Timers and counters are essential in embedded systems for tasks like scheduling, measuring time intervals, generating waveforms, and counting events.

  • Timers are used for scheduling tasks at specific intervals, generating PWM signals, and measuring time durations.

  • Counters are used for counting external events like pulses, frequency measurement, and capturing input signals.

  • Timers and counters are crucial for real-time applications, communication protocols, and controlling hardwa...read more

Add your answer
Discover Tech Mahindra interview dos and don'ts from real experiences

Q5. Explain the difference between loops in C.

Ans.

Different types of loops in C include for, while, and do-while loops.

  • For loop: Used when the number of iterations is known. Example: for(int i=0; i<5; i++) {}

  • While loop: Used when the number of iterations is unknown. Example: while(condition) {}

  • Do-while loop: Similar to while loop but guarantees at least one execution. Example: do {} while(condition);

Add your answer

Q6. Explain Timers and counters

Ans.

Timers and counters are essential components in embedded systems used for measuring time intervals and counting events.

  • Timers are used to measure time intervals by counting clock cycles or external events.

  • Counters are used to count external events or pulses.

  • Timers can be used for generating delays, PWM signals, or triggering events.

  • Counters can be used for frequency measurement, event counting, or pulse width measurement.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.9
 • 196 Interview Questions
3.6
 • 184 Interview Questions
3.6
 • 168 Interview Questions
3.9
 • 168 Interview Questions
3.8
 • 136 Interview Questions
View all
Top National Infotech 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
Get AmbitionBox app

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