Uploaded by aliff shaari

micropquiz

advertisement
Quiz: Fundamentals of Microprocessor & Embedded System
1. What is a Microprocessor?
 A. A type of computer memory
 B. An integrated circuit that performs CPU functions
 C. A software programming tool
 D. A type of microcontroller
2. Which was the first microprocessor introduced and in what year?
 A. Intel 8085 in 1975
 B. Intel 4004 in 1971
 C. AMD K5 in 1996
 D. Motorola 68000 in 1979
3. What are the three basic circuits a typical microprocessor consists of?
 A. ALU, Registers, and Control Unit
 B. CPU, GPU, and ALU
 C. Input, Output, and Storage Units
 D. Processor, Memory, and Motherboard
4. What does ALU stand for and what is its function in a microprocessor?
 A. Arithmetic Logic Unit, performs calculations and logical operations
 B. Application Logic Unit, runs specific applications
 C. Advanced Learning Unit, processes advanced algorithms
 D. Audio Logic Unit, processes sound data
5. Which architecture is commonly used in ARM processors?
 A. x86 architecture
 B. 32-bit and 64-bit RISC architecture
 C. MIPS architecture
 D. Harvard architecture
6. What is the primary difference between a microprocessor and a microcontroller?
 A. Microprocessors have higher computing power than microcontrollers
 B. Microcontrollers are integrated circuits, while microprocessors are not
 C. Microcontrollers are designed for control applications and include integrated
memory and peripherals
 D. Microprocessors are used in mobile computing, while microcontrollers are not
7. What year was the ARM1 processor introduced, and what was notable about its
architecture?
 A. 1985, first to use a 32-bit RISC architecture
 B. 1978, first to use an 8-bit architecture
 C. 1990, introduced the x86 architecture
 D. 1981, used a unique CISC architecture
8. Which of the following is not a typical application of microprocessors?
 A. Mobile computing
 B. Embedded systems
 C. Large-scale data processing
 D. Desktop computing
9. In the context of microprocessors, what does 'VLSI' stand for?
 A. Very Large Scale Integration
 B. Variable Length System Integration
 C. Virtual Logic System Interface
 D. Visual Light Spectrum Indicator
10. What role does the 'Control Unit' play in a microprocessor?
 A. It stores data and instructions
 B. It executes arithmetic and logical operations
 C. It manages and coordinates the activities of all parts of the computer
 D. It interfaces with external peripherals
Quiz: Introduction to Microcontrollers
1. What is a Microcontroller?
 A. A device used for data storage
 B. An integrated circuit for processing data
 C. A System-on-Chip (SoC) integrating a CPU, memory, and peripherals
 D. A type of personal computer
2. What was the first commercially available microcontroller?
 A. Intel 8051
 B. TI TMS1000
 C. Microchip PIC16x84
 D. Motorola 68HC11
3. Which of the following is a feature of ARM Cortex-M microcontrollers?
 A. 8-bit RISC architecture
 B. 32-bit RISC architecture
 C. 64-bit CISC architecture
 D. Dual-core processor design
4. Which memory type is used for storing the program code in a microcontroller?
 A. DRAM
 B. EEPROM
 C. Flash ROM
 D. SRAM
5. What is the main difference between a microcontroller and a microprocessor?
 A. Microcontrollers are only used in computers, while microprocessors are used in
embedded systems
 B. Microcontrollers integrate a CPU, memory, and peripherals on a single chip, while
microprocessors do not
 C. Microprocessors have higher computing power than microcontrollers
 D. Microprocessors are smaller than microcontrollers
6. Which year did the ARM Cortex-M series microcontrollers first appear?
 A. 2004
 B. 1994
 C. 1985
 D. 1993
7. What is the primary use of RAM in a microcontroller?
 A. To store the operating system
 B. To temporarily hold data for processing
 C. For long-term data storage
 D. To control input and output devices
8. Which of the following microcontrollers is based on the ARM Cortex-M processor?
 A. Intel 8051
 B. STM32
 C. Atmel AVR ATmega
 D. Microchip PIC16x84
9. What does 'STM' in STM32 microcontroller stand for?
 A. Standard Microcontroller
 B. STMicroelectronics
 C. State-of-the-art Microcontroller
 D. Superior Technology Microcontroller
10. Which type of memory in a microcontroller retains its data even after power is turned off?
 A. RAM
 B. EEPROM
 C. CPU Registers
 D. Cache
Quiz: Understanding the STM32L053R8 Microcontroller
1. What is the CPU type used in the STM32L053R8 microcontroller?
 A. ARM32-bit Cortex-M0+
 B. Intel 8-bit microprocessor
 C. ARM64-bit Cortex-A53
 D. MIPS 32-bit processor
2. What is the maximum CPU frequency of the STM32L053R8 microcontroller?
 A. 16 MHz
 B. 32 MHz
 C. 48 MHz
 D. 64 MHz
3. How much Flash ROM does the STM32L053R8 have?
 A. 16 KB
 B. 32 KB
 C. 64 KB
 D. 128 KB
4. What is the primary function of Direct Memory Access (DMA) in the STM32L053R8?
 A. To increase the processing speed of the CPU
 B. To provide high-speed data transfer between peripherals and memory
 C. To store the operating system
 D. To control input and output devices
5. Which of the following is not a feature of the STM32L053R8 microcontroller?
 A. 51 GPIO with external interrupt capability
 B. 12-bit ADC with 16 channels
 C. Integrated Wi-Fi module
 D. USB 2.0 full speed
6. What voltage range does the STM32L053R8 operate in?
 A. 1.65V to 3.6V
 B. 1.0V to 5.0V
 C. 2.0V to 4.5V
 D. 3.3V to 5.5V
7. What is the size of SRAM in the STM32L053R8 microcontroller?
 A. 2 KB
 B. 4 KB
 C. 8 KB
 D. 16 KB
8. Which peripheral is not supported by the STM32L053R8’s DMA controller?
 A. ADC
 B. Timers
 C. Ethernet
 D. USART
9. What type of clock is used at RESET in the STM32L053R8?
 A. HSE OSC clock
 B. LSE OSC clock
 C. HSI RC clock
 D. PLL clock
10. What is the temperature range within which the STM32L053R8 can operate?
 A. -40 to +85 °C



B. -20 to +100 °C
C. -40 to +125 °C
D. 0 to +70 °C
Quiz: Programming Microcontrollers in C
1. What is the primary use of bitwise operators in C programming for embedded systems?
 A. To perform arithmetic operations
 B. To manipulate data at the bit level
 C. To handle error checking
 D. To manage memory allocation
2. Which data type in C would be most suitable for storing a 16-bit integer?
 A. char
 B. int
 C. short
 D. long
3. What is the function of a pointer in C programming?
 A. To store the actual data value
 B. To perform arithmetic operations
 C. To store the memory address of another variable
 D. To define a new data type
4. What does the 'stdint.h' library in C provide for embedded programming?
 A. Standardized set of integer data types
 B. Functions for standard input and output
 C. Library for string manipulation
 D. Graphics and visualization tools
5. Which of the following is a correct representation of a 32-bit hexadecimal number in C?
 A. 0x12345
 B. 12345h
 C. #12345
 D. 0x12345678
6. How does using a structure data type in C benefit embedded programming?
 A. It simplifies access to peripheral registers
 B. It reduces the overall program size
 C. It speeds up the execution of the program
 D. It enhances the graphical interface of the program
7. What is a 'bit mask' used for in C programming?
 A. To reset all bits in a byte
 B. To set or clear specific bits in a byte
 C. To convert binary data to hexadecimal
 D. To perform floating-point arithmetic
8. In the context of embedded programming, what is the significance of using the 'volatile'
keyword in C?
 A. It indicates that a variable may be changed by an external process or interrupt
 B. It ensures that a variable is stored in ROM
 C. It optimizes the program for faster execution
 D. It encrypts the variable for security purposes
9. Which bitwise operator is used to shift bits to the left in a variable?
 A. &
 B. |
 C. <<
 D. >>
10. What is the result of the following bitwise operation in C: 0x0F | 0xF0?




A. 0xFF
B. 0x00
C. 0x0F
D. 0xF0
Quiz: MCU Development Tools and STM32CubeIDE
1. What is the primary purpose of STM32CubeIDE in STM32 microcontroller development?
 A. To design the microcontroller hardware
 B. For web development
 C. As an all-in-one development tool for configuring, compiling, and debugging
 D. To create graphical user interfaces
2. Which of the following is a feature of the NUCLEO-L053R8 development board?
 A. Integrated Wi-Fi module
 B. On-board ST-LINK debugger/programmer
 C. High-resolution touch screen
 D. Built-in operating system
3. What type of development board is recommended for STM32 microcontrollers?
 A. Arduino UNO
 B. Raspberry Pi
 C. STM32 NUCLEO
 D. BeagleBone Black
4. Which software library is used for abstracting peripheral access in STM32 development?
 A. Standard Peripheral Library
 B. STM32 HAL (Hardware Abstraction Layer)
 C. Direct Register Access Library
 D. ARM mbed OS
5. In STM32CubeIDE, what is the purpose of STM32CubeMX?
 A. To generate initialization C code
 B. For creating 3D models of the MCU
 C. To program in Python
 D. For advanced image processing
6. What is a primary feature of armKEIL MDK in the context of STM32 development?
 A. It is a hardware prototyping platform
 B. Software development solution incorporating components for building and
debugging
 C. It is a cloud-based service for data analytics
 D. A tool for designing PCB layouts
7. What is the first step in starting a new project in STM32CubeIDE?
 A. Writing the main application code
 B. Configuring the MCU or the development board
 C. Connecting the board to a power source
 D. Designing the user interface
8. What is the function of the STM32CubeProg tool in STM32CubeIDE?
 A. To generate sound effects
 B. To upload code to microcontroller memory
 C. For creating animations
 D. To measure power consumption
9. Which file is primarily modified by the user in STM32CubeIDE for application development?
 A. main.c
 B. system_stm32l0xx.c
 C. startup_stm32l053xx.s
 D. stm32l0xx_hal_conf.h
10. What does STM32CubeMonitor primarily do in STM32CubeIDE?




A. Provides a 3D view of the MCU
B. Fine-tunes and diagnoses STM32 applications at run-time
C. Manages cloud connectivity
D. Generates high-level code automatically
Quiz: STM32 Microcontroller Programming
1. What function is commonly used to initialize the HAL library in STM32 programming?
 A. HAL_Init()
 B. Sys_Init()
 C. MCU_Start()
 D. Board_Init()
2. In STM32 programming, which function is used to configure the system clock?
 A. SystemClock_Config()
 B. Clock_Setup()
 C. Configure_Clock()
 D. Init_Clock()
3. For the NUCLEO-L053R8, what is the correct way to define a pin as output for LED blinking?
 A. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT;
 B. LED_Output.Mode = GPIO_MODE_LED;
 C. GPIO_InitStruct.Pin = GPIO_PIN_LED;
 D. LED_PIN.Mode = OUTPUT;
4. What is the purpose of the HAL_GPIO_TogglePin() function in STM32?
 A. To read the current state of a GPIO pin
 B. To set a GPIO pin to high
 C. To toggle the state of a GPIO pin
 D. To configure a GPIO pin
5. Which function is used to introduce a delay in STM32 programming?
 A. HAL_Delay(milliseconds);
 B. Wait(milliseconds);
 C. Delay_ms(milliseconds);
 D. Sleep(milliseconds);
6. What does the 'HAL' in 'HAL_GPIO_TogglePin()' stand for?
 A. Hardware Abstraction Layer
 B. High-level Application Layer
 C. Hardware Application Logic
 D. High-speed Algorithmic Logic
7. In the context of STM32, what does CMSIS stand for?
 A. Core Microcontroller System Interface Standard
 B. Cortex-M Software Interface Standard
 C. Core Managed Software Integration System
 D. Cortex Microcontroller Software Interface Standard
8. How is the main user LED accessed on the NUCLEO-L053R8 board in code?
 A. LED_BUILTIN
 B. NUCLEO_LED
 C. GPIO_PIN_5
 D. LD2
9. In STM32CubeIDE, which file typically contains the main application code?
 A. main.c
 B. stm32l0xx_it.c
 C. system_stm32l0xx.c
 D. startup_stm32l053xx.s
10. Which of the following is the correct process for blinking an LED on the NUCLEO-L053R8?




A. Initialize the HAL library, configure the GPIO pin, and use a loop with
HAL_GPIO_WritePin()
B. Directly write to the GPIO port register in a loop
C. Use an external library for LED control
D. Modify the bootloader configuration
Generation, transmission and distribution of electricity via the National Grid system is accomplished
by three-phase alternating currents.
The voltage is induced by a single coil when rotated in a uniform magnetic field is known as a singlephase voltage.
Most consumers are fed by means of a single-phase a.c. supply.
Two wires are used, one called the live conductor (red) and the other is called the neutral conductor
(black).
The neutral is usually connected via protective gear to earth (green).
The standard voltage for a single-phase a.c. supply is 240 V.
The majority of single-phase supplies are obtained by connection
A three-phase supply is generated when three coils are placed 120° apart and the whole rotated in a
uniform magnetic field.
The result is three independent supplies of equal voltages which are each displaced by 120° from each
other.
The convention adopted to identify each of the phase voltages is:
R-red
Y-yellow
B-blue
The phase-sequence is given by the sequence in which the conductors pass the point initially taken by
the red conductor.
The national standard phase sequence is R, Y, B.
A three-phase a.c. supply is carried by three conductors, called ‘lines’ which are coloured red, yellow
and blue.
The currents in these conductors are known as line currents (IL)
The potential difference between them are known as line voltages (VL).
A fourth conductor, called the neutral (coloured black, and connected through protective devices to
earth) is often used with a three-phase supply.
If the three-phase windings are kept independent, then six wires are needed to connect a supply
source (generator) to a load (motor).
To reduce the number of wires it is usual to interconnect the three phases.
There are two ways in which this can be done, these being:
STAR connection
DELTA connection
Quiz: C Programming for Embedded Systems
1. What is the purpose of using bitwise operators in embedded C programming?
 A. To handle file operations
 B. To manipulate individual bits within a data type
 C. To manage dynamic memory allocation
 D. To perform high-level mathematical operations
2. When programming a microcontroller in C, which data type would you use to store a 16-bit
unsigned integer?
 A. int
 B. short
 C. long
 D. uint16_t
3. What is the role of a pointer in C programming?
 A. To store a direct value
 B. To point to a memory location where a value is stored
 C. To increase the execution speed of the program
 D. To define a new data type
4. In the context of embedded C programming, what does 'volatile' keyword signify when
declaring a variable?
 A. The variable will be stored in non-volatile memory
 B. The variable can change unexpectedly and should not be optimized by the compiler
 C. The variable will have global scope
 D. The variable will be initialized to zero
5. Which of the following correctly represents a bitwise AND operation in C?
 A. result = a && b;
 B. result = a & b;
 C. result = a | b;
 D. result = a ^ b;
6. How do you declare a pointer to an integer in C?
 A. int *ptr;
 B. int ptr;
 C. *int ptr;
 D. ptr int*;
7. What is the result of the following bitwise shift operation in C: 0x02 << 2?
 A. 0x04
 B. 0x08
 C. 0x20
 D. 0x02
8. Which C standard library header file is essential for using fixed-width integer types like
uint32_t in embedded programming?
 A. <stdio.h>
 B. <stdlib.h>
 C. <stdint.h>
 D. <string.h>
9. In embedded systems programming, why is it important to understand the processor's
architecture?
 A. To optimize memory usage and execution speed
 B. To interface with the operating system
 C. For aesthetic user interface design
 D. To comply with legal software requirements
10. What is the purpose of using the const keyword in embedded C programming?
 A. To declare a variable that can change at runtime
 B. To define a variable that cannot be modified after its declaration
 C. To indicate that a variable is a constant pointer
 D. To create a new data type
Download