0% found this document useful (0 votes)
37 views8 pages

Mcqs For Puzzle With Pic Microcontroller: Kurumbapalayam (Po), Coimbatore - 641 107

The document contains multiple-choice questions (MCQs) related to implementing a 5x5 sliding puzzle using PIC microcontrollers, focusing on various aspects such as interfacing, memory management, and input handling. Key topics include the choice of microcontroller, peripheral modules, and programming techniques for effective puzzle functionality. The answers to the questions are provided, highlighting essential knowledge for working with PIC microcontrollers in this context.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views8 pages

Mcqs For Puzzle With Pic Microcontroller: Kurumbapalayam (Po), Coimbatore - 641 107

The document contains multiple-choice questions (MCQs) related to implementing a 5x5 sliding puzzle using PIC microcontrollers, focusing on various aspects such as interfacing, memory management, and input handling. Key topics include the choice of microcontroller, peripheral modules, and programming techniques for effective puzzle functionality. The answers to the questions are provided, highlighting essential knowledge for working with PIC microcontrollers in this context.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

SNS COLLEGE OF ENGINEERING

Kurumbapalayam (Po), Coimbatore – 641 107


AN AUTONOMOUS INSTITUTION

Approved by AICTE, New Delhi and Affiliated to Anna University, Chennai

MCQs for Puzzle with PIC Microcontroller

1. What type of PIC microcontroller is commonly used for implementing a 5x5 sliding
puzzle?

a) PIC16F84

b) PIC18F4550

c) PIC32MX795F512L

d) PIC12F675

Answer: b) PIC18F4550

2. Which peripheral module in a PIC microcontroller would you use to interface with an
LCD display for showing the puzzle?

a) Timer module

b) UART module

c) LCD controller module (or a compatible GPIO-based approach)

d) ADC module

Answer: c) LCD controller module (or a compatible GPIO-based approach)

3. In a PIC microcontroller, how would you typically handle button inputs for controlling
the puzzle?

a) Using analog-to-digital conversion (ADC)

b) Using GPIO (General Purpose Input/Output) pins configured as inputs

c) Using UART for serial communication

d) Using a timer interrupt


Answer: b) Using GPIO (General Purpose Input/Output) pins configured as inputs

4. What is the purpose of using a timer interrupt in a PIC microcontroller for the 5x5
sliding puzzle?

a) To handle user input detection

b) To refresh the display periodically

c) To communicate with a PC over serial

d) To generate random puzzle configurations

Answer: b) To refresh the display periodically

5. Which instruction set architecture does the PIC microcontroller use?

a) ARM

b) CISC (Complex Instruction Set Computer)

c) RISC (Reduced Instruction Set Computer)

d) VLIW (Very Long Instruction Word)

Answer: c) RISC (Reduced Instruction Set Computer)

6. What is the maximum size of EEPROM typically available on a PIC microcontroller for
storing the puzzle state?

a) 64 bytes

b) 256 bytes

c) 1 KB

d) 4 KB

Answer: b) 256 bytes

7. How would you implement tile movement functionality in a PIC microcontroller for the
sliding puzzle?

a) Use software routines to swap tile positions in an array

b) Use hardware shift registers


c) Utilize the ADC module to read tile positions

d) Employ UART to send movement commands to a PC

Answer: a) Use software routines to swap tile positions in an array

8. For debugging a 5x5 sliding puzzle implemented on a PIC microcontroller, which tool
would be most useful?

a) Logic analyzer

b) Oscilloscope

c) In-circuit debugger (ICD)

d) Power supply analyzer

Answer: c) In-circuit debugger (ICD)

9. How can you handle the communication between the PIC microcontroller and a PC for
debugging purposes?

a) Using a UART serial connection

b) Using a SPI interface

c) Using I2C protocol

d) Using PWM signals

Answer: a) Using a UART serial connection

10. Which type of memory in a PIC microcontroller would you use to store the firmware
for the sliding puzzle application?

a) RAM (Random Access Memory)

b) EEPROM

c) Flash memory

d) Cache memory

Answer: c) Flash memory


11. What is the typical frequency range for the crystal oscillator used in PIC
microcontrollers?

a) 1 MHz to 8 MHz

b) 4 MHz to 16 MHz

c) 20 MHz to 50 MHz

d) 100 MHz to 200 MHz

Answer: b) 4 MHz to 16 MHz

12. Which module in a PIC microcontroller would you use to generate precise delays for
timing purposes in your puzzle application?

a) Timer module

b) PWM module

c) UART module

d) ADC module

Answer: a) Timer module

13. What is the primary advantage of using an interrupt service routine (ISR) in your PIC
microcontroller application?

a) To continuously check for user input

b) To execute code in response to specific events without polling

c) To increase the clock speed of the microcontroller

d) To handle serial communication automatically

Answer: b) To execute code in response to specific events without polling

14. How do you typically manage the state of the 5x5 sliding puzzle in the microcontroller?

a) Store the state in a 2D array in RAM

b) Store the state in EEPROM

c) Use global variables to track the state


d) Keep the state on an external SD card

Answer: a) Store the state in a 2D array in RAM

15. What is the function of the "Watchdog Timer" in a PIC microcontroller application?

a) To monitor the serial communication status

b) To provide periodic timing interrupts

c) To reset the microcontroller in case of a malfunction or hang

d) To handle external interrupts

Answer: c) To reset the microcontroller in case of a malfunction or hang

16. When interfacing an LCD with a PIC microcontroller, which communication protocol
is often used?

a) I2C

b) SPI

c) GPIO (parallel interface)

d) UART

Answer: c) GPIO (parallel interface)

17. What is the role of the PIC microcontroller’s "configuration bits" in your application?

a) To define the memory layout of the application

b) To configure the microcontroller's operational settings (e.g., clock source, watchdog timer)

c) To manage the serial communication baud rate

d) To handle input and output pin assignments

Answer: b) To configure the microcontroller's operational settings (e.g., clock source, watchdog
timer)

18. How would you implement a feature to save and restore the puzzle state after a power
cycle on a PIC microcontroller?

a) Store the state in EEPROM


b) Store the state in RAM

c) Store the state in Flash memory

d) Use external storage like an SD card

Answer: a) Store the state in EEPROM

19. What is the primary purpose of using an "analog-to-digital converter (ADC)" in a PIC
microcontroller for the 5x5 sliding puzzle?

a) To read analog sensors that might control the puzzle

b) To communicate with a PC

c) To generate PWM signals for driving motors

d) To handle digital input and output

Answer: a) To read analog sensors that might control the puzzle

20. How would you typically test the functionality of the 5x5 sliding puzzle software
implemented on a PIC microcontroller?

a) Use simulation software to test the code

b) Write test cases and run them on the microcontroller

c) Check the hardware connections manually

d) Measure the power consumption of the microcontroller

Answer: b) Write test cases and run them on the microcontroller

21. Which communication interface is commonly used for programming the PIC
microcontroller with the sliding puzzle firmware?

a) JTAG

b) UART

c) SPI

d) I2C

Answer: a) JTAG
22. What is the purpose of using the "Peripheral Pin Select (PPS)" feature in some PIC
microcontrollers?

a) To configure the pins for alternate functions (e.g., UART, PWM) based on application needs

b) To enable external interrupts

c) To increase the clock speed of the microcontroller

d) To manage memory allocation

Answer: a) To configure the pins for alternate functions (e.g., UART, PWM) based on
application needs

23. How can you ensure the PIC microcontroller handles multiple tile movement
commands without missing inputs?

a) Use interrupt-based input handling for real-time responsiveness

b) Poll input pins continuously in a loop

c) Use a dedicated external processor

d) Increase the clock frequency

Answer: a) Use interrupt-based input handling for real-time responsiveness

24. What is the function of the "TRIS" register in a PIC microcontroller?

a) To configure the data direction of I/O pins (input or output)

b) To set the clock frequency

c) To manage the UART baud rate

d) To configure the ADC resolution

Answer: a) To configure the data direction of I/O pins (input or output)

25. When designing the firmware for a 5x5 sliding puzzle on a PIC microcontroller, which
factor is critical for real-time performance?

a) Memory size

b) Processing speed and efficient algorithm implementation


c) Serial communication baud rate

d) External peripherals used

Answer: b) Processing speed and efficient algorithm implementation

You might also like