What is a microcontroller?
Show answer & solution
Answer: (D) A single chip containing a CPU, memory, timers and I/O peripherals
Microcontrollers are used in embedded systems.
Electrical Engineering · Digital Electronics & Microprocessors
30 questions, each with the answer and a worked solution.
Practice interactively and track your score →What is a microcontroller?
Answer: (D) A single chip containing a CPU, memory, timers and I/O peripherals
Microcontrollers are used in embedded systems.
What are the main features of the 8051 microcontroller?
Answer: (B) 8-bit CPU, 4 KB on-chip ROM, 128 bytes RAM, four I/O ports and two timers
The 8051 is a classic microcontroller family.
Which microcontroller is used on the Arduino Uno board?
Answer: (B) ATmega328P
It is an 8-bit AVR microcontroller.
What is GPIO in a microcontroller?
Answer: (A) General-purpose input/output pins that can be programmed as inputs or outputs
GPIO pins connect switches, LEDs and sensors.
Which serial communication protocol uses only two wires, SDA and SCL?
Answer: (D) I²C
I²C supports multiple devices on a shared bus.
Which serial protocol uses separate MOSI, MISO, SCK and chip select lines for fast communication?
Answer: (C) SPI
SPI is used for memory and display interfaces.
What is a UART used for?
Answer: (B) Asynchronous serial communication using transmit and receive lines
UARTs implement RS-232-style serial links.
What is the purpose of a watchdog timer in a microcontroller?
Answer: (D) To reset the system if the program hangs and fails to refresh the timer
It improves reliability of embedded systems.
What is the purpose of a PWM output on a microcontroller?
Answer: (A) To control average power to loads such as motors and LEDs
Duty cycle sets the average output.
What is the scan cycle of a PLC?
Answer: (C) Reading inputs, executing the program and updating outputs repeatedly
Scan times are usually a few milliseconds.
Which programming language for PLCs resembles relay wiring diagrams?
Answer: (C) Ladder diagram
Ladder logic is defined in IEC 61131-3.
Which standard defines PLC programming languages such as ladder diagram and structured text?
Answer: (A) IEC 61131-3
It includes five languages.
What is a TON instruction in a PLC?
Answer: (B) An on-delay timer that turns its output on after a set time
TOF is an off-delay timer.
What is the purpose of an HMI in industrial control?
Answer: (D) To allow operators to monitor and control the process through a display
HMI stands for human–machine interface.
Which industrial communication protocol is widely used between PLCs, meters and SCADA systems?
Answer: (A) Modbus
Modbus RTU runs over RS-485 and Modbus TCP over Ethernet.
What is an embedded system?
Answer: (C) A dedicated computer system built into a device to perform specific functions
Washing machines and meters contain embedded systems.
What type of output module is used in a PLC to switch AC loads such as contactor coils?
Answer: (D) Relay or triac output module
Transistor outputs switch DC loads.
Which 32-bit processor architecture dominates modern microcontrollers and mobile devices?
Answer: (B) ARM
ARM Cortex-M cores are widely used in embedded systems.
What is the function of an on-chip ADC in a microcontroller?
Answer: (A) To convert analog sensor voltages into digital values
Typical microcontroller ADCs have 10–12 bits.
Which network is commonly used in vehicles for communication between electronic control units?
Answer: (B) CAN bus
CAN is robust in noisy environments.
What is the main advantage of a PLC over hard-wired relay control?
Answer: (C) Logic can be changed by reprogramming without rewiring
PLCs also offer diagnostics and communication.
What is the purpose of the timer/counter peripheral in a microcontroller?
Answer: (D) To measure time intervals, generate delays and count external events
Timers also generate PWM signals.
Which device is commonly used by DISCO grid stations to send data to control centres?
Answer: (D) Remote terminal unit (RTU) or substation automation controller
They link to SCADA systems.
What is the function of an interrupt in a microcontroller program?
Answer: (A) To respond quickly to events such as timer overflow or external signals
Interrupt service routines handle the event.
What is an RTOS used for in embedded systems?
Answer: (C) Managing tasks with predictable timing in real-time applications
Real-time operating systems schedule tasks deterministically.
What is the function of a PLC input module?
Answer: (D) To connect field signals such as switches and sensors to the PLC processor
Inputs are often 24 V DC.
What is a PLC counter instruction used for?
Answer: (D) Counting events such as products on a conveyor
Up and down counters are common.
What is the purpose of retentive memory in a PLC?
Answer: (B) To keep values such as counts and timer values during power loss
Battery-backed or non-volatile memory is used.
What does SCADA stand for?
Answer: (A) Supervisory Control and Data Acquisition
SCADA monitors grids, pipelines and water systems.
Which RS standard is used for robust multi-drop serial communication in industrial networks?
Answer: (C) RS-485
RS-485 supports long cables and many devices.