wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Interrupt

Total questions: 10

Worksheet time: 11mins

Name
Class
Date
1.

What is an interrupt?

a)

A permanent stop of the CPU

b)

A signal that temporarily halts the CPU to handle an event

c)

A program stored in memory

d)

A type of waveform

2.

Which type of waveform is a simple ON/OFF pattern?

a)

Sine

b)

Triangular

c)

Square

d)

Sawtooth

3.

What is the main problem with polling compared to interrupts?

a)

Polling is faster

b)

Polling requires more hardware

c)

Polling cannot be used in embedded systems

d)

Polling wastes CPU time by constantly checking status

4.

Which best describes an Interrupt Service Routine (ISR)?

a)

The main program loop

b)

A background task that runs occasionally

c)

A routine executed when an interrupt is triggered

d)

A waveform generator

5.

Why is PWM important in embedded systems?

a)

It controls average power by adjusting duty cycle

b)

It reduces CPU frequency

c)

It converts analog to digital

d)

It measures time intervals

6.

A main program has 4 blocks, each taking 12 ms. After each block, an ISR runs for 3 ms. What is the total time?

a)

48 ms

b)

60 ms

c)

72 ms

d)

78 ms

7.

A timer runs at 1 MHz. One clock cycle = ?

a)

1 ms

b)

1 µs

c)

1 ns

d)

10 µs

8.

You generate a square wave by toggling a pin every 5 ms. What is the frequency?

a)

10 Hz

b)

50 Hz

c)

100 Hz

d)

200 Hz

9.

A PWM signal has a period of 20 ms and an ON time of 5 ms. What is the duty cycle?

a)

10%

b)

20%

c)

25%

d)

50%

10.

The time between two rising edges of a signal is 0.002 s. What is its frequency?

a)

700 Hz

b)

500 Hz

c)

50 Hz

d)

2 Hz