wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

GPIO - Quiz

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

What is the LPC2148?

a)

A 64-bit Microcontroller

b)

A 32-bit Microcontroller

c)

A 16-bit Microcontroller

d)

A 8-bit Microcontroller

2.

Which company manufactures the LPC2148?

a)

Microchip Technology

b)

Texas Instruments

c)

NXP Semiconductors

d)

Intel

3.

What does GPIO stand for?

a)

General Purpose Integrated Output

b)

General Purpose Input Output

c)

General Purpose Integrated Operation

d)

General Purpose Input Operation

4.

How many IO ports does LPC2148 have?

a)

4

b)

1

c)

2

d)

3

5.

What is the function of the IODIR register?

a)

To set the direction of GPIO pins

b)

To set the output of GPIO pins

c)

To read the current status of GPIO pins

d)

To clear the output of GPIO pins

6.

Which pin of PORT0 is an output-only pin?

a)

P0.24

b)

P0.31

c)

P0.0

d)

P0.15

7.

What does the IOSET register do?

a)

Sets a port pin to logic LOW

b)

Clears a port pin to logic LOW

c)

Sets a port pin to logic HIGH

d)

Reads the current status of GPIO pins

8.

What is the purpose of the delay function in the LED blinking program?

a)

To initialize the GPIO pins

b)

To create a pause between LED states

c)

To read the status of the switch

d)

To increase the speed of the program

9.

Which register controls the output of PORT1 pins?

a)

IODIR1

b)

IODIR0

c)

IOSET1

d)

IOSET0

10.

What is the role of a resistor when connecting an LED to a GPIO pin?

a)

To provide a ground connection

b)

To decrease the voltage

c)

To limit the current

d)

To increase the voltage

11.

What happens when a switch is pressed in the switch programming?

a)

The GPIO pin is turned on

b)

The GPIO pin is turned off

c)

The GPIO pin reads LOW

d)

The GPIO pin reads HIGH

12.

Which of the following is NOT a function of GPIO pins?

a)

Reading digital signals

b)

Driving loads

c)

Generating triggers

d)

Storing data

13.

What is the purpose of the PINSEL register?

a)

To read the status of GPIO pins

b)

To configure the function of GPIO pins

c)

To control the direction of GPIO pins

d)

To set the output of GPIO pins

14.

In the LPC2148, how many bits are used for each I/O port?

a)

8 bits

b)

32 bits

c)

64 bits

d)

16 bits

15.

What is the function of the IOCLR register?

a)

To set the direction of GPIO pins

b)

To set a port pin to logic HIGH

c)

To clear a port pin to logic LOW

d)

To read the current status of GPIO pins

16.

Which of the following is a type of device that can be interfaced using GPIO?

a)

Microcontroller

b)

LED

c)

Computer

d)

Transistor

17.

What is the maximum number of pins available for user in PORT0?

a)

16

b)

28

c)

32

d)

30

18.

What is the primary use of a buzzer in embedded systems?

a)

To display information

b)

To produce sound

c)

To store data

d)

To control motors

19.

What is the effect of setting a bit to 0 in the IODIR register?

a)

The pin acts as an Output

b)

The pin is set to HIGH

c)

The pin acts as an Input

d)

The pin is disabled

20.

What is the purpose of the pull-up resistor in switch programming?

a)

To limit the current

b)

To define the default state

c)

To connect to ground

d)

To increase the voltage

21.

In the flash program, what does the command IO1CLR do?

a)

Sets the output to HIGH

b)

Clears the output to LOW

c)

Reads the input status

d)

Initializes the GPIO pins

22.

What is the main function of the LPC2148 in embedded systems?

a)

To perform complex calculations

b)

To control and interface with various devices

c)

To store large amounts of data

d)

To provide high-speed processing

23.

Which of the following is a characteristic of the LPC2148?

a)

It is a 16-bit microcontroller

b)

It has a 64-bit architecture

c)

It has no GPIO capabilities

d)

It is easy to work with for beginners

24.

What is the primary function of the delay function in the LED programs?

a)

To set the output of GPIO pins

b)

To initialize the GPIO pins

c)

To create a pause between LED states

d)

To read the status of the switch

25.

What is the role of the IOPIN register?

a)

To set the direction of GPIO pins

b)

To read from or write to the port pins directly

c)

To clear the output of GPIO pins

d)

To configure the function of GPIO pins