Sei sulla pagina 1di 99

EEE Unit-4 Introduction to Microcontrollers MCQ's Part-A

Edit

QUESTION

Which of the following is an open- source embedded platform?

A Legato

B Arduino

C Teagueduino

D All of the above

Hide !

Answer D

QUESTION

Atmega 328P is a _____ bit microconrroller

A 8

B 4

C 16

D 64

Hide !

Answer A

QUESTION

Atmega 328P is based on which architechture?


A RISC

B CISC

C Von neumann

D None of above

Hide !

Answer A

QUESTION

Which of the following is not found in the bit pattern of a status register?

A Global interrupt enable

B Positive flag

C Negative flag

D Carry flag

Hide !

Answer B

QUESTION

Proximity sensors are used to measure______

A Light

B Sound

C Ultrasonic waves

D Distance

Hide !

Answer D
QUESTION

Which of the following can be classified as an actuators?

A Solenoid

B Hydraulic cylinders

C Pneumatic cyliders

D All of above

Hide !

Answer D

QUESTION

Which of the following is not an element of a Data Acquisition system?

A Transducers

B Multiplexers

C Demultiplexers

D Attenuators

Hide !

Answer C

QUESTION

Which of the following is a feature of Arduino?

A Cheaper hardware

B Open source hardware

C Supports multiple operating systems

D All of above
Hide !

Answer D

QUESTION

Operating voltage for Arduino Uno is ____V

A 1.3

B 10

C 5

D 2.8

Hide !

Answer C

QUESTION

Programs written using Arduino IDE are called_____

A Sketches

B Source code

C Codes

D Layouts

Hide !

Answer A

QUESTION

File format for Arduino IDE programs is__________

A .uno
B .skt

C .hex

D .ino

Hide !

Answer D

QUESTION

Arduino IDE programs are stored in __________

A Folders

B Root directory

C Sketches

D Sketch book

Hide !

Answer D

QUESTION

The position of declaration of a variable decides its________

A Value

B Usefulness

C Scope

D Type

Hide !

Answer C
QUESTION

Which of the following is NOT a type of variable?

A Double

B Long

C Int

D Unsigned float

Hide !

Answer D

QUESTION

Boolean operator for ‘not’ is ______

A ║

B &

C !!

D !

Hide !

Answer D

QUESTION

A microprocessor is a _____________ digital circuit

A Combinational

B Sequential

C Either

D None of above
Hide !

Answer B

QUESTION

Instructions are coded in ____

A Hexadecimal

B Decimal

C Binary

D None of above

Hide !

Answer C

QUESTION

Accumulator is used to_____

A Store data

B Store result

C Both

D None of above

Hide !

Answer C

QUESTION

Status register is also called _________ register

A Pointer

B Flag
C A

D Stack

Hide !

Answer B

QUESTION

Access time for memory and I/O devices is more in the case of a __________

A Microprocessor

B Microcontroller

C Both

D None of above

Hide !

Answer A

QUESTION

Atmega 328P has________general purpose working registers

A 16

B 32

C 64

D 128

Hide !

Answer B

QUESTION
An instruction register holds the ______ instruction

A Current

B Previous

C Next

D All of above

Hide !

Answer A

QUESTION

If DDxn is written as 1, Pxn is configured as _____ pin and if DDxn is written as 0, Pxn is configured as ______ pin.

A Output, Input

B Output, Output

C Input, Input

D Input, Output

Hide !

Answer A

QUESTION

Accuracy and precision of A/D convertors is dependent on _____

A Sampling interval

B Accuracy of system

C Both

D None of above

Hide !
Answer C

QUESTION

Variables should necessary be initialized when declared

A True

B False

C Can’t say

D None of above

Hide !

Answer B

QUESTION

Which of the following registers are present in a microcontroller?

A Status register

B Accumulator

C Instruction register

D All of the above

Hide !

Answer D

QUESTION

Instruction read from memory is loaded into_______

A Instruction register

B Program counter

C Status
D RAM

Hide !

Answer A

QUESTION

The decoded signals are sent as an input to___________

A ALU

B Instruction register

C Control unit

D Status register

Hide !

Answer C

QUESTION

ALU performs the following operation

A Add

B Ex-or

C Shift right

D All of above

Hide !

Answer D

QUESTION

The __________ is responsible for working of all other parts of microcontroller together
A Control

B ALU

C Accumulator

D Program counter

Hide !

Answer A

QUESTION

_______is used to improve the performance of a microcomputer system

A ROM

B RAM

C Decoders

D Interrupts

Hide !

Answer D

QUESTION

Microcontrollers have ____bit handling instructions

A 2

B 4

C 8

D Multiple

Hide !

Answer D
QUESTION

Microcontrollers have ______ number of multi-functioned pins as compared to microprocessors

A More

B Less

C Same

D None of above

Hide !

Answer A

QUESTION

Embedded microcontrollers require________

A Power

B Reset

C Clock

D All of above

Hide !

Answer D

QUESTION

Which is a criteria for selecting a microcontroller?

A Faster speed

B Reliability

C Both

D None of above
Hide !

Answer C

QUESTION

Atmega 328P has ______ general purpose I/O lines for connecting external device

A 15

B 20

C 23

D 24

Hide !

Answer C

QUESTION

The ALU operations are divided into three main categories

A arithmetic,

B logical

C bit-functions

D All of the above

Hide !

Answer D

QUESTION

What will happen in that condition, if an interrupt occurs while the micro controller is

serving any other interrupt?


A both the interrupts will be handled simultaneously

B the interrupt which is being done first will be served first

C the interrupt that is more priority in the interrupt vector table will be served first

D the interrupt having low priority in the interrupt vector table will be served first

Hide !

Answer C

QUESTION

Each port pin consists of register bits

A DDxn

B PORTxn

C PINxn

D All of the above

Hide !

Answer D

QUESTION

Instruction CBI PORTB.1 means

A clearing the PORTB register

B clearing the first bit of the PORTB register

C setting the PORTB register

D setting the first bit of the PORTB register

Hide !

Answer B
QUESTION

On reset, DDR register of all porths are set to

A 0

B 1

C None of the mentioned

D Both of the mentioned

Hide !

Answer A

QUESTION

Which of the following statements are correct?

A PIN register of a port is used to bring data into CPU from pins

B PORT register is used to send data out to pins

C DDR register is used to control the direction of a port

D all of the mentioned

Hide !

Answer D

QUESTION

Microcontrollers often have

A CPU

B RAM

C ROM

D All of these
Hide !

Answer D

QUESTION

Sketches are written in

A Text console

B Text editor

C Both

D None of above

Hide !

Answer B

QUESTION

Which function configures the specified pins to behave either as an input or an output.

A digitalWrite

B digitalRead

C pinMode

D All of above

Hide !

Answer C

QUESTION

Serial ports are controlled by a special chip called as

A UART
B USART

C Both

D None of above

Hide !

Answer A

QUESTION

Serial communication is classified into

A Simplex communication

B Half duplex communication

C Full duplex communication

D All of above

Hide !

Answer D

QUESTION

______ is the most widely used serial I/O interfacing standard

A MAX232

B RS232

C Both

D None of above

Hide !

Answer B
QUESTION

In RS232, a logic one (1) is represented by

A 5V

B +3 to +25V

C -3 to -25V

D 0V

Hide !

Answer C

QUESTION

In RS232, a logic one (0) is represented by

A 5V

B +3 to +25V

C -3 to -25V

D 0V

Hide !

Answer B

QUESTION

______ of the 32 registers can be used as three 16-bit indirect address register

A 8

B 6

C 3

D 2
Hide !

Answer B

QUESTION

During interrupts and subroutine calls, the return address Program Counter (PC) is stored on the

A SRAM

B STACK

C EEPROM

D None of above

Hide !

Answer B

QUESTION

The Status Register is updated

A After all ALU operations

B Before all ALU operations

C Both

D None

Hide !

Answer A

QUESTION

_______bit in status register must be set for the interrupts to be enabled

A T

B H
C S

D I

Hide !

Answer D

QUESTION

The ports are______________

A unidirectional I/O ports with optional internal pull-ups.

B bi-directional I/O ports with optional external pull-ups.

C bi-directional I/O ports with optional internal pull-ups.

D None of the above

Hide !

Answer C

QUESTION

The Timer/Counter can be clocked by an_______

A Internal clock

B External clock

C Internal and External clock

D None of above

Hide !

Answer C

QUESTION
A small portion of the ______is set aside for the general purpose registers used by the processor and also for the input/output and peripheral
subsystems of microcontroller.

A SRAM

B FLASH EEPROM

C EEPROM

D ALL OF ABOVE

Hide !

Answer A

QUESTION

Arduino uno has 14 number of _______pins.

A Analog input pins

B Digital I/O pins

C PWM pins

D None of the above

Hide !

Answer B

QUESTION

Arduino uno has 6 number of _______pins.

A Analog input pins

B Digital I/O pins

C PWM pins

D None of the above


Hide !

Answer A

QUESTION

Which of the following is not found in the bit pattern of a status register?

A Parity flag

B Global interrupt enable

C Negative flag

D Carry flag

Hide !

Answer A

QUESTION

Which is criteria for selecting a microcontroller?

A Faster Speed

B Reliability

C Both

D None

Hide !

Answer C

QUESTION

Microcontroller can be found in ____________

A Data acquisition systems

B Printers
C Modems

D ALL

Hide !

Answer D

QUESTION

A ____________ is a computer system with dedicated function within a larger mechanical or electrical system.

A Microprocessor

B Microcontroller

C Embedded System

D None

Hide !

Answer C

QUESTION

The role of Embedded system is to __________

A Monitor

B Control a Process

C Integrate

D None of These

Hide !

Answer B

QUESTION
A _________________ is an open source embedded platform which can be used for IOT device.

A Legato

B Arduino

C Teagueduino

D Raspberry

Hide !

Answer D

QUESTION

Raspberry Pi is a ___________ platform.

A Private

B Open source

C Closed

D Public

Hide !

Answer B

QUESTION

Atmega 328P performs powerful instructions in __________Cycles.

A 2

B 4

C 16

D 1

Hide !
Answer D

QUESTION

Atmega 328P has __________ number of instructions

A 130

B 131

C 132

D 133

Hide !

Answer B

QUESTION

Atmega 328P has _____flash memory.

A 8 KByte

B 4 KByte

C 64KByte

D 32 Kbyte

Hide !

Answer D

QUESTION

Atmega 328P has ___________EPROM.

A 2K

B 4K

C 8K
D 1K

Hide !

Answer D

QUESTION

Atmega 328P has __________SRAM.

A 1K

B 2K

C 4K

D 8K

Hide !

Answer B

QUESTION

Atmega 328P has 2 __________bit counters with Prescalar.

A 4

B 8

C 16

D 64

Hide !

Answer B

QUESTION

Atmega 328 P has 1 Timer/Counter with CCM and Prescaler. It is of _______ bits.
A 2

B 4

C 8

D 16

Hide !

Answer D

QUESTION

Atmega 328P has a channel _______________ bit ADC.

A 2

B 5

C 10

D 15

Hide !

Answer C

QUESTION

Atmega 328 P consists of __________Serial USART.

A 1

B 2

C 3

D 4

Hide !

Answer A
QUESTION

Atmega 328P has special features like __________

A Power-on reset

B Brown-out detection

C Internal Oscillator

D All of These

Hide !

Answer D

QUESTION

How many types of sleep modes does Atmega 328P have?

A 3

B 6

C 9

D 12

Hide !

Answer B

QUESTION

To improve parallelism, __________type of architecture is used.

A Harvard

B Von neuman

C Both

D None
Hide !

Answer A

QUESTION

Atmega 328P has ________levels of pipelining.

A 1

B 2

C 3

D 4

Hide !

Answer A

QUESTION

Access time for Atmega 328P microcontroller is __________clock cycle.

A Single

B Double

C Multiple

D None

Hide !

Answer A

QUESTION

The output of ALU Operations is stored in _____________.

A Program counter
B ALU

C Register File

D None

Hide !

Answer C

QUESTION

After every arithmetic operation, _________is updated.

A Status register

B Instruction register

C ALU

D None

Hide !

Answer A

QUESTION

Program counter is __________bits wide.

A 12

B 13

C 14

D 15

Hide !

Answer C
QUESTION

Program counter is also called ___________.

A Pointer

B Instruction Pointer

C Address Pointer

D None

Hide !

Answer B

QUESTION

The ________is the circuit that decodes an opcode

A Decoder

B Instruction decoder

C Both

D None

Hide !

Answer B

QUESTION

The I-bit can be set and cleared by application with _________instructions.

A SEI

B CLI

C Both

D None
Hide !

Answer C

QUESTION

The bit copy instruction and bit store instruction use ___________as source or destination.

A I –bit

B T-bit

C V-bit

D C-bit

Hide !

Answer B

QUESTION

Half carry is useful in ___________arithmetic.

A Addition

B Binary

C Hex

D BCD

Hide !

Answer D

QUESTION

Sign flag is exclusive OR of _________.

A I&T

B T&H
C N&Z

D N&V

Hide !

Answer D

QUESTION

Negative flag when set indicates __________results.

A Negative

B Positive

C Neither

D Can not say

Hide !

Answer A

QUESTION

The stack is usually used for _________.

A Data

B Storing temporary data

C Return addresses

D All of these

Hide !

Answer D

QUESTION
Stack is stored in ________.

A SRAM

B ROM

C DRAM

D EEPROM

Hide !

Answer A

QUESTION

Stack pointer register always points to ______ of stack.

A Bottom

B -1

C Top

D Value

Hide !

Answer C

QUESTION

PUSH instruction _ the stack pointer by 1.

A Increments

B Decrements

C None of these

D Can not say

Hide !
Answer B

QUESTION

_________instruction is used to remove data from stack.

A PUSH

B POP

C CALL

D RET

Hide !

Answer B

QUESTION

Stack pointer gets incremented by ________with the RET instructions.

A 1

B 2

C 3

D 4

Hide !

Answer B

QUESTION

Atmega 328 P has __________I/O registers.

A 16

B 32

C 64
D 128

Hide !

Answer C

QUESTION

In Atmega 328P microcontroller , direction of a particular pin can be changed without changing others.

A True

B False

C Can not Say

D None

Hide !

Answer A

QUESTION

In Atmega 328 P Microcontroller, each output buffer has _______drive characteristics for high sink and source capability.

A Distinct

B Different

C Asymmetrical

D Symmetrical

Hide !

Answer D

QUESTION

The ________flag indicates a carry in arithmetic or logic operation.


A Half Carry Flag

B Sign Flag

C Carry Flag

D None

Hide !

Answer C

QUESTION

The ________ indicates a zero result in an arithmetic or logic operation.

A Negative flag

B Zero Flag

C Sign Flag

D All of the above

Hide !

Answer B

QUESTION

Two’s Complement Overflow Flag supports ________arithmetic.

A 1’S Complement

B Two’s complement

C Three complement

D None

Hide !

Answer B
QUESTION

A bit from a register in the Register File can be copied into T by the _________instruction.

A SEI

B CLI

C BST

D None

Hide !

Answer C

QUESTION

A bit in T can be copied into a bit in a register in the Register File by the ___________ instruction.

A BLD

B BST

C CLI

D SEI

Hide !

Answer A

QUESTION

The _________bit must be set for the interrupts to be enabled.

A Negative flag

B CLI

C T – bit

D Global Interrupt Enable


Hide !

Answer D

QUESTION

PC Stands for ___________.

A Personal computer

B Program counter

C Both

D None

Hide !

Answer B

QUESTION

The ATmega328/P Program Counter (PC) is 14 bits wide, thus addressing the _________ program memory locations.

A 32K

B 24K

C 16 K

D None

Hide !

Answer C

QUESTION

Atmega 328 P controller has ________Ports.

A 2
B 3

C 4

D 5

Hide !

Answer B

QUESTION

The operating frequency of ATmega328 P Controller is ________.

A 12 MHz

B 16 MHz

C 18 MHz

D None

Hide !

Answer B

QUESTION

Port B of Atmega 328P Controller is ________bit wide.

A 8

B 5

C 7

D 3

Hide !

Answer A
QUESTION

Port C of Atmega 328P Controller is ________bit wide.

A 5

B 6

C 7

D 8

Hide !

Answer C

QUESTION

Port D of Atmega 328P Controller is ________bit wide.

A 5

B 6

C 7

D 8

Hide !

Answer D

QUESTION

In Atmega 328P Controller Pin 9 and Pin 10 used as a____________.

A Port Pins

B Crystal Pins

C Power Supply Pins

D None
Hide !

Answer B

QUESTION

Atmega 328 P Controller has _______Timers.

A 2

B 4

C 3

D 5

Hide !

Answer C

QUESTION

Timer 0 is of _________bit wide.

A 64

B 32

C 16

D 8

Hide !

Answer D

QUESTION

Timer 1 is of ________bit wide.

A 16

B 32
C 8

D 64

Hide !

Answer A

QUESTION

___________is the supply voltage pin for the A/D Converter.

A AVCC

B VCC

C GND

D None

Hide !

Answer A

QUESTION

Atmega 328 P Controller has _________channels for PWM.

A 2

B 3

C 5

D 6

Hide !

Answer D

QUESTION
Atmega 328 P controller consist of _____ digital pins and _________ analog pins.

A 14 , 6

B 13,9

C 12,8

D None

Hide !

Answer A

QUESTION

Arduino sketch consist of _________ and __________ functions.

A main and void

B If and else

C Void setup and void loop

D None

Hide !

Answer C

QUESTION

when a sketch starts after power-up or reset _______ function is run once.

A VOID

B MAIN

C Void setup

D None

Hide !
Answer C

QUESTION

After setup() function, _______ function runs repeatedly.

A void loop

B Main

C void setup

D All the above

Hide !

Answer A

QUESTION

___________ function used to controls the arduino board until it is powered off or is reset.

A void setup

B void loop

C Main

D None

Hide !

Answer B

QUESTION

__________ Function used to initialize variables and pin modes, and to initialize any other libraries.

A void setup

B Main

C Void
D void loop

Hide !

Answer A

QUESTION

A _________ is an entity that does not change, where as a _________ is an entity that may change.

A Constants, Variable

B Keywords, Constant

C Variable, Keywords

D None

Hide !

Answer A

QUESTION

In Arduino IDE Sketch is stored with ______ extension.

A .ino

B .c

C .cc

D .asm

Hide !

Answer A

QUESTION

Data transmission rate is called as __________.


A Data rate

B Baud Rate

C Bytes per sec

D None

Hide !

Answer B

QUESTION

When writing sketch Program Statements must end with a _________.

A semi-colon

B Full stop

C Question mark

D None

Hide !

Answer A

QUESTION

In Arduino IDE programm is also called as _________.

A Sketch

B Code

C Both

D None

Hide !

Answer A
QUESTION

In Atmega 328P microcontroller, writing --------- to PINxn toggles the value of PORTxn

A 1

B 0

C either

D none

Hide !

Answer A

QUESTION

In Atmega 328P microcontroller, master clock input is the alternate function of --------

A PB7

B PB6

C PB5

D PB4

Hide !

Answer C

QUESTION

In Atmega 328P microcontroller, internal clock oscillators are connected to ------ and -------- respectively

A PB7 and PB6

B PB1 and PB2

C PB2 and PB3

D PB4 and PB5


Hide !

Answer A

QUESTION

In Atmega 328P microcontroller, ----------- pin is Reset.

A PC6

B PB5

C PD5

D none

Hide !

Answer A

QUESTION

In Atmega 328P microcontroller, Pin number ----------- is Reset.

A 2

B 4

C 5

D 1

Hide !

Answer D

QUESTION

In Atmega 328P microcontroller, ----------- is USART external clock.

A PD3
B PD4

C PD5

D none

Hide !

Answer B

QUESTION

Transducer is a device ----------------------

A Which converts one form of energy to another

B Which transmit current from one circuit to another

C Which transfer power

D none

Hide !

Answer A

QUESTION

Sensors are classified as ----------------

A Active and passive

B Primary and Secondary

C Analog and Digital

D All of the above

Hide !

Answer D
QUESTION

What are the features of a sensor?

A Maintainability

B Ruggedness

C Speed

D All

Hide !

Answer D

QUESTION

Sensors are selected based on ----------------

A Variable to be measured

B Range of variables

C reliability

D All

Hide !

Answer D

QUESTION

Light sensors are also called as

A Optic sensors

B Photo sensors

C sensors

D none
Hide !

Answer B

QUESTION

Which of the following is light sensor?

A Photo diode

B Photo transistor

C Light dependent resistor

D All

Hide !

Answer D

QUESTION

Which of the following is not a sensor?

A Photo diode

B Photo transistor

C Light dependent resistor

D Light emitting diode

Hide !

Answer D

QUESTION

In proximity sensors, the object may or may not be in contact with sensor.

A TRUE

B FALSE
C Can't say

D None

Hide !

Answer A

QUESTION

Example of non-contact sensors is -------

A capacitive

B inductive

C optical

D all

Hide !

Answer D

QUESTION

Example of contact sensors is

A capacitive

B inductive

C optical

D none

Hide !

Answer D

QUESTION
For capacitive sensors, C is given by

A C=εA/d

B C=Ad/ ε

C C= εd/A

D none

Hide !

Answer A

QUESTION

Proximity sensors might use reluctance or capacitance principles.

A TRUE

B FALSE

C Can't say

D None

Hide !

Answer A

QUESTION

------------------ type sensor is used for angular position sensing.

A Opto- electronic

B Optical

C Ultrasonic

D Hall effect

Hide !
Answer D

QUESTION

Optical encoders convert ---------------- into digital signals

A Linear motion

B Rotary motion

C both

D none

Hide !

Answer C

QUESTION

Proximity sensors convert---------- into electrical signals.

A Linear

B Rotary

C both

D None

Hide !

Answer D

QUESTION

transforms output of a controller to motion.

A Optical encoders

B Actuators

C Accumulators
D Sensors

Hide !

Answer B

QUESTION

Actuator transforms output of a controller to motion.

A TRUE

B FALSE

C Can't say

D none

Hide !

Answer A

QUESTION

Accumulators transforms output of a controller to motion.

A TRUE

B FALSE

C Can't say

D none

Hide !

Answer B

QUESTION

Which of the following is actuator?


A DC motor

B Solenoid valve

C Relay

D All

Hide !

Answer D

QUESTION

Which of the following is not an actuator?

A DC motor

B Solenoid valve

C Relay

D LVDT

Hide !

Answer D

QUESTION

Which of the following is temperature sensor?

A LM35

B Thermometer

C Thermister

D All

Hide !

Answer D
QUESTION

Which of the following is temperature sensor?

A LM35

B MQ5

C MQ6

D LM25

Hide !

Answer A

QUESTION

Which of the following transducer is used for pressure mesurement?

A LVDT

B RTD

C Strain Guage

D Accelerometers

Hide !

Answer C

QUESTION

Which of the following converts linear motion into electrical signals?

A LVDT

B RTD

C Strain Guage

D Accelerometers
Hide !

Answer A

QUESTION

Linear Variable Differential Transformer is ------------------ type of transducer

A capacitive

B inductive

C optical

D none

Hide !

Answer B

QUESTION

Which of the following measures acceleration?

A LVDT

B RTD

C Strain Guage

D Accelerometers

Hide !

Answer D

QUESTION

Which of the following measures deformation in a quartz crystal

A Piezoelectric transducer
B LVDT

C RTD

D Capacitive sensor

Hide !

Answer C

QUESTION

DAS is responsible for -----------

A Acquiring data

B Converting it into usable data

C Putting it in suitable form

D all

Hide !

Answer D

QUESTION

_________ is used to bring data in suitable form.

A ADC

B DAC

C Both

D None

Hide !

Answer C
QUESTION

Which of the following is not the part of DAS?

A MUX

B ADC

C Micro-controller

D None

Hide !

Answer D

QUESTION

Which of the following is the part of DAS?

A MUX

B ADC

C Micro-controller

D All

Hide !

Answer D

QUESTION

........ is necessary when the distance between transducers and display device is large.

A Attenuator

B Prescalar

C Multiplexer

D None
Hide !

Answer D

QUESTION

.............. is used to select one of the transducers connected to DAS.

A Attenuator

B Prescalar

C Multiplexer

D None

Hide !

Answer C

QUESTION

Strip – chart recorders, X-Y recorders, magnectic recorders are used to record data.

A TRUE

B FALSE

C Can't say.

D None

Hide !

Answer A

QUESTION

Input voltage range for Arduino is------------ V.

A 5 – 10

B 0-5
C 7 – 10

D 7 – 12

Hide !

Answer D

QUESTION

Arduino Uno has ---------number of analog inputs.

A 3

B 5

C 6

D 7

Hide !

Answer C

QUESTION

Atmega 328P has ------channel ADC

A 3

B 5

C 6

D 7

Hide !

Answer C

QUESTION
What is the resolution of ADC in Atmega 328P micro-controller?

A 8 bit

B 10 bit

C 6 bit

D 4 bit

Hide !

Answer B

QUESTION

Arduino Uno has -----------number of digital I/O pins

A 10

B 14

C 12

D 16

Hide !

Answer B

QUESTION

Arduino Uno has------ KB flash memory.

A 8

B 16

C 32

D 64

Hide !
Answer C

QUESTION

Arduino Uno has ----------------KB RAM

A 1

B 2

C 4

D 8

Hide !

Answer B

QUESTION

Atmega 328 P controller has ________Ports.

A 2

B 3

C 4

D 5

Hide !

Answer B

QUESTION

The operating frequency of Arduino Uno is ________.

A 12 MHz

B 16 MHz

C 18 MHz
D None

Hide !

Answer B

QUESTION

Port B of Atmega 328P Controller is ________bit wide.

A 8

B 5

C 7

D 3

Hide !

Answer A

QUESTION

Port C of Atmega 328P Controller is ________bit wide.

A 5

B 6

C 7

D 8

Hide !

Answer C

QUESTION

Digital pin 0 and pin 1 is used for


A Rx and Tx

B Xtal 1 and Xtal 2

C Vcc and GND

D Avref and AVcc

Hide !

Answer A

QUESTION

In Atmega 328P Controller Pin 9 and Pin 10 used as a____________.

A Port Pins

B Crystal Pins

C Power Supply Pins

D None

Hide !

Answer B

QUESTION

Message area in IDE is capable of showing errors. Say true or false

A TRUE

B FALSE

C Can't say

D none

Hide !

Answer A
QUESTION

_________ provide extra functionality like manipulating data

A Boot loader

B IDE

C Sketchbook

D Libraries

Hide !

Answer D

QUESTION

Board selection Arduino IDE is done for setting

A CPU speed

B Baud rate

C both

D None of these

Hide !

Answer C

QUESTION

Baudrate can be set in ---- of Arduino IDE.

A Board selection

B Serial monitor

C Library

D Sketchbook
Hide !

Answer B

QUESTION

Arduino Pro Mini is equivalent to ------------

A Arduino Mega

B Arduino Fio

C Arduino Esplora

D Arduino Gemma

Hide !

Answer B

QUESTION

Arduino Uno consists of _____ digital pins and _________ analog pins.

A 14 , 6

B 13,9

C 12,8

D None

Hide !

Answer A

QUESTION

Arduino sketch consist of _________ and __________ functions.

A main and void


B If and else

C setup and loop

D None

Hide !

Answer C

QUESTION

when a sketch starts after power-up or reset _______ function is run once.

A VOID

B MAIN

C Void setup

D None

Hide !

Answer C

QUESTION

After setup() function, _______ function is runs repeatedly.

A void loop

B Main

C void setup

D All the above

Hide !

Answer A
QUESTION

___________ function used to controls the arduino board until it is powered off or is reset.

A void setup

B void loop

C Main

D None

Hide !

Answer B

QUESTION

__________ Function used to initialize variables and pin modes, and to initialize any other libraries.

A void setup

B Main

C Void

D void loop

Hide !

Answer A

QUESTION

Char takes------------amount of memory.

A 1 byte

B 4 bytes

C 2 bytes

D 1 bit
Hide !

Answer A

QUESTION

A byte stores 8- bit unsigned numbers from -------to ------------

A 1 to 256

B 0 to 255

C both

D none

Hide !

Answer B

QUESTION

Arduino Uno, int stores ---------------value.

A 4 bit

B 8 bit

C 16 bit

D 32 bit

Hide !

Answer C

QUESTION

Int stores negative numbers by a technique called 1's complement. Say true or false.

A TRUE

B FALSE
C Can't say

D none

Hide !

Answer B

QUESTION

Long variables store _________ bits.

A 8 bit

B 16 bit

C 32 bit

D 64 bit

Hide !

Answer C

QUESTION

Double occupies _________ bytes.

A 1

B 2

C 4

D 8

Hide !

Answer C

QUESTION
A group of instructions that perform a specific task is called as

A function

B subroutine

C procedure

D all

Hide !

Answer D

QUESTION

Which of the following is/are the advantage(s) of using functions?

A Make debugging a code simple

B Make the whole sketch smaller and more compact

C Make it easier to reuse code

D All of the above

Hide !

Answer D

QUESTION

--------- Function generates a square wave of specified frequency on a pin.

A tone()

B square()

C duty()

D None of the above

Hide !
Answer A

Unit-4 Introduction to Microcontrollers MCQ's Part-B

Edit

QUESTION

In AVR, which of the following registers are not used for programming timers?

A) TCNT

B) TCON

C) TIFR

D) none of the mentioned

Hide !

Answer: B

Explanation: In the timer programming of an AVR micro controller,mainly used registers are TCNTn that stores the values of the count. TCCRn
that is used to assign the mode of operation of a timer and TIFR that stores the status of various flags of the timers. Two more registers are
used they are OCRn and OCFn. They are used for comparison with the count register.

QUESTION

What is the use of the prescalar in the operation of the timer?

A) for fast calculations

B) for increasing the time delay given by the timer by decreasing its frequency of operation

C) for removing the concept the reloading of count

D) for easy counter operations

Hide !
Answer: B

Explanation: Prescalars are used in the operation of the timers because they generally increase the time delay generation by deceasing the
frequency of its operation.

QUESTION

What modes are generally used in the operation of the timer0?

A) normal mode

B) CTC mode

C) PWM mode

D) all of the mentioned

Hide !

Answer: D

Explanation: Modes of a timer are decided by the WGM00 and WGM01 bit of the TCCR0 register and for timer0 these modes are normal mode,
CTC mode, pwm mode and the fast pwm mode.

QUESTION

Timer 0 can act as a counter

A) if the CS02-CS00 are 110 or 111

B) if the FOC0 bit is set to 110

C) none of the mentioned

D) all of the mentioned

Hide !

Answer: A

Explanation: Timer0 can act as a counter if the CS02-CS00 bits are from 110-111.
QUESTION

Which of the timer can operate in the 16 bit condition?

A) timer0

B) timer1

C) timer2

D) all of the mentioned

Hide !

Answer: B

Explanation: Timer0 and Timer2 can operate in the 8 bit condition while only Timer 1 operates in the 16 bit condition.

QUESTION

Which of the following will generate the maximum time delay?

A) f/2

B) f/4

C) f/16

D) f/32

Hide !

Answer: D

Explanation: f/32 has the lowest frequency as it is divided by the maximum value of the constant, so as time and frequency are inversely related
to each other so this will generate the maximum amount of machine cycle which will as a result generate the greatest delay.

QUESTION

What is the difference in operation of a normal and a CTC mode of a timer?

A) in CTC mode PWM is used


B) here serial timer is monitored

C) her the contents are compared with the OCR register, if value becomes equal then only the timer is cleared

D) none of the mentioned

Hide !

Answer: C

Explanation: In CTC mode of a timer the contents of the counter register are compared with the OCR register to clear the flag for the roll over
condition to come.

QUESTION

We can count the pulses on the positive or the negative edge triggered pulse of the clock?

A) true

B) false

C) can’t be determined

D) depends on the circumstances

Hide !

Answer: A

Explanation: A counter can count pulses on the positive or the negative edge of the clock. 9. Which pin is used for the input clock of the
counter0?

QUESTION

We can count the pulses on the positive or the negative edge triggered pulse of the clock?

A) true

B) false

C) can’t be determined

D) depends on the circumstances


Hide !

Answer: A

Explanation: A counter can count pulses on the positive or the negative edge of the clock.

QUESTION

Which pin is used for the input clock of the counter0?

A) PORTB.0

B) PORTB.1

C) PORTB.2

D) PORTB.3

Hide !

Answer: A

Explanation: PORTB.0 is used for the input clock of the counter0 in AVR micro controllers.

QUESTION

Which resource provides clock pulse to AVR timers if CS02-00=6?

A) internal clock of the AVR

B) external clock of the AVR

C) none of the mentioned

D) all of the mentioned

Hide !

Answer: B

Explanation: External clock is used for providing the pulse to the AVR timers if CS02-00=6.

QUESTION
Is the following instruction correct LDI R3,50?

A) Yes

B) No

C) Cant be said

D) none of the mentioned

Hide !

Answer: B

Explanation: If LDI Rd,k is written then the range of Rd varies from R16-R31, as R3 is less than R16 so this instruction will generate an error.

QUESTION

Registers R0-R31 are used for what type of works?

A) they are used for arithmetic and logic instructions

B) they are used for data copy

C) they are used for calculations

D) none of the mentioned

Hide !

Answer: A

Explanation: GPRs are used for implementing arithmetic and logic instructions in the

controller. They do the same work as the accumulator does in the other micro controllers and micro processors.

QUESTION

Largest value that can be loaded in an 8 bit register is?

A) 11111111H

B) FH

C) FFH
D) 00H

Hide !

Answer: C

Explanation: The largest value that can be loaded in an 8 bit register is 11111111b or FFH.

QUESTION

The total space for the data memory available in the AVR based micro controller is?

A) FFH

B) FFFH

C) FFFFH

D) FFFFFH

Hide !

Answer: C

Explanation: The maximum value that can be loaded in the code memory of an AVR based micro controller is FFFFH.

QUESTION

Which out of the following instructions don’t affect the flags of the status register?

A) AND

B) INC

C) OR

D) ADD

Hide !

Answer: D

Explanation: ADD command does not affect the flags of the status register. It just adds the contents of the two registers together.
QUESTION

What is the difference between the two given instructions? LDI R16,0x34 and LDI R16,$34

A) One copies the hexadecimal value to R16 and the other copies the decimal value to the R16 register

B) One is for command, other is for data

C) One is for assignment, other is for operations

D) Both the commands are the same

Hide !

Answer: D

Explanation: Both the above commands are the same. They both are used for assigning the hexadecimal values to the registers.

QUESTION

Which out of the following is not a directive?

A) .EQU

B) .DEVICE

C) .ORG

D) .LDI

Hide !

Answer: D

Explanation: .EQU, .DEVICE, .ORG all are the directives to the assembler whereas LDI is a command.

QUESTION

Is an assembly language a high level language?

A) Yes

B) No
C) Cant be said

D) none of the mentioned

Hide !

Answer: B

Explanation: High Level Languages are the languages that are written in the common english, so that even a common man can understand it
easily like C,C++, whereas assembly language is a middle level language between the high level and the machine level.

QUESTION

A 14 bit program counter can execute a maximum of _________ memory locations?

A) 4K

B) 8K

C) 16K

D) 64K

Hide !

Answer: C

Explanation: A program counter of an AVR is 14 bit long which means it has 2^14 bytes of memory or 16K bytes of memory.

QUESTION

When AVR wakes up, then the value of PC becomes?

A) 00H

B) 000H

C) 0000H

D) 00000H

Hide !
Answer: D

Explanation: When an AVR wakes up, then the PC starts at the memory location 00000H

QUESTION

On power on SP points to the address?

A) ffffH

B) fffH

C) 00h

D) all of the mentioned

Hide !

Answer: C

Explanation: On power on SP register points to the 00H address.

QUESTION

How many times setup() runs?

A) 1 Time

B) 2 Times

C) infinite times

D) 0 times

Hide !

Answer- A

QUESTION

How many times loop() runs?

A) 1 Time
B) 2 Times

C) infinite times

D) 0 times

Hide !

Answer- C

QUESTION

PWM stands for

A) Pulse With Modulation

B) Pin Width Modulation

C) Pulse Width Modulation

D) Pulse Width Mode

Hide !

Answer- B

QUESTION

PWM output varies from

A) 0 to 255

B) 0 to 5

C) 0 to 1023

D) 0 to 256

Hide !

Answer- A
QUESTION

Which language is the Arduino IDE written in?

A) Java

B) C

C) C++

D) PHP

Hide !

Answer- A

QUESTION

In delay(t); t is in :

A) microsec

B) millisec

C) nanosec

D) sec

Hide !

Answer- B

QUESTION

If Serial is begun with Serial.begin(9600); How much time will it take to send 2 ASCII characters?

A) 1.667 millisecond

B) 1.9220 millisecond

C) 4.800 millisecond

D) 1.9200 millisecond
Hide !

Answer- A

QUESTION

How many analog ports does an Arduino have?

A) five, and they are labeled A1-A5

B) six, and they are labeled A0-A5

C) six, and they are labeled A1-A6

D) five, and they are labeled A0-A4

Hide !

Answer- B

QUESTION

An Arduino’s microcontroller is pre-programmed with a _______ that simplifies uploading of programs to the on-chip flash memory, compared
with other devices that typically need an external chip programmer

A) personal computer

B) bootloader

C) computer

D) operating system

Hide !

Answer- B

QUESTION

Which of the timer can operate in the 16 bit condition?

A) timer0
B) timer1

C) timer2

D) all of the mentioned

Hide !

Answer: B

Explanation: Timer0 and Timer2 can operate in the 8 bit condition while only Timer 1 operates in the 16 bit condition.

QUESTION

Which of the following will generate the maximum time delay?

A) f/2

B) f/4

C) f/16

D) f/32

Hide !

Answer: d

Explanation: f/32 has the lowest frequency as it is divided by the maximum value of the constant, so as time and frequency are inversely related
to each other so this will generate the maximum amount of machine cycle which will as a result generate the greatest delay.

QUESTION

What is the difference in operation of a normal and a CTC mode of a timer?

A) in CTC mode PWM is used

B) here serial timer is monitored

C) her the contents are compared with the OCR register, if value becomes equal then only the timer is cleared

D) none of the mentioned


Hide !

Answer: C

Explanation: In CTC mode of a timer the contents of the counter register are compared with the OCR register to clear the flag for the roll over
condition to come.

QUESTION

We can count the pulses on the positive or the negative edge triggered pulse of the clock?

A) true

B) false

C) can’t be determined

D) depends on the circumstances

Hide !

Answer: A

Explanation: A counter can count pulses on the positive or the negative edge of the clock.

QUESTION

8. We can count the pulses on the positive or the negative edge triggered pulse of the clock?

A) true

B) false

C) can’t be determined

D) depends on the circumstances

Hide !

Answer: A

Explanation: A counter can count pulses on the positive or the negative edge of the clock.
QUESTION

Which pin is used for the input clock of the counter0?

A) PORTB.0

B) PORTB.1

C) PORTB.2

D) PORTB.3

Hide !

Answer: A

Explanation: PORTB.0 is used for the input clock of the counter0 in AVR micro controllers.

QUESTION

Which resource provides clock pulse to AVR timers if CS02-00=6?

A) internal clock of the AVR

B) external clock of the AVR

C) none of the mentioned

D) all of the mentioned

Hide !

Answer: B

Explanation: External clock is used for providing the pulse to the AVR timers if CS02-00=6.

QUESTION

Is the following instruction correct LDI R3,50?

A) Yes

B) No

C) Cant be said
D) none of the mentioned

Hide !

Answer: B

Explanation: If LDI Rd,k is written then the range of Rd varies from R16-R31, as R3 is less than R16 so this instruction will generate an error.

QUESTION

Registers R0-R31 are used for what type of works?

A) they are used for arithmetic and logic instructions

B) they are used for data copy

C) they are used for calculations

D) none of the mentioned

Hide !

Answer: a

Explanation: GPRs are used for implementing arithmetic and logic instructions in the

controller. They do the same work as the accumulator does in the other micro controllers and micro processors.

QUESTION

Largest value that can be loaded in an 8 bit register is?

A) 11111111H

B) FH

C) FFH

D) 00H

Hide !

Answer: C
Explanation: The largest value that can be loaded in an 8 bit register is 11111111b or FFH.

QUESTION

The total space for the data memory available in the AVR based micro controller is?

A) FFH

B) FFFH

C) FFFFH

D) FFFFFH

Hide !

Answer: C

Explanation: The maximum value that can be loaded in the code memory of an AVR based micro controller is FFFFH.

QUESTION

Which out of the following instructions don’t affect the flags of the status register?

A) AND

B) INC

C) OR

D) ADD

Hide !

Answer: D

Explanation: ADD command does not affect the flags of the status register. It just adds the contents of the two registers together.

QUESTION

What is the difference between the two given instructions? LDI R16,0x34 and LDI R16,$34

A) One copies the hexadecimal value to R16 and the other copies the decimal value to the R16 register
B) One is for command, other is for data

C) One is for assignment, other is for operations

D) Both the commands are the same

Hide !

Answer: D

Explanation: Both the above commands are the same. They both are used for assigning the hexadecimal values to the registers.

QUESTION

Which out of the following is not a directive?

A) .EQU

B) .DEVICE

C) .ORG

D) .LDI

Hide !

Answer: D

Explanation: .EQU, .DEVICE, .ORG all are the directives to the assembler whereas LDI is a command.

QUESTION

Is an assembly language a high level language?

A) Yes

B) No

C) Cant be said

D) none of the mentioned

Hide !
Answer: B

Explanation: High Level Languages are the languages that are written in the common english, so that even a common man can understand it
easily like C,C++, whereas assembly language is a middle level language between the high level and the machine level.

A 14 bit program counter can execute a maximum of _________ memory locations?

A) 4K

B) 8K

C) 16K

D) 64K

Hide !

Answer: C

Explanation: A program counter of an AVR is 14 bit long which means it has 2^14 bytes of memory or 16K bytes of memory.

QUESTION

When AVR wakes up, then the value of PC becomes?

A) 00H

B) 000H

C) 0000H

D) 00000H

Hide !

Answer: D

Explanation: When an AVR wakes up, then the PC starts at the memory location 00000H

QUESTION

On power on SP points to the address?


A) ffffH

B) fffH

C) 00h

D) all of the mentioned

Hide !

Answer: C

Explanation: On power on SP register points to the 00H address.

QUESTION

How many times setup() runs?

A) 1 Time

B) 2 Times

C) infinite times

D) 0 times

Hide !

Answer- A

23. How many times loop() runs?

A) 1 Time

B) 2 Times

C) infinite times

D) 0 times

Hide !

Answer- C
QUESTION

PWM stands for

A) Pulse With Modulation

B) Pin Width Modulation

C) Pulse Width Modulation

D) Pulse Width Mode

Hide !

Answer- B

QUESTION

PWM output varies from

A) 0 to 255

B) 0 to 5

C) 0 to 1023

D) 0 to 256

Hide !

Answer- A

QUESTION

Which language is the Arduino IDE written in?

A) Java

B) C

C) C++

D) PHP
Hide !

Answer- A

QUESTION

In delay(t); t is in :

A) microsec

B) millisec

C) nanosec

D) sec

Hide !

Answer- B

QUESTION

If Serial is begun with Serial.begin(9600); How much time will it take to send 2 ASCII characters?

A) 1.667 millisecond

B) 1.9220 millisecond

C) 4.800 millisecond

D) 1.9200 millisecond

Hide !

Answer- A

How many analog ports does an Arduino have?

A) five, and they are labeled A1-A5

B) six, and they are labeled A0-A5


C) six, and they are labeled A1-A6

D) five, and they are labeled A0-A4

Hide !

Answer- B

QUESTION

An Arduino’s microcontroller is pre-programmed with a _______ that simplifies uploading of programs to the on-chip flash memory, compared
with other devices that typically need an external chip programmer

A) personal computer

B) bootloader

C) computer

D) operating system

Hide !

Answer- B

Potrebbero piacerti anche