WorksheetsEmbedded Engineer preparation Basic level 0.01
Total questions: 60
Worksheet time: 30mins
Which keyword is used to prevent compiler optimization in embedded systems?
static
volatile
const
register
Which memory segment stores global variables?
Stack
Heap
Data
Register
What is the size of `int` in a 32-bit ARM processor?
8-bit
16-bit
32-bit
64-bit
Which operator is most used for bit manipulation?
&&
||
&
^
Which type of pointer points to a function?
Data pointer
Void pointer
Function pointer
Null pointer
Which storage class keeps variable value between function calls?
auto
static
extern
register
What does `const int *p` mean?
Pointer is constant
Value is constant
Both constant
Neither
MISRA-C guidelines are mainly used for:
Faster execution
Memory allocation
Code safety & reliability
UI design
Which loop is preferred in embedded infinite loops?
for
while
do-while
switch
Which function clears memory?
memcpy
memset
strcpy
strlen
What happens if stack overflows?
Program slows
Program crashes
Data loss
No effect
Which keyword allows variable visibility across files?
static
extern
volatile
register
Which data type is best for bit flags?
float
int
char
struct
Embedded C is different from C due to:
Syntax
Libraries & hardware access
Compiler
OS dependency
What is a macro?
Variable
Function
Preprocessor directive
Pointer
ARM Cortex-M uses which architecture?
Harvard
Von Neumann
Modified Harvard
RISC-V
Which unit executes arithmetic operations?
Control Unit
ALU
Register
Cache
What triggers an interrupt?
Polling
Event
Timer
Clock
Which register stores next instruction address?
SP
LR
PC
CPSR
Which MCU is 32-bit?
8051
PIC16
ATmega328
STM32
What is reset vector?
Interrupt priority
First instruction address
Stack pointer
Program end
GPIO stands for:
General Purpose Input Output
Global Pin IO
Ground Pin IO
General Protocol IO
Which clock affects CPU speed?
RTC
System clock
Peripheral clock
Watchdog
NVIC is used for:
Memory management
Interrupt control
GPIO control
Power management
Which mode saves maximum power?
Run
Sleep
Stop
Standby
Flash memory is:
Volatile
Non-volatile
Cache
Register
Watchdog timer prevents:
Power failure
Software hang
Memory leak
Overcurrent
ADC converts:
Digital to Analog
Analog to Digital
PWM to Analog
Voltage to Current
Timer is mainly used for:
Storage
Delays & counting
Communication
Reset
DMA helps in:
Faster CPU
Reduced CPU load
More memory
Interrupt control
UART is:
Synchronous
Asynchronous
Half duplex
Master-slave
SPI uses how many wires?
2
3
4
5
I2C uses pull-up resistors because:
Noise reduction
Open-drain outputs
Faster speed
Low power
CAN protocol is mainly used in:
Mobile phones
Automotive
Computers
IoT sensors
Which protocol supports multi-master?
SPI
UART
I2C
RS232
Baud rate refers to:
Voltage
Data speed
Frequency
Packet size
Chip select is used in:
UART
SPI
I2C
CAN
Arbitration is required in:
SPI
UART
I2C
RS485
CAN uses which topology?
Star
Ring
Bus
Mesh
Which is fastest?
UART
I2C
SPI
CAN
RTOS stands for:
Real Time OS
Rapid Task OS
Reliable OS
Random OS
Which scheduling allows task preemption?
Cooperative
Preemptive
FIFO
Round-robin
Semaphore is mainly used for:
Mutual exclusion
Signaling
Scheduling
Memory
Mutex prevents:
Deadlock
Race condition
Starvation
Overflow
Priority inversion occurs when:
Low priority blocks high priority
High priority blocks low
Equal priority tasks
No scheduling
FreeRTOS is:
Proprietary
Open source
Paid
OS-less
Linux kernel is responsible for:
UI
Hardware control
Applications
Database
Device tree describes:
Hardware layout
Software flow
Memory usage
CPU speed
User space and kernel space are separated for:
Speed
Security
Memory
Power
Which file system is common in embedded Linux?
NTFS
FAT32
ext4
JFFS2
Decoupling capacitor is placed near:
Ground
GPIO
Power pin
Clock pin
Logic analyzer is used to analyze:
Voltage
Current
Digital signals
Power
JTAG is used for:
Communication
Debugging
Programming only
Power
Pull-up resistor connects to:
Ground
Vcc
GPIO
ADC
Oscilloscope measures:
Logic states
Voltage vs time
Resistance
Current only
Brown-out reset protects against:
Overvoltage
Low voltage
High current
Noise
PCB trace width depends on:
Voltage
Current
Frequency
Color
Which tool is used for version control?
Jenkins
Git
GCC
Keil
Cross compiler means:
Compile twice
Compile on same system
Compile for different target
Compile faster
Embedded system is best defined as:
General purpose computer
Dedicated function system
High-end server
Desktop PC
