WorksheetsELE421 - FINALS LONG QUIZ
Total questions: 50
Worksheet time: 25mins
What type of architecture does the PIC16F628A use?
Von Neumann
RISC
Harvard
ARM
How many instructions does the PIC16F628A support in its instruction set?
20
74
50
100
What is the instruction width of the PIC16F628A?
8-bit
14-bit
16-bit
32-bit
What is the main advantage of the Harvard architecture used in PIC16F628A?
Reduces power consumption
Faster instruction execution
Single memory access
Low-cost components
What feature allows the PIC16F628A to execute most instructions in a single cycle?
Two-stage pipeline
Multi-core processing
Flash memory
Low power consumption
How many pins does the PIC16F628A have?
8
16
18
20
What is the role of the TRISA register?
Control PORTA direction
Set oscillator frequency
Manage power modes
Enable interrupts
What clock speed allows instructions to execute in 200 ns?
5 MHz
10 MHz
20 MHz
50 MHz
Which pin is used for Master Clear (MCLR)?
RA0
RB1
RA4
RA5
What is the function of the CMCON register?
Configures comparators
Sets clock modes
Enables interrupts
Defines program memory size
Which oscillator type minimizes power consumption?
XT
LP
INTOSC
RC
What type of memory is used in PIC16F628A for program storage?
SRAM
EEPROM
Flash
ROM
What is the main function of the STATUS register?
Controls data direction
Indicates ALU results
Configures oscillator
Enables interrupts
What is the size of the program memory access bus in PIC16F628A?
8-bit
14-bit
16-bit
32-bit
Which command puts the PIC16F628A into sleep mode?
CLR
SLEEP
NOP
RESET
What is the role of the INDF register?
Access indirect memory locations
Configure I/O pins
Set clock speed
Enable power modes
Which pins support interrupt-on-change functionality?
RA0-RA4
RB4-RB7
RC0-RC3
RD0-RD3
What type of oscillator is INTOSC?
External
Internal
Crystal
Low-power
What happens if MCLR is low?
The PIC resets
The PIC halts
Power-down mode is enabled
The PIC executes faster
What is the depth of the hardware stack in PIC16F628A?
4 levels
6 levels
8 levels
16 levels
Which port is used for digital I/O in PIC16F628A?
PORTA and PORTB
PORTC and PORTD
PORTE
PORTF
Which instruction ensures data integrity during program branches?
CALL
GOTO
NOP
RETURN
What is the maximum code compression achieved by PIC16F628A compared to other microcontrollers?
1:1
2:1
3:1
4:1
How many oscillator configurations are available for PIC16F628A?
4
6
8
10
What register enables communication between PORTA and PORTB?
TRISA
TRISB
CMCON
STATUS
What is Arduino?
A proprietary microcontroller
An open-source platform for electronics projects
A debugging tool for microcontrollers
A hardware-specific IDE
What software is used to program an Arduino?
Visual Studio
Arduino IDE
Python IDE
Eclipse
Which of the following is a characteristic of Arduino hardware?
Expensive components
Non-extensible design
Open-source hardware
Limited platform compatibility
Which programming environment is required for Arduino IDE?
Java-based
Python-based
Assembly-based
Visual Basic
Which of the following is not supported by Arduino IDE?
Uploading programs
Debugging utility
Serial communication
Syntax highlighting
What command sets the mode of a pin in Arduino?
digitalWrite()
pinMode()
analogWrite()
digitalRead()
What is the range of values for analogWrite()?
0-1023
0-255
0-5
0-1
What voltage is represented by HIGH in digitalWrite()?
0 Volts
+3.3 Volts
+5 Volts
+12 Volts
Which command reads the value of a digital pin?
digitalWrite()
digitalRead()
analogWrite()
pinMode()
What is the purpose of Serial.read()?
Write data to the serial port
Read data from the serial port
Set the baud rate for serial communication
Clear the serial buffer
What type of pins are supported by analogWrite()?
Digital pins only
Analog pins only
Specific PWM-enabled pins
All pins
Which Arduino function is called only once at the beginning of the program?
setup()
loop()
main()
init()
What does the Arduino platform aim to simplify?
Advanced microcontroller design
Embedded system development
Building electronics projects
High-speed computing
Which symbol is used for grouping statements in Arduino programming?
{ }
[ ]
< >
( )
What is the default pin used in the Arduino blink example?
Pin 0
Pin 13
Pin 7
Pin 1
What is the maximum number of analog input pins in Arduino Uno?
4
6
8
10
Which function is used to produce a PWM output?
digitalWrite()
analogWrite()
digitalRead()
pinMode()
What is the purpose of the delay() function in Arduino?
To halt the program execution indefinitely
To introduce a specific time delay
To reset the microcontroller
To send data over a serial port
What value does digitalRead() return for a HIGH pin?
0
1
255
5
What does the loop() function do in an Arduino program?
Executes once
Repeats continuously
Initializes the program
Terminates the program
Which command is used to send data to the serial monitor?
Serial.print()
Serial.read()
Serial.begin()
Serial.write()
What is the purpose of the Arduino pinMode() function?
Read digital pin values
Set the baud rate
Configure pin direction as input or output
Reset the microcontroller
Which of the following is an open-source feature of Arduino?
IDE
Libraries
Hardware designs
All of the above
What type of signal does analogWrite() generate?
Digital
Analog
PWM
Binary
What is the primary language used for Arduino programming?
Python
JavaScript
C/C++
Assembly
