Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DEC30182 - Quiz 2

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which type of memory on the ATmega328P is non-volatile and used to store the user's permanent program code (sketch)?

a)

EEPROM (Electrically Erasable Programmable Read-Only Memory)

b)

Cache Memory

c)

SRAM (Static Random-Access Memory)

d)

Flash Memory

2.

What is the primary role of the CPU core within the ATmega328P architecture?

a)

To manage all digital I/O pin configurations.

b)

To handle all external communication protocols (I2C, SPI, UART).

c)

To perform Analog-to-Digital conversions.

d)

To execute program instructions fetched from Flash memory.

3.

The Arduino Uno uses an external 16 MHz crystal oscillator. What is the main benefit of using a crystal oscillator over the internal RC oscillator for the clock source?

a)

Lower power consumption.

b)


Significantly higher clock frequency accuracy and stability.

c)

Higher clock speed capability.

d)

Reduced physical size of the final product.

4.

In the context of the ATmega328P, what are 'Fuses' (Fuse Bits)?

a)

Special memory locations that store EEPROM data

b)

Internal resistors that physically burn out to prevent overcurrent.

c)

Registers used to store the current value of timers and counters.

d)

Non-volatile configuration bits that determine fundamental chip operations.

5.

What is the consequence of incorrectly setting the 'Brown-Out Detection' (BOD) use bit on the ATmega328P?

a)

All communication protocols (I2C , SPI) will cease to function.

b)

The bootloader will be erased upon the next power cycle.

c)

The ATMega328p may execute random code when the supply voltage drops too low.

d)

The $\text{ADC}$ will produce inconsistent readings.

6.

How much SRAM (Static Random-Access Memory) is available on the ATmega328P microcontroller?

a)

4KB

b)

32KB

c)

2KB

d)

1KB

7.

Which programming technique in Arduino is used to store constant string data (like error messages) in Flash memory instead of SRAM) to save volatile memory space?

a)

The PROGMEM keyword

b)

The static keyword.

c)

The volatile keyword

d)

The malloc () function

8.

What is the range of memory addresses typically reserved for EEPROM data storage on the ATmega328P?

a)

0x0000 to 0x03FF (EEPROM)

b)

0x0000 to 0x7FFF (Flash)

c)

0x0100 to 0x08FF(SRAM)

d)

0xFF00 to 0xFFFF(Registers)

9.

The Arduino framework uses 8-bit integer data types like byte and int. What is the bit size of the general-purpose registers (GPRs) in the ATmega328P's CPU core?

a)

4-bit

b)

8-bit

c)

16-bit

d)

32-bit

10.

What is the purpose of the Watchdog Timer (WDT) in the ATmega328P, which is often used in robust embedded systems?

a)

To trigger a system reset if the program gets stuck in an infinite loop.

b)

To accurately measure time intervals in milliseconds for non-blocking code.

c)

To count the number of times the RESET pin is toggled.

d)

To put the microcontroller into a low-power sleep mode.

11.

What is the typical resolution (in bits) of the Analog-to-Digital Converter (ADC) in the ATmega328P?

a)

8-bit

b)

10-bit

c)

12-bit

d)

16-bit

12.

If an Arduino Uno is operating at 5V and the default reference voltage is used, what is the voltage step (resolution) represented by one increment of the ADC reading?

a)


4.88mV

b)

19.5 mV

c)

10 mV

d)

1 mV

13.

Which constant is used with analogReference() to set the ADC reference to the internal 1.1 V bandgap voltage?

a)

INTERNAL1V1

b)

EXTERNAL

c)

DEFAULT

d)


VCC

14.

What is the maximum value that can be passed to the analogWrite () function for PWM control on the Arduino Uno?

a)

100

b)

255

c)

512

d)

1023

15.


What is the result of using a value of 127 in the analogWrite() function?

a)

The PWM pin will be permanently LOW.

b)

The PWM pin will be permanently HIGH

c)

The output frequency will be exactly doubled

d)

The duty cycle will be approximately 50% (HIGH for half the period)

16.

Which internal component of the ATmega328P is primarily responsible for generating the PWM signal used by analogWrite()?

a)

The EEPROM memory unit

b)

The USART

c)

The Timer / Counters

d)

The ADC

17.

In analogRead(), what is the effect of having the analog input pin connected to a large decoupling capacitor (0.1 micro-farad or more) at the ADC input?

a)

It increase the ADC resolution to 12-bit

b)

It slows down the conversion rate of the ADC

c)

It helps to stabilize the input voltage and reduce noise

d)

It changes the reference voltage of the ADC

18.

If you are reading the output of a Photodiode that produces a very small voltage and you want maximum sensitivity, which analogReference() should you use on the Arduino Uno?

a)

External (5V reference)

b)

Internal2V56 (2.56V reference)

c)

Internal1V1(1.1 V reference)

d)

Default (5V AVCC reference)

19.

The analogWrite() function on the Arduino Uno typically operates at a PWM frequency of about 490Hz on most pins. What effect does using a lower PWM frequency have on controlling a DC motor?

a)

It improves the motor's efficiency due to less switching loss.

b)

It can cause the motor to whine audibly.

c)

It increases the maximum speed of the motor.

d)

It increases the motor's power consumption.

20.

What is the primary difference between a Timer and a Counter peripheral on the ATmega328P?

a)

A Timer counts internal clock cycles, while a Counter counts external events.

b)

A Timer can only be text while a Counter can be 16-bit.

c)

A Counter has higher resolution than a Timer

d)

A Timer is a hardware feature but a Counter must be implemented in software