wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Embedded Engineer preparation Basic level 0.01

Total questions: 60

Worksheet time: 30mins

Name
Class
Date
1.

Which keyword is used to prevent compiler optimization in embedded systems?

a)

static

b)

volatile

c)

const

d)

register

2.

Which memory segment stores global variables?

a)

Stack

b)

Heap

c)

Data

d)

Register

3.

What is the size of `int` in a 32-bit ARM processor?

a)

8-bit

b)

16-bit

c)

32-bit

d)

64-bit

4.

Which operator is most used for bit manipulation?

a)

&&

b)

||

c)

&

d)

^

5.

Which type of pointer points to a function?

a)

Data pointer

b)

Void pointer

c)

Function pointer

d)

Null pointer

6.

Which storage class keeps variable value between function calls?

a)

auto

b)

static

c)

extern

d)

register

7.

What does `const int *p` mean?

a)

Pointer is constant

b)

Value is constant

c)

Both constant

d)

Neither

8.

MISRA-C guidelines are mainly used for:

a)

Faster execution

b)

Memory allocation

c)

Code safety & reliability

d)

UI design

9.

Which loop is preferred in embedded infinite loops?

a)

for

b)

while

c)

do-while

d)

switch

10.

Which function clears memory?

a)

memcpy

b)

memset

c)

strcpy

d)

strlen

11.

What happens if stack overflows?

a)

Program slows

b)

Program crashes

c)

Data loss

d)

No effect

12.

Which keyword allows variable visibility across files?

a)

static

b)

extern

c)

volatile

d)

register

13.

Which data type is best for bit flags?

a)

float

b)

int

c)

char

d)

struct

14.

Embedded C is different from C due to:

a)

Syntax

b)

Libraries & hardware access

c)

Compiler

d)

OS dependency

15.

What is a macro?

a)

Variable

b)

Function

c)

Preprocessor directive

d)

Pointer

16.

ARM Cortex-M uses which architecture?

a)

Harvard

b)

Von Neumann

c)

Modified Harvard

d)

RISC-V

17.

Which unit executes arithmetic operations?

a)

Control Unit

b)

ALU

c)

Register

d)

Cache

18.

What triggers an interrupt?

a)

Polling

b)

Event

c)

Timer

d)

Clock

19.

Which register stores next instruction address?

a)

SP

b)

LR

c)

PC

d)

CPSR

20.

Which MCU is 32-bit?

a)

8051

b)

PIC16

c)

ATmega328

d)

STM32

21.

What is reset vector?

a)

Interrupt priority

b)

First instruction address

c)

Stack pointer

d)

Program end

22.

GPIO stands for:

a)

General Purpose Input Output

b)

Global Pin IO

c)

Ground Pin IO

d)

General Protocol IO

23.

Which clock affects CPU speed?

a)

RTC

b)

System clock

c)

Peripheral clock

d)

Watchdog

24.

NVIC is used for:

a)

Memory management

b)

Interrupt control

c)

GPIO control

d)

Power management

25.

Which mode saves maximum power?

a)

Run

b)

Sleep

c)

Stop

d)

Standby

26.

Flash memory is:

a)

Volatile

b)

Non-volatile

c)

Cache

d)

Register

27.

Watchdog timer prevents:

a)

Power failure

b)

Software hang

c)

Memory leak

d)

Overcurrent

28.

ADC converts:

a)

Digital to Analog

b)

Analog to Digital

c)

PWM to Analog

d)

Voltage to Current

29.

Timer is mainly used for:

a)

Storage

b)

Delays & counting

c)

Communication

d)

Reset

30.

DMA helps in:

a)

Faster CPU

b)

Reduced CPU load

c)

More memory

d)

Interrupt control

31.

UART is:

a)

Synchronous

b)

Asynchronous

c)

Half duplex

d)

Master-slave

32.

SPI uses how many wires?

a)

2

b)

3

c)

4

d)

5

33.

I2C uses pull-up resistors because:

a)

Noise reduction

b)

Open-drain outputs

c)

Faster speed

d)

Low power

34.

CAN protocol is mainly used in:

a)

Mobile phones

b)

Automotive

c)

Computers

d)

IoT sensors

35.

Which protocol supports multi-master?

a)

SPI

b)

UART

c)

I2C

d)

RS232

36.

Baud rate refers to:

a)

Voltage

b)

Data speed

c)

Frequency

d)

Packet size

37.

Chip select is used in:

a)

UART

b)

SPI

c)

I2C

d)

CAN

38.

Arbitration is required in:

a)

SPI

b)

UART

c)

I2C

d)

RS485

39.

CAN uses which topology?

a)

Star

b)

Ring

c)

Bus

d)

Mesh

40.

Which is fastest?

a)

UART

b)

I2C

c)

SPI

d)

CAN

41.

RTOS stands for:

a)

Real Time OS

b)

Rapid Task OS

c)

Reliable OS

d)

Random OS

42.

Which scheduling allows task preemption?

a)

Cooperative

b)

Preemptive

c)

FIFO

d)

Round-robin

43.

Semaphore is mainly used for:

a)

Mutual exclusion

b)

Signaling

c)

Scheduling

d)

Memory

44.

Mutex prevents:

a)

Deadlock

b)

Race condition

c)

Starvation

d)

Overflow

45.

Priority inversion occurs when:

a)

Low priority blocks high priority

b)

High priority blocks low

c)

Equal priority tasks

d)

No scheduling

46.

FreeRTOS is:

a)

Proprietary

b)

Open source

c)

Paid

d)

OS-less

47.

Linux kernel is responsible for:

a)

UI

b)

Hardware control

c)

Applications

d)

Database

48.

Device tree describes:

a)

Hardware layout

b)

Software flow

c)

Memory usage

d)

CPU speed

49.

User space and kernel space are separated for:

a)

Speed

b)

Security

c)

Memory

d)

Power

50.

Which file system is common in embedded Linux?

a)

NTFS

b)

FAT32

c)

ext4

d)

JFFS2

51.

Decoupling capacitor is placed near:

a)

Ground

b)

GPIO

c)

Power pin

d)

Clock pin

52.

Logic analyzer is used to analyze:

a)

Voltage

b)

Current

c)

Digital signals

d)

Power

53.

JTAG is used for:

a)

Communication

b)

Debugging

c)

Programming only

d)

Power

54.

Pull-up resistor connects to:

a)

Ground

b)

Vcc

c)

GPIO

d)

ADC

55.

Oscilloscope measures:

a)

Logic states

b)

Voltage vs time

c)

Resistance

d)

Current only

56.

Brown-out reset protects against:

a)

Overvoltage

b)

Low voltage

c)

High current

d)

Noise

57.

PCB trace width depends on:

a)

Voltage

b)

Current

c)

Frequency

d)

Color

58.

Which tool is used for version control?

a)

Jenkins

b)

Git

c)

GCC

d)

Keil

59.

Cross compiler means:

a)

Compile twice

b)

Compile on same system

c)

Compile for different target

d)

Compile faster

60.

Embedded system is best defined as:

a)

General purpose computer

b)

Dedicated function system

c)

High-end server

d)

Desktop PC