Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ELE421 - FINALS LONG QUIZ

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.

What type of architecture does the PIC16F628A use?

a)

Von Neumann

b)

RISC

c)

Harvard

d)

ARM

2.

How many instructions does the PIC16F628A support in its instruction set?

a)

20

b)

74

c)

50

d)

100

3.

What is the instruction width of the PIC16F628A?

a)

8-bit

b)

14-bit

c)

16-bit

d)

32-bit

4.

What is the main advantage of the Harvard architecture used in PIC16F628A?

a)

Reduces power consumption

b)

Faster instruction execution

c)

Single memory access

d)

Low-cost components

5.

What feature allows the PIC16F628A to execute most instructions in a single cycle?

a)

Two-stage pipeline

b)

Multi-core processing

c)

Flash memory

d)

Low power consumption

6.

How many pins does the PIC16F628A have?

a)

8

b)

16

c)

18

d)

20

7.

What is the role of the TRISA register?

a)

Control PORTA direction

b)

Set oscillator frequency

c)

Manage power modes

d)

Enable interrupts

8.

What clock speed allows instructions to execute in 200 ns?

a)

5 MHz

b)

10 MHz

c)

20 MHz

d)

50 MHz

9.

Which pin is used for Master Clear (MCLR)?

a)

RA0

b)

RB1

c)

RA4

d)

RA5

10.

What is the function of the CMCON register?

a)

Configures comparators

b)

Sets clock modes

c)

Enables interrupts

d)

Defines program memory size

11.

Which oscillator type minimizes power consumption?

a)

XT

b)

LP

c)

INTOSC

d)

RC

12.

What type of memory is used in PIC16F628A for program storage?

a)

SRAM

b)

EEPROM

c)

Flash

d)

ROM

13.

What is the main function of the STATUS register?

a)

Controls data direction

b)

Indicates ALU results

c)

Configures oscillator

d)

Enables interrupts

14.

What is the size of the program memory access bus in PIC16F628A?

a)

8-bit

b)

14-bit

c)

16-bit

d)

32-bit

15.

Which command puts the PIC16F628A into sleep mode?

a)

CLR

b)

SLEEP

c)

NOP

d)

RESET

16.

What is the role of the INDF register?

a)

Access indirect memory locations

b)

Configure I/O pins

c)

Set clock speed

d)

Enable power modes

17.

Which pins support interrupt-on-change functionality?

a)

RA0-RA4

b)

RB4-RB7

c)

RC0-RC3

d)

RD0-RD3

18.

What type of oscillator is INTOSC?

a)

External

b)

Internal

c)

Crystal

d)

Low-power

19.

What happens if MCLR is low?

a)

The PIC resets

b)

The PIC halts

c)

Power-down mode is enabled

d)

The PIC executes faster

20.

What is the depth of the hardware stack in PIC16F628A?

a)

4 levels

b)

6 levels

c)

8 levels

d)

16 levels

21.

Which port is used for digital I/O in PIC16F628A?

a)

PORTA and PORTB

b)

PORTC and PORTD

c)

PORTE

d)

PORTF

22.

Which instruction ensures data integrity during program branches?

a)

CALL

b)

GOTO

c)

NOP

d)

RETURN

23.

What is the maximum code compression achieved by PIC16F628A compared to other microcontrollers?

a)

1:1

b)

2:1

c)

3:1

d)

4:1

24.

How many oscillator configurations are available for PIC16F628A?

a)

4

b)

6

c)

8

d)

10

25.

What register enables communication between PORTA and PORTB?

a)

TRISA

b)

TRISB

c)

CMCON

d)

STATUS

26.

What is Arduino?

a)

A proprietary microcontroller

b)

An open-source platform for electronics projects

c)

A debugging tool for microcontrollers

d)

A hardware-specific IDE

27.

What software is used to program an Arduino?

a)

Visual Studio

b)

Arduino IDE

c)

Python IDE

d)

Eclipse

28.

Which of the following is a characteristic of Arduino hardware?

a)

Expensive components

b)

Non-extensible design

c)

Open-source hardware

d)

Limited platform compatibility

29.

Which programming environment is required for Arduino IDE?

a)

Java-based

b)

Python-based

c)

Assembly-based

d)

Visual Basic

30.

Which of the following is not supported by Arduino IDE?

a)

Uploading programs

b)

Debugging utility

c)

Serial communication

d)

Syntax highlighting

31.

What command sets the mode of a pin in Arduino?

a)

digitalWrite()

b)

pinMode()

c)

analogWrite()

d)

digitalRead()

32.

What is the range of values for analogWrite()?

a)

0-1023

b)

0-255

c)

0-5

d)

0-1

33.

What voltage is represented by HIGH in digitalWrite()?

a)

0 Volts

b)

+3.3 Volts

c)

+5 Volts

d)

+12 Volts

34.

Which command reads the value of a digital pin?

a)

digitalWrite()

b)

digitalRead()

c)

analogWrite()

d)

pinMode()

35.

What is the purpose of Serial.read()?

a)

Write data to the serial port

b)

Read data from the serial port

c)

Set the baud rate for serial communication

d)

Clear the serial buffer

36.

What type of pins are supported by analogWrite()?

a)

Digital pins only

b)

Analog pins only

c)

Specific PWM-enabled pins

d)

All pins

37.

Which Arduino function is called only once at the beginning of the program?

a)

setup()

b)

loop()

c)

main()

d)

init()

38.

What does the Arduino platform aim to simplify?

a)

Advanced microcontroller design

b)

Embedded system development

c)

Building electronics projects

d)

High-speed computing

39.

Which symbol is used for grouping statements in Arduino programming?

a)

{ }

b)

[ ]

c)

< >

d)

( )

40.

What is the default pin used in the Arduino blink example?

a)

Pin 0

b)

Pin 13

c)

Pin 7

d)

Pin 1

41.

What is the maximum number of analog input pins in Arduino Uno?

a)

4

b)

6

c)

8

d)

10

42.

Which function is used to produce a PWM output?

a)

digitalWrite()

b)

analogWrite()

c)

digitalRead()

d)

pinMode()

43.

What is the purpose of the delay() function in Arduino?

a)

To halt the program execution indefinitely

b)

To introduce a specific time delay

c)

To reset the microcontroller

d)

To send data over a serial port

44.

What value does digitalRead() return for a HIGH pin?

a)

0

b)

1

c)

255

d)

5

45.

What does the loop() function do in an Arduino program?

a)

Executes once

b)

Repeats continuously

c)

Initializes the program

d)

Terminates the program

46.

Which command is used to send data to the serial monitor?

a)

Serial.print()

b)

Serial.read()

c)

Serial.begin()

d)

Serial.write()

47.

What is the purpose of the Arduino pinMode() function?

a)

Read digital pin values

b)

Set the baud rate

c)

Configure pin direction as input or output

d)

Reset the microcontroller

48.

Which of the following is an open-source feature of Arduino?

a)

IDE

b)

Libraries

c)

Hardware designs

d)

All of the above

49.

What type of signal does analogWrite() generate?

a)

Digital

b)

Analog

c)

PWM

d)

Binary

50.

What is the primary language used for Arduino programming?

a)

Python

b)

JavaScript

c)

C/C++

d)

Assembly