Question:

Which of the following file extension that is loaded in a microcontroller for executing any instruction?

Show Hint

Microcontroller Programming. Code is written (e.g., C), compiled/assembled into machine code, and this machine code (often in .hex format) is loaded into the microcontroller's program memory for execution.
Updated On: May 6, 2025
  • .c
  • .txt
  • .hex
  • .doc
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Microcontrollers execute machine code, which is a sequence of binary instructions specific to the microcontroller's architecture
High-level programming languages like C (source file:
c) are compiled into assembly language and then assembled into machine code
This machine code needs to be loaded (programmed or flashed) into the microcontroller's memory (usually non-volatile memory like Flash)
A common format for distributing and loading this machine code onto microcontrollers is the Intel HEX format, which uses files with a
hex extension
This format represents binary machine code data in an ASCII text format, making it suitable for transfer and programming tools

txt (text file) and
doc (document file) are not executable code formats
c contains source code, not executable machine code
Was this answer helpful?
0
0