
Q91
Q91 A counter stops incrementing on external events. What is the most probable issue?
Incorrect edge selection
Prescaler mismatch
Interrupt disabled
Timer mode used
Q92
Q92 What does I/O stand for in embedded systems?
Input Only
Input/Output
Interrupt Output
Indirect Operations
Q93
Q93 Which register is typically used to configure the direction of a GPIO pin?
PORT
PIN
DDR
OCR
Q94
Q94 What is the main purpose of pull-up resistors in GPIO programming?
Increase speed
Provide stable HIGH
Reduce voltage
Improve communication
Q95
Q95 Which of the following is true about SPI communication?
It uses a single data line
It uses a clock signal
It is slower than UART
It is wireless
Q96
Q96 What is the purpose of a GPIO interrupt in I/O programming?
To toggle pin state
To execute a specific function on pin state change
To reset GPIO
To configure pull-up
Q97
Q97 What does this code do?
PORTB |= (1 << PB0);
Sets PB0 HIGH
Sets PB0 LOW
Toggles PB0
Reads PB0
Q98
Q98 What will happen with this code?
if (PINB & (1 << PB1))
{
PORTC |= (1 << PC0);
}
Sets PC0 HIGH if PB1 is HIGH
Sets PC0 LOW if PB1 is HIGH
Toggles PC0
No action
Q99
Q99 What will be the effect of this code?
DDRD &= ~(1 << PD2); PORTD |= (1 << PD2);
Configures PD2 as input with pull-up resistor enabled
Configures PD2 as output
Configures PD2 as floating input
Disables PD2 pin
Q100
Q100 What will the following code achieve?
for(;;)
{
PORTB ^= (1 << PB0); _delay_ms(1000); }
PB0 blinks every second
PB0 stays LOW
PB0 toggles once
Error in code
Q101
Q101 A GPIO pin configured as input always reads LOW. What could be the most likely reason?
Pull-up resistor not enabled
Incorrect DDR configuration
Interrupt not triggered
Incorrect PORT configuration
Q102
Q102 A GPIO pin configured as output does not change state. What could be the issue?
Incorrect DDR configuration
Interrupt priority
Wrong clock frequency
Incorrect ADC setting
Q103
Q103 A peripheral connected via UART does not send data. What could be a likely cause?
Baud rate mismatch
Incorrect GPIO mode
Wrong interrupt priority
Clock frequency mismatch
Q104
Q104 What does RTOS stand for?
Real-Time Operating System
Random Task Operating System
Rapid Task Operating System
Real-Time Operation Scheduler
Q105
Q105 What is a task in the context of RTOS?
A function in a program
A program that runs continuously
A specific job executed by RTOS
A hardware interrupt
Q106
Q106 Which RTOS scheduling type ensures the highest priority task is always executed?
Round-robin
Priority-based
Time-slicing
First-in-first-out
Q107
Q107 What is the main purpose of a semaphore in RTOS?
To manage memory
To synchronize tasks
To schedule interrupts
To store data
Q108
Q108 What is the difference between a binary semaphore and a counting semaphore in RTOS?
Binary is faster
Counting allows multiple resource access
Binary uses memory
No difference
Q109
Q109 What does this code snippet do?
xSemaphoreGive(semaphore);
Creates a semaphore
Takes a semaphore
Releases a semaphore
Deletes a semaphore
Q110
Q110 What will happen in this code?
xTaskCreate(Task1, "Task1", 128, NULL, 2, NULL);
Creates Task1 with priority 2
Creates Task1 with priority 128
Deletes Task1
Task1 runs indefinitely
Q111
Q111 What does this configuration do?
vTaskStartScheduler();
Ends RTOS
Pauses tasks
Starts RTOS scheduler
Creates a new task
Q112
Q112 A task in RTOS does not start. What could be the most likely reason?
Incorrect priority
Scheduler not started
Semaphore issue
Task stack overflow
Q113
Q113 A high-priority task in RTOS does not execute. What could be the cause?
Semaphore not available
Task delay function
Incorrect priority assigned
Task is suspended
Q114
Q114 What is the maximum number of devices that can be connected in an I2C bus?
8 devices
16 devices
127 devices
256 devices
Q115
Q115 What is the role of the clock line (SCL) in the I2C communication protocol?
Carries data
Carries address
Synchronizes data transfer
Indicates device presence
Q116
Q116 Which of the following is a key feature of the SPI protocol that makes it faster than I2C?
Single master communication
Uses multiple lines
Supports higher speeds
Does not require pull-up resistors
Q117
Q117 In UART communication, what is the main purpose of the start bit?
Signals the end of transmission
Indicates data bit start
Resets the receiver
Synchronizes data transfer
Q118
Q118 What is the maximum speed supported by the I2C communication protocol?
100 Kbps
400 Kbps
1 Mbps
3.4 Mbps
Q119
Q119 What will this code do?
SPCR |= (1 << MSTR);
Sets SPI as master mode
Sets SPI as slave mode
Resets SPI settings
Starts SPI communication
Q120
Q120 What will be the effect of this code?
UCSR0A |= (1 << U2X0);
Doubles UART baud rate
Enables UART TX
Disables UART RX
Resets UART settings