You are on page 1of 50

UNIT 4 & UNIT 5 PART-A MCQ

1. What is the first stage of the compilation process?


a) pre-processing
b) post-processing
c) compilation
d) linking

2. Which of the following produces an assembler file in the compilation process?


a) pre-processor
b) assembler
c) compiler
d) post-processing

3. Which of the following processes the source code before it goes to the compiler?
a) compiler
b) simulator
c) pre-processor
d) emulator

4. Which file is converted to an object file?


a) hex file
b) decoded file
c) coded file
d) assembly file

5.. Which of the following allows the programmer to define constants?


a) pre-processor
b) compiler
c) emulator
d) debugger

6.. Time duration required for scheduling dispatcher to stop one process and start
another is known as ____________
a) process latency
b) dispatch latency
c) execution latency
d) interrupt latency

7. In real time operating system ____________


a) all processes have the same priority
b) a task must be serviced by its deadline period
c) process scheduling can be done only once
d) kernel is not required
8. For real time operating systems, interrupt latency should be ____________
a) minimal
b) maximum
c) zero
d) dependent on the scheduling

9. Time required to synchronous switch from the context of one thread to the context of
another thread is called?
a) threads fly-back time
b) jitter
c) context switch time
d) none of the mentioned

10. In a real time system the computer results ____________


a) must be produced within a specific deadline period
b) may be produced at any time
c) may be correct
d) all of the mentioned

UNIT 4 & UNIT 5 PART-B MCQ

1. What are the two major sections in a coprocessor?


a) control unit
b) numeric control unit
c) floating point unit
d) Integer unit

2. Name the processor which helps in floating point calculations.


a) microprocessor
b) microcontroller
c) coprocessor
d) controller

3. How are negative numbers stored in a coprocessor?


a) 1’s complement
b) 2’s complement
c) decimal
d) gray

4. What are the stages included in pipelining

a)fetch

b)throughput

c)decode

d)execute
5.Which one of the following is a real time operating system?
a) RTLinux
b) VxWorks
c) Windows CE
d) Android

6.Antilock brake systems, flight management systems, pacemakers are examples of


____________
a) safety critical system
b) hard real time system
c) soft real time system
d) none of the above

7. Some of the properties of real time systems include ____________


a) single purpose
b) inexpensively mass produced
c) small size
d) none of the above

8. Memory management units ____________


a) increase the cost of the system
b) increase the power consumption of the system
c) increase the time required to complete an operation
d) none of the mentioned

9. The switching of the CPU from one process or thread to another is called
____________
a) process switch
b) task switch
c) context switch
d) none of the mentioned

10. Which of the following statements are true?

I. Shortest remaining time first scheduling may cause starvation

II. Preemptive scheduling may cause starvation

III. Round robin is better than FCFS in terms of response time

a) I only
b) I and III only
c) II and III only
d) I, II and III
11.The Assemblers have the following major tasks

a) generate binary for symbolic instructions

b) translate labels into addresses

c) handle pseudo-ops

d) generate one to multiple translation

12. The basic compilation phases are

a) HLL

b) symbol Table , Optimization

c) Assembly

d) encryption

13. The classification of RTOS are

a) settling real -time

b) hard real - time

c) firm real – time

d) soft real –time


EXTRA

Unit-4 PART-A

1. Name the processor which helps in floating point calculations.


a) microprocessor
b) microcontroller
c) coprocessor
d) controller

2. How are negative numbers stored in a coprocessor?


a) 1’s complement
b) 2’s complement
c) decimal
d) gray

3. What is 80/20 rule?


a) 80% instruction is generated and 20% instruction is executed
b) 80% instruction is executed and 20% instruction is generated
c) 80%instruction is executed and 20% instruction is not executed
d) 80% instruction is generated and 20% instructions are not generated

4. How is memory accessed in RISC architecture?


a) load and store instruction
b) opcode instruction
c) memory instruction
d) bus instruction

5. What type of error occurs in the refresh cycle of the DRAM?


a) errors in data
b) power loss
c) timing issues
d) not accessing data

UNIT-5 PART-A

1. Which of the following statements are true?

I. Shortest remaining time first scheduling may cause starvation

II. Preemptive scheduling may cause starvation

III. Round robin is better than FCFS in terms of response time

a) I only
b) I and III only
c) II and III only
d) I, II and III
2. VxWorks is centered around ____________
a) wind microkernel
b) linux kernel
c) unix kernel
d) ATMEL

3. If a process fails, most operating system write the error information to a ______
a) log file
b) another running process
c) new file
d) memory

4. Which facility dynamically adds probes to a running system, both in user processes
and in the kernel?
a) DTrace
b) DLocate
c) DMap
d) DAdd

5. Which system call can be used by a parent process to determine the termination of
child process?
a) wait
b) exit
c) fork
d) get

6. The address of the next instruction to be executed by the current process is provided
by the __________
a) CPU registers
b) Program counter
c) Process stack
d) Pipe

7. Which of the following do not belong to queues for processes?


a) Job Queue
b) PCB queue
c) Device Queue
d) Ready Queue

8. When the process issues an I/O request __________


a) It is placed in an I/O queue
b) It is placed in a waiting queue
c) It is placed in the ready queue
d) It is placed in the Job queue
UNIT-4 PART-B

1. What are the essential tight constraint/s related to the design metrics of an
embedded system?

a. Ability to fit on a single chip


b. Low power consumption
c. Fast data processing for real-time operations
d. high power consumption

2. Which characteristics of an embedded system exhibit the responsiveness to


the assortments or variations in system's environment by computing specific
results for real-time applications without any kind of postponement ?

a. Single-functioned Characteristic
b. Tightly-constraint Characteristics
c. Reactive time Characteristics

d.real time characteristics

3. Which of the following is the design in which both the hardware and software are
considered during the design?
a) platform based design
b) memory based design
c) software code design
d) hardware code design

4. Which design activity is in charge of mapping operations to hardware?


a) scheduling
b) high-level transformation
c) hardware partitioning
d) software partitioning

5. Which level simulates the algorithms that are not used within the embedded
systems?
a) gate level
b) circuit level
c) switch level
d) algorithmic level

UNIT-5 PART-B

1.In Operating Systems, which of the following is/are CPU scheduling algorithms?
a) Round Robin
b) Shortest Job First
c) Priority
d) CACHE

2. Which one of the following error will be handle by the operating system?
a) power failure
b) lack of paper in printer
c) connection failure in the network
d) booting

3. Process synchronization can be done on __________


a) hardware level
b) software level
c) special architecture
d) memory management

4. A monitor is a module that encapsulates __________


a) shared data structures
b) procedures that operate on shared data structure
c) synchronization between concurrent procedure invocation
d) compressed data

5. Messages sent by a process __________


a) have to be of a fixed size
b) have to be a variable size
c) can be fixed sized
d) can be variable sized
UNIT - IV
1. When comparing PIC16C7x with PIC16C6x, the enhanced capability is_________
a) digital-to-analog
b) analog-to-digital
c) encoding
d) decoding
2. The number of instruction set that the PIC microcontroller has is ________
a) 35 b) 34 c) 31 d) 45
3. The PIC microcontroller family uses which architecture?
a) Harward b) Von-Neumann c) Array d) Pipelining
4. In PIC microcontroller, group of locations of memory are termed as _________, which can be
accessed through various instruction.
a) Register find b) Register file c) Register Locate d) Register Identify
5. In the PIC microcontroller, the register bank which has 32 bytes of special purpose registers is
______
a) Bank 0 &1 b) Bank 1 & 2 c) Bank 0 & 2 d) Bank 0, 1 & 2
6. In PIC microcontroller, The W register serves the purpose similar to ________ of 8085
microprocessors.
a) Program counter b) Instruction register c) Accumulator d) ISR
7. In PIC microcontroller, the watchdog timer can be cleared using the instruction _________
a) clcwd b) clrwdt c) clrwd d) wdtclr
8. What is the length of PCLATH?
a) 13 b) 8 c) 5 d) 4
9. The RP0 bit in PIC microcontroller is in ________ register.
a) Flag b) Status c) FSR d) INDF
10. In PIC microcontroller, if there is any carry from lower nibble to higher nibble ________ bit of
STATUS register becomes set.
a) AC b) CY c) DC d) OV
11. Identify the instruction of PIC which increment f, putting result in F or W is ________
a) inrf f,F(W) b) incf f,F(W) c) inf f,F(W) d) inxf f,F(W)
12. The instruction addlw of PIC microcontroller affects the ______ status bits.
a) C, DC, Z b) C, Z c) C, AC, Z d) C, DC
13. The instruction of PIC16Cxx that tests the ‘b’ bit of ‘f’ register, where b = 0 to 7 and skip when it
clear is ________
a) btfss b) btfsc c) btccc d) btsss
14. Identify the correct instruction of PIC which AND literal value into W from the following
a) andlw b) andwf c)andff d)andwl
15. In PIC16Cxx, return from ISR; reenabling interrupts is being done by _______ instruction.
a) return b) retlw c) retfie d) retei
16. The PIC16C7x has ________ I/O Ports
a) 5 b) 6 c) 4 d) 0
17. Setting the TRISB of PIC16F877 microcontroller will make the respective port pin as ______ pin
a) output b) input c) toggle d) reset
18. The 28 pin and 40 pin PIC microcontrollers have ______ number of I/O ports respectively.
a) 3 & 5 b) 4 & 8 c) 6 & 12 d) 2 & 6
19. In PIC microcontroller, GIE stands for __________
a) Gain input enable b) Gain interrupt enable
c) Global interrupt enable d) Global input enable
20. The alternate use of PORT D I/O pins of PIC16C7x is ________
a) Serial ports; Timer I/O b) A/D converter inputs
c) Parallel slave port d) External interrupt
21. Which of the following PIC microcontroller has two CCP module in it?
a) PIC16C62A b) PIC16C64A c) PIC16C72 d) PIC16C74A
22. In CCP module of PIC microcontroller, P denotes ________
a) Parity b) PAL c) PWM d) Priority
23. The TMR1 cannot be stopped and changed when it is used for ___________ function.
a) compare b) capture
c) compare and capture d) PWM
24. In PIC, the time of occurrence of an input edge is determined by combination of ________
a) Timer 1 and CCP1 b) Timer 2 and CCP2
b) Timer 1, CCP1 and CCP2 d) Timer 1 and either of CCP1 or CCP2
25. In PIC Microcontroller, the period of PWM is controlled by _________
a) Timer1 prescaler and PR1 b) Timer2 prescaler and PR2
b) Timer0 prescaler and PR2 d) Timer0 prescaler and PR1
26. The PIC16C6x/7x has _________ program counter.
a) 8 bit b) 11 bit c) 12 bit d) 13 bit
27. In PIC Microcontroller, to enable the program memory from 2k to 4k, which of the following is
to be made?
a) PCLATH.3=1 b) PCLATH.1=1 c) PCLATH.2=1 d) PCLATH.4=1
28. In PIC Microcontroller, the NOT_TO and NOT_PD are bits available in _______ register.
a) FSR b) INDF c) STATUS d) PCLATH
29. The status of ________ bit can be used to identify and convert the result obtained into a BCD.
a) C b) DC c) Z d) AC
30. Which of the following is not the bit of STATUS register?
a) DC b) C d) RP0 d) FSR
31. Identify the correct simpler assembler process
a) code.asm converted to code.hex converted to MCU
b) code.hex converted to code.asm converted to MCU
c) code.oct converted to code.hex converted to MCU
d) code.hex converted to MCU
32. In PIC microcontroller, which of the following is not the file structure of IDE?
a) project_name.mcp b) project.name.mcw c) project.name.mcs d) project.name.mcc
33. In half drive mode of operation of stepper motor, how the phases are energized?
a) one and two phases simultaneously b) one and two phases alternatively
b) two and three phases simultaneously d) two and three phases alternatively
34. Which mode of stepper motor operation is suitable for better power consumption?
a) Full Drive b) Wave Drive c) Half Drive d) Quarter Drive
35. When two stator electromagnets are energized at a time, the mode is called _________
a) Full Drive b) Wave Drive c) Half Drive d) Quarter Drive
36. In wave drive operation of stepper motor, ________ is less when compared to full step drive.
a) current b) voltage c) torque d) speed
37. What are the special features available in PIC microcontroller for speed control of DC motor?
a) PWM generation and analog channel b) PWM generation and ADC
c) ADC and analog channel d) PWM generation and DAC
38. When we are using the PWM controller IC’s, the error% in frequency will be _______
a) 3-5% b) 1-2% c) 0-1% d) 3-4%
39. The pulse width modulator method that can be used for PIC controlled DC motor is __________
a) analog b) digital c) analog and digital d) programming
40. When interfacing the DC motor with PIC microcontroller, the back emf of the motor can avoided
by _________
a) H bridge b) Large inductance c) T bridge d) Small inductance
41. ________ uses the combination of PIC microcontroller and a DAC.
a) Waveform generator b) Sinusoidal generator
c) PWM generator d) Attenuator
42. The modification of frequency and amplitude of the generated waveform using PIC
microcontroller is achieved by ________
a) changing the programming b) changing carrier wave
b) changing the input parameters d) changing the controller
43. R/2R resistor ladder network which is used in waveform generator is a ________
a) decoder b) ADC c) DAC d) multiplier
44. The frequency counter design using PIC microcontroller needs ________
a) Timer 0 and Timer 1 b) Timer 0 alone c) Timer 1 alone d) ADC
45. In PIC microcontroller, for a 16 bit counter the maximum measurable frequency range is _______
a) 0-65k b) 0-24k c) 0-30k d) 0-70k
46. The frequency counter’s maximum range can be defined by ________
a) counter length b) setting it the program
b) tuning the analog circuit components d) setting the oscillator frequency
47. In PIC microcontroller, Real time clock design can be used for __________ application
a) Data logging b) Process monitoring
c) Interrupt handling d) Rebooting
48. Inter integrated circuit protocol used in __________ of PIC microcontroller.
a) RTC b) Waveform generator c) PWM d) Counter
49. Programmable gate pulse to the switches using PIC microcontroller has _________
a) a drawback that frequency cannot be varied
b) a wide range of control over frequency
c) limited frequency variation
d) a fixed frequency of operation
50. By using the feedback provided, control of abnormality of power switches is possible in ______
a) programmed gate pulse b) SPWM gate pulse
b) RPWM gate pulse d) floating gate pulse
51. In PIC microcontroller, the instruction fetched from successive addresses like n, n+1, n+2, n+3
and soon. When the goto address location is executed after n+1, the program counter content will
have _________
a) n+2 b) New Address c) Old Address d) n+3
52. In PIC microcontroller, under indirect addressing mode, the full 8 bit register file address is
written first into _______
a) INDF b) FSR c) PCLATH d)RP0
53. In PIC microcontroller, the program counter comprises of _____ bit PCL and ______ bit
PCLATH.
a) 4, 8 b) 8, 5 c) 5, 8 d) 8, 4
54. In PIC microcontroller, copy the content of f in either F or W and then rotate F or W right
through carry operation is executed by ______ instruction.
a) rrf b) rfr c)rff d) rfc
55. In PIC microcontroller, What is the operation of btfss STATUS,z instruction?
a) test Z bit of STATUS and will skip to next instruction if the bit is reset
b) test Z bit of STATUS and will skip to next instruction if the bit is set
c) test Z bit of STATUS and will go to next instruction if the bit is reset
d) test Z bit of STATUS and will go to next instruction if the bit is set
56. In PIC microcontroller, which of the following instruction complement f and putting the result in
F or W?
a) compf f,F(W) b) comf f,F(W) c) cmpf f,F(W) d) cpf f,F(W)
57. In PIC microcontroller, the W register can be using the instruction _______
a) clear w b) clrf w c) clrw d) clr w
58. In PIC microcontroller, which of the following instruction doesn’t take more than 1 cycle for
operation on any condition?
a) goto b) call c) btfss d) rlf
59. The instruction clrw of PIC microcontroller affects the ______ status bit(s).
a) C, DC, Z b) Z c) C, AC, Z d) C, DC
60. In PIC microcontroller, which instruction will wait for watchdog timer or external signal to begin
program execution again?
a) nop b) sleep c) resume d) clrwdt
61. In PIC microcontroller, the instruction used to set a particular bit of register is ________
a) bcf f,b b) bsf f,b c) bss f,b d) bff f,b
62. In PIC microcontroller, what is the 6th bit of STATUS register?
a) 0 b) Z c) DC d) C
63. In PIC microcontroller, the ________ accesses the location pointed by FSR.
a) PCLATH b) INDF c) PCL d) W
64. In PIC microcontroller, the instruction bcf STATUS,RP0 is used to ______
a) Select Bank 1 b) Select Bank 0 c) Reset Bank 1 d) Reset Bank 0
65. In PIC microcontroller, the number of levels of stack available is ________
a) 4 b) 8 c) 16 d) 32
UNIT – V
1. RISC processors were designed for _______
A. Main computer
B. Mini computer
C. Mobile system
D. supercomputer
ANSWER: C
2. ARM processor is a----- device
A. 8 bit
B. 16 bit
C. 4 bit
D. 32 bit
ANSWER: D
3. Expansion of RISC is _________
A. Restricted Instruction Sequencing Computer
B. Restricted Instruction Sequential Compiler
C. Reduced Instruction Set Computer
D. Reduced Induction sequential Computer
ANSWER: C
4. The program counter is implemented using ------------ in the ARM processor
A. Caches
B. Heaps
C. General purpose register
D. special purpose register
ANSWER: C
5. ARM machine instructions are encoded with ------word
A. 2 byte
B. 3 byte
C. 8 byte
D. 4 byte
ANSWER: D
6. The first ARM processor was developed at -------computers
A. Acorn
B. Intel
C. Microchip
D. Atmel
ANSWER: A
7. The ARM instruction set features
A. 5- address register instruction
B. load store architecture
C. load and store single register
D. shift and ALU operations a multiple instruction
ANSWER: B
8. Thumb instructions are used to access the ----.
A. Current program status register
B. stack pointer
C. program counter
D. addresss bus
ANSWER: A
9. ENTRY directive specifies the ------ of the execution.
A. Start
B. End
C. Main
D. Return
ANSWER: A
10. The -----------is used to switch fast and to perform better in ARM
processor.
A. Switching circuit
B. Barrel shifter circuit
C. Integrated circuit
D. Multiplexer circuit
ANSWER: A
11. Which instructions are used in ARM processor to load or store multiple operands?
A. Banked instructions
B. Lump transfer instructions
C. Block transfer instructions
D. DMA instructions
ANSWER: C
12. The main importance of ARM processor is to provide
A. low cost and low power consumption
B. High degree of multitasking
C. Efficient memory management
D. less error
ANSWER: A
13. What is the nature of instruction size in RISC processors?
A. register based
B. variable
C. time to refine
D. Unpredictable
ANSWER: A
14. How many address lines are there in ARM processor?
A. 24
B. 32
C. 16
D. 64
ANSWER: B
15. In pipelining, before decode, data is
A. fetched
B. execute
C. initialized
D. deleted
ANSWER: A
16. The Thumb instruction set is a subset of the most commonly used ----ARM instructions.
A. 32 bit
B. 24 bit
C. 16 bit
D. 64 bit
ANSWER: A
17. CPSR stands for-------
A. current program status Register
B. carry program sub-register
C. clock power status register
D. current program saved register
ANSWER: A
18. The ARM processor has --------operating modes
A. 2
B. 4
C. 6
D. 8
ANSWER: C
19. The ARM has ____sets of instructions which interact with main memory
A. 1
B. 2
C. 3
D. 4
ANSWER: C
20. A --------------define the current limits of the stack in ARM processor
A. stack pointer
B. data pointer
C. program counter
D. offset pointer
ANSWER: A
21. The thumb code requires------------of the space of the ARM code
A. 40%
B. 50%
C. 70%
D. 100%
ANSWER: C
22. In order to easily add system features like caches and memory timing characteristics ____ is
designed
A. ARMulator
B. AMBA Bus
C. System bus
D. ARM Memory interface
ANSWER: A
23. ARM processor with Cortex-M0 core has a clock generator with ____ clock sources
A. 4
B. 5
C. 3
D. 6
ANSWER: B
24. ____ is not a valid ARM Instruction
A. MUL
B. MLA
C. LDR
D. MVI
ANSWER: D
25. Identify which of the below is not the addressing mode of ARM processor?
A. Immediate addressing
B. Implied addressing
C. Register addressing
D. Base plus index addressing
ANSWER: B
26. Which of the below mentioned code is not the condition code flag of ARM processor?
A. N
B. C
C. Z
D. OV
ANSWER: D
27. In ARM processor, when two 32 bit integers are multiplied, the result obtained is ______
A. 24 bit
B. 26 bit
C. 27 bit
D. 28 bit
ANSWER: B
28. The register used to store the condition code bits in ARM processor is _________
A. APSR
B. CPSR
C. PC
D. r12
ANSWER: B
29. ARM Processor does not support _______ operations.
A. memory to register
B. register to register
C. memory to memory
D. register to memory
ANSWER: C
30. Which of the following category is not the ARM instructions comes under?
A. Data processing instructions
B. Memory handling instructions
C. Data transfer instructions
D. Control flow instructions
ANSWER: B
31. ARM means _____________
A. Advanced RISC Machines
B. Advanced Rate Machines
C. Advance Running Machines
D. Artificial Running Machines
ANSWER: A
32. With 32-bit memory, the ARM code is-------faster than thumb code
A. 40%
B. 45%
C. 30%
D. 20%
ANSWER: A
33. ARM processor supports ___________ address system
A. Little Endian
B. Big Endian
C. X-Little Endian
D. Both Little & Big Endian
ANSWER: D
34. Throughput means
A. One instruction per cycle
B. Three cycles per instruction
C. Two instructions per cycle
D. Average number of clock cycles per instruction
ANSWER: A
35. Identify the available stages in 3-stage pipeline
A. Decode, Write-back, and Fetch
B. Execute, Decode and Fetch
C. Fetch, execute and buffer
D. Decode, execute and buffer
ANSWER: B
36. The hardware system prototyping tools are NOT related to
A. Rapid silicon prototyping
B. AMBA
C. Providing a platform for system verification and software development
D. ARM integrator
ANSWER:
37. The ARM code can be evaluated and debugged without the processor chip using ARMulator
which is a _________
A. Hardware emulator
B. Software emulator
C. Firmware emulator
D. Interrupt emulator
ANSWER: B
38. Which instruction of ARM processor did not give any carry at the output of arithmetic operation?
A. BVS
B. BGT
C. BCC
D. BCS
ANSWER: C
39. In ARM Processor, the result of product of two register content can be added to another register
content is done by the instruction ________
A. MUL
B. MULA
C. MLA
D. MUA
ANSWER: C
40. NUC140 processor does not consist
A. More than two timers
B. Real time clock
C. Brown out reset
D. 16-bit ADC
ANSWER: D
41. Which of the following is NOT true related to the nuvoTon –NU-LB-NUC140 processor
A. An ARM based 32-bit microcontroller
B. It is using ARM9 cpu core
C. having SRAM
D. It uses Thumb instruction set
ANSWER: B
42. In nuvoTon –NU-LB-NUC140 architecture, ‘1’ and ‘4’ represent ____ and ___ repectively
A. CPU core and Function
B. CPU core and RAM size
C. Function and CPU core
D. RAM size and Function
ANSWER:
43. Which of the following ARM processor is fastest?
A. Cortex-A processors
B. Cortex-M processors
C. ARM9E series
D. ARM64FX.
ANSWER: D
44. How many registers are available in arm processor?
A. 54
B. 45
C. 47
D. 37
ANSWER: D
45. ARM7 is a --------------- ARM processor
A. 32- bit
B. 8-bit
C. 16-bit
D. 64-bit
ANSWER: A
46. Which of the following interrupt input is level sensitive and maskable?
A. FIQ
B. IPR
C. IR
D. IIS
ANSWER: A
47. Which modelling presents signals at the correct time within a cycle, allowing logic delays to be
accounted for?
A. Instruction accurate modelling
B. Cycle accurate modelling
C. Time accurate modelling
D. System accurate modelling
ANSWER: C
48. Which of the following is not the instruction of ARM processor?
A. ADC
B. ADD
C. ORR
D. ANL
ANSWER: D
49. Which of the following statements are false?
(1) ARM processor with 3-stage pipeline has A bus and B bus
(2) Barrel shifter is connected to B bus

a. (1) alone is false


b. (2) alone is false
c. Both (1) and (2) are false
d. Neither (1) nor (2)
ANSWER: D
50. Which of the following statements are true with respect to ALU bus in 3-stage pipeline of ARM
organization?
(1) It is connected between Register bank and address register
(2) It is connected between B bus and ALU

e. (1) alone is true


f. (2) alone is true
g. Both (1) and (2) are true
h. Neither (1) nor (2)
ANSWER: A
51. Executing ADD ro,r1,r2 instruction using ARM processor will
i. Add the contents of registers r0 and r2 , then stores result in r0
j. Add the contents of registers r1 and r0 , then stores result in r2
k. Add the contents of registers r1 and r2 , then stores result in r0
l. Add the contents of registers r1 and r2 , then stores result in r1
ANSWER: C
52. MVN and MOV instructions in ARM are
m. 8-bit instructions
n. Register movement instructions
o. Not used to transfer data between registers
p. 8-bit instructions
ANSWER: B
53. LSL and MLA instructions are used to ____ and _____
q. Load store logic, Multiply and accumulate
r. Logical shift left, Multiply with accumulator
s. Logical store logic, Multiply and accumulate
t. Logical shift left, Multiply and accumulate
ANSWER: D
54. Identify the instruction based on the figure shown.
A. LSR
B. LSL
C. ASL
D. ASR
ANSWER: B
55. In ARM Processor, What is the operation of the instruction ADR r1, TABLE1?
A. Copies the r1 content to Table1
B. Causes r1 to contain address of data that follows Table1
C. Copies the r1 with content of Table1
D. Causes r1 to contain address of Table1
ANSWER: B
56. Identify the instruction which transfers data to multiple registers at a time in ARM processor.
A. LDIMR r2, { r1, r3, r5 }
B. LDA r2, { r1, r3, r5 }
C. LDMIA r1, { r0, r2, r5 }
D. LDM r1, { r0, r2, r5 }
ANSWER: C
57. The ARM processor has how many general purpose registers?
A. r0 to r14
B. r0 to r15
C. r0 to r7
D. r0 to r31
ANSWER: A
58. How many write and read ports does the PC of ARM processor has?
A. 1 and 3 respectively
B. 2 and 3 respectively
C. 1 and 2 respectively
D. 2 and 4 respectively
ANSWER: B
59. Which of the following has the highest exception priority?
A. FIQ
B. IRQ
C. Reset
D. Prefetch abort
ANSWER: C
60. The S and H bits of binary encoding in ARM processor defines ________
A. type of source
B. type of destination
C. type of operand
D. type of error
ANSWER: C
1. How many clock pulses are confined by each machine cycle of Peripheral-Interface Controllers?
a. 4
b. 8
c. 12
d. 16
ANSWER: (a) 4
2) Which flags are more likely to get affected in status registers by Arithmetic and Logical Unit (ALU) of
PIC 16 CXX on the basis of instructions execution?
a. Carry (C) Flags
b. Zero (Z) Flags
c. Digit Carry (DC) Flags
d. All of the above
ANSWER: (d) All of the above
3) What is the execution speed of instructions in PIC especially while operating at the maximum value of
clock rate?
a. 0.1 μs
b. 0.2 μs
c. 0.4 μs
d. 0.8 μs
ANSWER: (b) 0.2 μs
4) Which operational feature of PIC allows it to reset especially when the power supply drops the
voltage below 4V?
a. Built-in Power-on-reset
b. Brown-out reset
c. Both a & b
d. None of the above
ANSWER: (b)Brown-out reset
5) Which among the below stated reasons is/are responsible for the selection of PIC
implementation/design on the basis of Harvard architecture instead of Von-Newman architecture?
a. Improvement in bandwidth
b. Instruction fetching becomes possible over a single instruction cycle
c. Independent bus access provision to data memory even while accessing the program memory
d. All of the above
ANSWER: (d) All of the above
6) Which among the below specified major functionalities is/are associated with the programmable
timers of PIC?
a. Excogitation of Inputs
b. Handling of Outputs
c. Interpretation of internal timing for program execution
d. Provision of OTP for large and small production runs

a. Only C
b. C & D
c. A, B & D
d. A, B & C
ANSWER: (d) A, B & C
7) Which timer/s possess an ability to prevent an endless loop hanging condition of PIC along with its
own on-chip RC oscillator by contributing to its reliable operation?
a. Power-Up Timer (PWRT)
b. Oscillator Start-Up Timer (OST)
c. Watchdog Timer (WDT)
d. All of the above
ANSWER: (c) Watchdog Timer (WDT)
8) Which among the CPU registers of PIC 16C6X/7X is not 8-bit wide?
a. Status Register
b. Program Counter Latch (PCLATH) Register
c. Program Counter Low Byte (PCL) Register
d. File Selection Register (FSR)
ANSWER: (b) Program Counter Latch (PCLATH) Register
9) Which register/s is/are mandatory to get loaded at the beginning before loading or transferring the
contents to corresponding destination registers?
a. W
b. INDF
c. PCL
d. All of the above
ANSWER: (a) W
10) How many RPO status bits are required for the selection of two register banks?
a. 1
b. 2
c. 8
d. 16
ANSWER: (a) 1

11) The RPO status register bit has the potential to determine the effective address of______
a. Direct Addressing Mode
b. Indirect Addressing Mode
c. Immediate Addressing Mode
d. Indc. Watchdog Timer (WDT) exed Addressing Mode
ANSWER: (a) Direct Addressing Mode
12) Which status bits exhibit carry from lower 4 bits during 8-bit addition and are especially beneficial
for BCD addition?
a. Carry bit (C)
b. Digits Carry bit (DC)
c. Both a & b
d. None of the above
ANSWER: (b) Digits Carry bit (DC)
13) Which statement is precise in relation to FSR, INDF and indirect addressing mode?
a. Address byte must be written in FSR before executing INDF instruction in indirect addressing mode
b. Address byte must be written in FSR after executing INDF instruction in indirect addressing mode
c. Address byte must be written in FSR at the same time during the execution of INDF instruction in indirect
addressing mode
d. Address byte must be always written in FSR as it is independent of any instruction in indirect addressing
mode

a. Only A
b. Only B
c. Only A & B
d. A & D
ANSWER: (a) Only A
14) Which among the below stated registers specify the address reachability within 7 bits of address
independent of RP0 status bit register?
a. PCL
b. FSR
c. INTCON
d. All of the above
ANSWER: (d) All of the above
15) Where do the contents of PCLATH get transferred in the higher location of program counter while
writing in PCL (Program Counter Latch)?
a. 11th bit
b. 12th bit
c. 13th bit
d. 14th bit
ANSWER: (c) 13th bit
16) Which condition/s of MCLR (master clear) pin allow to reset the PIC?
a. High
b. Low
c. Moderate
d. All of the above
ANSWER:(b) Low
17) Generation of Power-on-reset pulse can occur only after __________
a. the detection of increment in VDD from 1.5 V to 2.1 V
b. the detection of decrement in VDD from 2.1 V to 1.5 V
c. the detection of variable time delay on power up mode
d. the detection of current limiting factor
ANSWER: (a) the detection of increment in VDD from 1.5 V to 2.1 V
18) What is the rate of power up delay provided by an oscillator start-up timer while operating at XT,
LP and HS oscillator modes?
a. 512 cycles
b. 1024 cycles
c. 2048 cycles
d. 4096 cycles
ANSWER: (b) 1024 cycles
19) Which kind of mode is favourable for MCLR pin for indulging in reset operations?
a. Normal mode
b. Sleep mode
c. Power-down mode
d. Any flexible mode
ANSWER: (b) Sleep mode
20) What is the purpose of using the start-up timers in an oscillator circuit of PIC?
a. For ensuring the inception and stabilization of an oscillator in a proper manner
b. For detecting the rise in VDD
c. For enabling or disabling the power-up timers
d. For generating the fixed delay of 72ms on power-up timers
ANSWER: (a) For ensuring the inception and stabilization of an oscillator in a proper manner
21) Which program location is allocated to the program counter by the reset function in Power-on-Reset
(POR) action modes?
a. Initial address
b. Middle address
c. Final address
d. At any address reliable for reset operations
ANSWER: (a) Initial address
22) When does it become very essential to use the external RC components for the reset circuits?
a. Only if initialization is necessary for RAM locations
b. Only if VDD power-up slope is insufficient at a requisite level
c. Only if voltage drop exceeds beyond the limit
d. Only if current limiting factor increases rapidly
ANSWER: (b) Only if VDD power-up slope is insufficient at a requisite level
23) Which among the below mentioned PICs do not support the Brown-Out-Reset (BOR) feature?
a. PIC 16C66
B. PIC 16C74
C. PIC 16C61
D. PIC 16C71

a. A & B
b. C & D
c. A & C
d. B & D
ANSWER: (b) C & D
24) Which crucial feature/function of Brown-Out-Reset (BOR) makes the PIC to be completely unique
and distinct from other microcontrollers?
a. It can reset the PIC automatically in running condition
b. It can reset the PIC even when the supply voltage increases above 4V
c. It can reset the PIC without enabling the power-up timer
d. All of the above
ANSWER: (a) It can reset the PIC automatically in running condition
25) What happens when the supply voltage falls below 4V during the power-up timer delay of 72ms in
PIC?
a. CPU resets PIC once again in BOR mode
b. BOR reset mode gets disabled
c. PIC does not remain in BOR mode until the voltage increases irrespective of stability
d. Power-up timer kills 72ms more again
ANSWER: (a) CPU resets PIC once again in BOR mode
26) What output is generated by OSC2 pin in PIC oscillator comprising RC components for
sychronizing the peripherals with PIC microcontroller?
a. (1/2) x frequency of OSC1
b. (1/4) x frequency of OSC1
c. (1/8) x frequency of OSC1
d. (1/16) x frequency of OSC1
ANSWER:(c) (1/8) x frequency of OSC1
27) Which form of clocking mechanism is highly efficient and reliable for crystal or ceramic clock
sources for operating at the range of 5- 200 kHz in PIC?
a. RC
b. LP (Low-Power Clocking)
c. XT
d. HS (High Speed)
ANSWER: (b) LP (Low-Power Clocking)
28) Which significant feature/s of crystal source contribute/s to its maximum predilection and utility as
compared to other clock sources?
a. High accuracy
b. Proficiency in time generation
c. Applicability in real-time operations
d. All of the above
ANSWER: (a) All of the above
29) What is the executable frequency range of High speed (HS) clocking method by using cystal/
ceramic/ resonator or any other external clock source?
a. 0-4 MHz
b. 5-200 KHz
c. 100kHz- 4 MHZ
d. 4-20 MHz
ANSWER: (d) 4-20 MHz
30) How many bits are required for addressing 2K & 4K program memories of PIC 16C61 respectively?
a. 4 & 8 bits
b. 8 & 16 bits
c. 11 & 12 bits
d. 12 & 16 bits
ANSWER: (c) 11 & 12 bits
31) What location is attributed to ‘goto Mainline’ instruction in the program memory of PIC 16C61?
a. 000H
b. 004H
c. 001H
d. 011H
ANSWER: (a) 000H
32) When do the special address 004H get automatically loaded into the program counter?
a. After the execution of RESET action in program counter
b. After the execution of ‘goto Mainline ‘ instruction in the program memory
c. At the occurrence of interrupt into the program counter
d. At the clearance of program counter with no value
ANSWER: (c) At the occurrence of interrupt into the program counter
33) How many bits are utilized by the instruction of direct addressing mode in order to address the
register files in PIC?
a. 2
b. 5
c. 7
d. 8
ANSWER:(c) 7
34) Which registers are adopted by CPU and peripheral modules so as to control and handle the
operation of device inhibited in RFS?
a. General Purpose Register
b. Special Purpose Register
c. Special Function Registers
d. All of the above
ANSWER: (c) Special Function Registers
35) Which among the below specified registors are addressable only from bank1 of RFS?
a. PORTA (05H)
b. PORTB (06H)
c. FSR (04H)
d. ADCON0 (07H)
ANSWER: (a) PORTA (05H)
36) Which register acts as an input-output control as well as data direction register for PORTA in bank
2 of RFS?
a. INDF (80H)
b. TRISB (85H)
c. TRISA (85H)
d. PCLATH (8A)
ANSWER: (c) TRISA (85H)
37) Which bank of RFS has a provision of addressing the status register?
a. Only Bank 1
b. Only Bank 2
c. Either Bank 1 or Bank 2
d. Neither Bank 1 nor Bank 2
ANSWER: (c) Either Bank 1 or Bank 2
38) Which bit of OPTION register has a potential to decide the falling or rising edge sensitivity for the
external interrupt INT?
a. RBPU
b. INTEDG
c. PSA
d. RTS
ANSWER: (b) INTEDG
39) Where are the prescalar assignments applied with a usage of PSA bit?
a. Only RTCC
b. Only Watchdog timer
c. Either RTCC or Watchdog timer
d. Neither RTCC nor Watchdog timer
ANSWER: (c) Either RTCC or Watchdog timer
40) Where is the exact specified location of an interrupt flag associated with analog-to-digital converter?
a. INTCON
b. ADCON0
c. ADRES
d. PCLATH
ANSWER: (b) ADCON0
41) Which bit permits to enable (if set) or disable (if cleared) all the interrupts in an INTCON register?
a. GIE
b. ADIE
c. RBIE
d. TOIE
ANSWER: (a) GIE
42) When does it become possible for a bit to get accessed from bank ‘0’ in the direct addressing mode of
PICs?
a. Only when RPO bit is set ‘zero’
b. Only when RPO bit is set ‘1’
c. Only when RPO bit is utilized along with 7 lower bits of instruction code
d. Cannot Predict
ANSWER: (a) Only when RPO bit is set ‘zero’

43) When does it become feasible for portB pins (RB4 to RB7) to support its unique feature of ‘interrupt
on change’?
a. By configuring all the pins (RB4-RB7) as inputs
b. By configuring all the pins (RB4-RB7) as outputs
c. By configuring any one of the pins as inputs
d. By configuring any one of the pins as outputs
ANSWER: (a) By configuring all the pins (RB4-RB7) as inputs
44) Which digital operations are performed over the detected mismatch outputs with an intention to
generate a single output RB port change output?
a. OR
b. AND
c. EX-OR
d. NAND
ANSWER: (a) OR
45) What is the purpose of acquiring two different bits from INTCON register for performing any
interrupt operation in PIC 16C61 / 71?
a. One for enabling & one for disabling the interrupt
b. One for enabling the interrupt & one for its occurrence detection
c. One for setting or clearing the RBIE bit
d. None of the above
ANSWER: (b) One for enabling the interrupt & one for its occurrence detection
46) Which among the below specified combination of interrupts belong to the category of the PIC 16C61
/ 71?
a. External, Timer/Counter & serial Port Interrupts
b. Internal, External & Timer/Counter Interrupts
c. External, Timer 0 & Port B Interrupts
d. Internal, External, Timer 0 & PortA Interrupts
ANSWER: (c) External, Timer 0 & Port B Interrupts
47) Which condition results in setting the GIE bit of INTCON automatically?
a. Execution of retfie instruction at the beginning of ISR
b. Execution of retfie instruction at the end of ISR
c. Execution of retfie instruction along with interrupt enable bit
d. Execution of retfie instruction along with interrupt disable bit
ANSWER: (b) Execution of retfie instruction at the end of ISR
48) What kind of external edge-sensitive interrupt is generated due to transition effect at pin RBO/INT?
a. INT
b. RBO
c. INTF
d. All of the above
ANSWER:(a) INT
49) Which bit-register pair plays a significant role in configuring the rising or falling edge triggering
levels in external interrupts of PIC 16C61/71?
a. INTF bit – INTCON register
b. INTEDG bit – OPTION register
c. INT bit -INTCON register
d. INTE bit – OPTION register
ANSWER: (b) INTEDG bit – OPTION register
50) Consider the following statements. Which of them is /are incorrect?
a. By enabling INTE bit of an external interrupt can wake up the processor before entering into sleep mode.
b. INTF bit is set in INTCON only when a valid interrupt signal arrives at INT pin.
c. During the occurrence of interrupt, GIE bit is set in order to prevent any further interrupts.
d. goto instruction written in program memory cannot direct the program control to ISR.

a. A & B
b. C & D
c. Only A
d. Only C
ANSWER: (b) C & D
51) What is the purpose of setting TOIE bit in INTCON along with GIE bit?
a. For setting the TOIF flag in INTCON due to generation of Timer 0 overflow interrupt
b. For setting the TOIE flag in INTCON due to generation of Timer 0 overflow interrupt
c. For setting the RBIF flag in INTCON due to generation of PORTB change interrupt
d. None of the above
ANSWER: (a) For setting the TOIF flag in INTCON due to generation of Timer 0 overflow interrupt
52) Where do the conversion interrupt flag (ADIF) end after an accomplishment of analog-to-digital
(ADC) conversion process?
a. INTCON
b. ADCON0
c. OPTION
d. None of the above
ANSWER: (b) ADCON0
53) How much time is required for conversion per channel if PIC 16C71 possesses four analog channels,
each comprising of 8-bits?
a. 10 μs
b. 15 μs
c. 20 μs
d. 30 μs
ANSWER: (c) 20 μs
54) How much delay is required to synchronize the external clock at TOCKI in Timer ‘0’ of PIC 16C61?
a. 2-cycles
b. 4-cycles
c. 6-cycles
d. 8-cycles
ANSWER: (a) 2-cycles
55) Which command enables the PIC to enter into the power down mode during the operation of
watchdog timer (WDT)?
a. SLEEP
b. RESET
c. STATUS
d. CLR
ANSWER: (a) SLEEP
56) Which channel would be selected if the values of channel bits CHS0 & CHS1 are ‘1’ & ‘0’
respectively in ADC Status Register?
a. AIN0
b. AIN1
c. AIN2
d. AIN3
ANSWER: (c) AIN2
57) Which bit is mandatory to get initiated or set for executing the process of analog to digital
conversion in ADCON0?
a. ADIF
b. ADON
c. Go/!Done
d. ADSC1
ANSWER: (c) Go/!Done
58) What would be the value of ADC clock source, if both the ADC clock bits are selected to be ‘1’?
a. FOSC/2
b. FOSC/8
c. FOSC/32
d. FRC
ANSWER: (d) FRC
59) The functionalities associated with the pins RA0- RA3 in ADCON1 are manipulated by __________
a. PCFG1 & PCG0
b. VREF
c. ADON
d. All of the above
ANSWER: (a) PCFG1 & PCG0
60) Which among the below mentioned aspect issues are supported by capture/compare/PWM modules
corresponding to time in PIC 16F877?
a. Control
b. Measurement
c. Generation of pulse signal
d. All of the above
ANSWER: (d) All of the above
61) Which register is suitable for the corresponding count, if the measurement of pulse width is less than
65,535 μs along with the frequency of 4 MHz?
a. 4-bit register
b. 8-bit register
c. 16-bit register
d. 32-bit register
ANSWER: (c) 16-bit register
UNIT-5 -MCQ
Identify which of the below is not the addressing mode of ARM
processor? A. Immediate addressing
B. Implied addressing
C. Register addressing
D. Base plus index addressing

ANSWER: B

Which of the below mentioned code is not the condition code flag of ARM
processor? A. N
B. C
C. Z
D. OV

ANSWER: D

Identify the instruction based on the figure shown.


A. LSR
B. LSL
C. ASL
D. ASR

ANSWER: B

In ARM processor, when two 32 bit integers are multiplied, the result obtained is
______ A. 24 bit
B. 25 bit
C. 27 bit
D. 28 bit

ANSWER: B

In ARM Processor, What is the operation of the instruction ADR r1,


TABLE1? A. Copies the r1 content to Table1
B. Causes r1 to contain address of data that follows Table1
C. Copies the r1 with content of Table1
D. Causes r1 to contain address of Table1

ANSWER: B

Identify the instruction which transfers data to multiple registers at a time in ARM
processor. A. LDIMR r2, { r1, r3, r5 }
B. LDA r2, { r1, r3, r5 }
C. LDMIA r1, { r0, r2, r5 }
D. LDM r1, { r0, r2, r5 }
ANSWER: C
Which instruction of ARM processor did not give any carry at the output of arithmetic
operation?
A. BVS
B. BGT
C. BCC
D. BCS

ANSWER: C

The ARM processor has how many general purpose registers?


A. r0 to r14
B. r0 to r15
C. r0 to r7
D. r0 to r31

ANSWER: A

The register used to store the condition code bits in ARM processor is _________
A. APSR
B. CPSR
C. PC
D. r12

ANSWER: B

In ARM Processor, the result of product of two register content can be added to another register
content is done by the instruction ________
A. MUL
B. MULA
C. MLA
D. MUA

ANSWER: C

ARM stands for _____________.

A. Advanced RISC Microprocessors


B. Advanced RISC Management
C. Advanced RISC Machines
D. Advanced RISC Main frame

ANSWER: C

Instruction in ARM machines is encoded into __________ Word.

A. Two byte
B. Four Byte
C. Eight Byte
D. Six Byte
ANSWER: B

The address space in ARM is ___________

A. 2^8
B. 2^16
C. 2^32
D. 2^64
ANSWER : C

Which of the following is False?

A. The ability to store data in the form of consecutive bytes.


B. These ARM processors are designed for handheld devices.
C. ARM is a type of system architecture.
D. Both A and B
ANSWE : A

__________ is the address that the computer acquires from the current instruction
being executed.

A. Simple Address
B. Complex Address
C. Non-Effective address
D. Effective address
ANSWER: D

The duplicate registers are used in situations of _________.


A. Banked switching
B. Extential switching
C. context switching
D. Internal switching
ANSWER: C

The instructions which are used to load or store multiple operands are called as __________ A.
Banked instructions
B. Lump transfer instructions
C. Block transfer instructions
D. DMA instructions
ANSWER :C
What are the profiles for ARM architecture?
A. A, R
B. A, M
C. A, R, M
D. R ,M
ANSWER: C

The Thumb instruction set is a--------of the ARM instruction set and the instruction operate on
restricted view of the ARM register
A.Subset
B.Null set
C.Set
D.Semi set
ANSWER: A

The ARMulator has a role in ----------- system design.

A.Hardware
B.Software
C.Embedded
D.AMBA
ANSWER: C

ARM processor supports ___________ address system


A. Little Endian
B. Big Endian
C. X-Little Endian
D. Both Little & Big Endian
ANSWER: D

Which instruction is used to list the registers used for execution?

A. ASSIGN
B. RN
C. PSLOAD
D. ADR
ANSWER : B

Which instruction is basically used to check the branch enable bit?

A. BEQ
B. ASSIGN
C. PSLOAD
D. ADR
ANSWER : A
Which of the following is true?
A. instructions are generally used to perform memory transfer
operations. B. The LDM instruction is used to load data into multiple
locations.
C. The MLA instruction is used perform addition and multiplication
together. D. All of the above
ANSWER: D

The offset used in the conditional branching is __________ bit.

A. 8
B. 16
C. 24
D. 32
ANSWER : C

The Thumb instruction set is a subset of the most commonly used ----ARM instructions.
A.32 bit
B.24 bit
C.16 bit
D. 4 bit
ANSWER: A

CPSR stands for-------


A. current program status Register
B. carry program sub-register
C. clock power status register
D. current program saved register
ANSWER: A

The ARM processor has --------operating modes


A. 2
B. 4
C. 6
D. 8
ANSWER: C

The thumb code requires------------of the space of the ARM code


A. 40%
B. 50%
C. 70%
D. 100%
ANSWER: C
In order to easily add system features like caches and memory timing characteristics ____ is
designed
A. ARMulator
B. AMBA Bus
C. System bus
D. ARM Memory interface
ANSWER: A

In ARM processor, when two 32 bit integers are multiplied, the result obtained is ______
A. 24 bit
B. 25 bit
C. 27 bit
D. 28 bit
ANSWER: B

The Advanced Peripheral Bus offers a simpler interface for------- performance peripherals.
A. Low
B. High
C. Unity
D. Zero
ANSWER :A

All Thumb instructions are ---------long


A. 16 bit
B. 8 bit
C. 64 bit
D. 32 bit
ANSWER :A

With 32-bit memory, the ARM code is -------faster than the Thumb code
A.40%
B.45%
C.55%
D.80%
ANSWER :A

Many Thumb data processing instructions use a--------- address format


A. 1
B. 2
C. 3
D. 4
ANSWER : B
Identify the available stages in 5-stage pipeline:
A. Decode, Write-back, and Fetch
B. Fetch, Decode, Execute , buffer and Write-back
C. Fetch, execute, buffer, and decode
D. Decode, execute , buffer and Write-back
ANSWER: B

The hardware system prototyping tools are related to


A. Rapid silicon prototyping
B. ASB
C. Providing a platform for system verification and software development
D. ARM integrator
ANSWER: A

ARM7 is a --------------- ARM processor


A. 32- bit
B. 8-bit
C. 16-bit
D. 64-bit
ANSWER: A
Which of the following is not the instruction of ARM processor?
A. ADC
B. ADD
C. ORR
D. ANL
ANSWER: D

Which of the following register in ARM7 is used to point to the location of currently executing
instruction in a program?
A.R1
B. R5
C. R15
D. R8
ANSWER : C
Which of the following statements are true with respect to pipelining. I. Pipelining is an
implementation technique whereby multiple instructions are overlapped in execution. It is
not visible to the programmer
II. II. Each step is called a pipe stage or pipe segment
III. III. Pipeline machine cycle is the time required to move an instruction one step down the
pipeline
A. All are true
B.I and III are true
C. II and III are true
D. None of them are true
ANSWER : A
The fastest data access is provided using _______.
A. Caches
B.DRAM’s
C. SRAM’s
D. Registers
ANSWER : D
UNIT 4-MCQ

How many clock pulses are confined by each machine cycle of Peripheral-Interface Controllers?
a. 4
b. 8
c. 12
d. 16
ANSWER: (a) 4

Which flags are more likely to get affected in status registers by Arithmetic and Logical Unit (ALU)
of PIC 16 CXX on the basis of instructions execution?
a. Carry (C) Flags
b. Zero (Z) Flags
c. Digit Carry (DC) Flags
d. All of the above
ANSWER: (d) All of the above

What is the execution speed of instructions in PIC especially while operating at the maximum value
of clock rate?
a. 0.1 μs
b. 0.2 μs
c. 0.4 μs
d. 0.8 μs
ANSWER: (b) 0.2 μs

Which operational feature of PIC allows it to reset especially when the power supply drops the
voltage below 4V?
a. Built-in Power-on-reset
b. Brown-out reset
c. Both a & b
d. None of the above
ANSWER: (b)Brown-out reset

Which among the below stated reasons is/are responsible for the selection of PIC
implementation/design on the basis of Harvard architecture instead of Von-Newman architecture?
a. Improvement in bandwidth
b. Instruction fetching becomes possible over a single instruction cycle
c. Independent bus access provision to data memory even while accessing the program
memory d. All of the above
ANSWER: (d) All of the above

Which among the below specified major functionalities is/are associated with the programmable
timers of PIC?
a. Excogitation of Inputs
b. Handling of Outputs
c. Interpretation of internal timing for program execution
d. Provision of OTP for large and small production runsa. Only C
b. C & D
c. A, B & D
d. A, B & C

ANSWER: (d) A, B & C


Which timer/s possess an ability to prevent an endless loop hanging condition of PIC along with its
own on-chip RC oscillator by contributing to its reliable operation?
a.Power-Up Timer (PWRT)
b. Oscillator Start-Up Timer (OST)
c. Watchdog Timer (WDT)
d. All of the above
ANSWER: (c) Watchdog Timer (WDT)

Which among the CPU registers of PIC 16C6X/7X is not 8-bit wide?
a. Status Register
b. Program Counter Latch (PCLATH) Register
c. Program Counter Low Byte (PCL) Register
d. File Selection Register (FSR)
ANSWER: (b) Program Counter Latch (PCLATH) Register

Which register/s is/are mandatory to get loaded at the beginning before loading or transferring the
contents to corresponding destination registers?
a. W
b. INDF
c. PCL
d. All of the above
ANSWER: (a) W

How many RPO status bits are required for the selection of two register banks?
a. 1
b. 2
c. 8
d. 16
ANSWER: (a) 1
The RPO status register bit has the potential to determine the effective address of______

a. Direct Addressing Mode


b. Indirect Addressing Mode
c. Immediate Addressing Mode
d. Indc. Watchdog Timer (WDT) exed Addressing Mode
ANSWER: (a) Direct Addressing Mode

Which status bits exhibit carry from lower 4 bits during 8-bit addition and are especially beneficial for
BCD addition?
a. Carry bit (C)
b. Digits Carry bit (DC)
c. Both a & b
d. None of the above
ANSWER: (b) Digits Carry bit (DC)
In PIC microcontroller, which instruction will wait for watchdog timer or external signal to begin
program execution again?
a.nop
b. sleep
c. resume
d. clrwdt
ANSWER: (b) Sleep
Which statement is precise in relation to FSR, INDF and indirect addressing mode? a. Address
byte must be written in FSR before executing INDF instruction in indirect addressing mode
b. Address byte must be written in FSR after executing INDF instruction in indirect addressing mode
c. Address byte must be written in FSR at the same time during the execution of INDF instruction in
indirect addressing mode
d. Address byte must be always written in FSR as it is independent of any instruction in indirect
addressing mode

a. Only A
b. Only B
c. Only A & B
d. A & D
ANSWER: (a) Only A

Which among the below stated registers specify the address reachability within 7 bits of address
independent of RP0 status bit register?
a. PCL
b. FSR
c. INTCON
d. All of the above
ANSWER: (d) All of the above

Where do the contents of PCLATH get transferred in the higher location of program counter while
writing in PCL (Program Counter Latch)?
a. 11th bit
b. 12th bit
c. 13th bit
d. 14th bit
ANSWER: (c) 13th bit

Which condition/s of MCLR (master clear) pin allow to reset the PIC?

a. High
b. Low
c. Moderate
d. All of the above
ANSWER:(b) Low

Generation of Power-on-reset pulse can occur only after __________


a. the detection of increment in VDD from 1.5 V to 2.1 V
b. the detection of decrement in VDD from 2.1 V to 1.5 V
c. the detection of variable time delay on power up mode
d. the detection of current limiting factor
ANSWER: (a) the detection of increment in VDD from 1.5 V to 2.1 V

What is the rate of power up delay provided by an oscillator start-up timer while operating at XT, LP
and HS oscillator modes?
a. 512 cycles
b. 1024 cycles
c. 2048 cycles
d. 4096 cycles
ANSWER: (b) 1024 cycles
Which kind of mode is favourable for MCLR pin for indulging in reset operations?
a. Normal mode
b. Sleep mode
c. Power-down mode
d. Any flexible mode
ANSWER: (b) Sleep mode

What is the purpose of using the start-up timers in an oscillator circuit of PIC? a.
For ensuring the inception and stabilization of an oscillator in a proper manner
b. For detecting the rise in VDD
c. For enabling or disabling the power-up timers
d. For generating the fixed delay of 72ms on power-up timers
ANSWER: (a) For ensuring the inception and stabilization of an oscillator in a proper manner

Which program location is allocated to the program counter by the reset function in Power-on-Reset
(POR) action modes?
a. Initial address
b. Middle address
c. Final address
d. At any address reliable for reset operations
ANSWER: (a) Initial address

When does it become very essential to use the external RC components for the reset circuits?
a. Only if initialization is necessary for RAM locations
b. Only if VDD power-up slope is insufficient at a requisite level
c. Only if voltage drop exceeds beyond the limit
d. Only if current limiting factor increases rapidly
ANSWER: (b) Only if VDD power-up slope is insufficient at a requisite level

Which among the below mentioned PICs do not support the Brown-Out-Reset (BOR) feature?
a. PIC 16C66
B. PIC 16C74
C. PIC 16C61
D. PIC 16C71

a. A & B
b. C & D
c. A & C
d. B & D
ANSWER: (b) C & D

Which crucial feature/function of Brown-Out-Reset (BOR) makes the PIC to be completely unique
and distinct from other microcontrollers?a. It can reset the PIC automatically in running condition
b. It can reset the PIC even when the supply voltage increases above 4V
c. It can reset the PIC without enabling the power-up timer
d. All of the above
ANSWER: (a) It can reset the PIC automatically in running condition
What happens when the supply voltage falls below 4V during the power-up timer delay of 72ms in
PIC?
a. CPU resets PIC once again in BOR mode
b. BOR reset mode gets disabled
c. PIC does not remain in BOR mode until the voltage increases irrespective of stability
d. Power-up timer kills 72ms more again
ANSWER: (a) CPU resets PIC once again in BOR mode

What output is generated by OSC2 pin in PIC oscillator comprising RC components for sychronizing
the peripherals with PIC microcontroller?
a. (1/2) x frequency of OSC1
b. (1/4) x frequency of OSC1
c. (1/8) x frequency of OSC1
d. (1/16) x frequency of OSC1
ANSWER:(c) (1/8) x frequency of OSC1

Which form of clocking mechanism is highly efficient and reliable for crystal or ceramic clock
sources for operating at the range of 5- 200 kHz in PIC?
a. RC
b. LP (Low-Power Clocking)
c. XT
d. HS (High Speed)
ANSWER: (b) LP (Low-Power Clocking)

Which significant feature/s of crystal source contribute/s to its maximum predilection and utility as
compared to other clock sources?
a. High accuracy
b. Proficiency in time generation
c. Applicability in real-time operations
d. All of the above
ANSWER: (a) All of the above

What is the executable frequency range of High speed (HS) clocking method by using cystal/ ceramic/
resonator or any other external clock source?
a. 0-4 MHz
b. 5-200 KHz
c. 100kHz- 4 MHZ
d. 4-20 MHz
ANSWER: (d) 4-20 MHz

How many bits are required for addressing 2K & 4K program memories of PIC 16C61
respectively? a. 4 & 8 bits
b. 8 & 16 bits
c. 11 & 12 bits
d. 12 & 16 bits
ANSWER: (c) 11 & 12 bits

What location is attributed to ‘goto Mainline’ instruction in the program memory of PIC 16C61?
a. 000H
b. 004H
c. 001H
d. 011H
ANSWER: (a) 000H
When do the special address 004H get automatically loaded into the program counter?
a. After the execution of RESET action in program counter
b. After the execution of ‘goto Mainline ‘ instruction in the program
memory c. At the occurrence of interrupt into the program counter
d. At the clearance of program counter with no value
ANSWER: (c) At the occurrence of interrupt into the program counter

How many bits are utilized by the instruction of direct addressing mode in order to address the
register files in PIC?
a. 2
b. 5
c. 7
d. 8
ANSWER:(c) 7

Which registers are adopted by CPU and peripheral modules so as to control and handle the operation
of device inhibited in RFS?
a. General Purpose Register
b. Special Purpose Register
c. Special Function Registers
d. All of the above
ANSWER: (c) Special Function Registers

Which among the below specified registors are addressable only from bank1 of RFS?
a. PORTA (05H)
b. PORTB (06H)
c. FSR (04H)
d. ADCON0 (07H)
ANSWER: (a) PORTA (05H)

Which register acts as an input-output control as well as data direction register for PORTA in bank 2
of RFS?
a. INDF (80H)
b. TRISB (85H)
c. TRISA (85H)
d. PCLATH (8A)
ANSWER: (c) TRISA (85H)

Which bank of RFS has a provision of addressing the status register?


a. Only Bank 1
b. Only Bank 2
c. Either Bank 1 or Bank 2
d. Neither Bank 1 nor Bank 2
ANSWER: (c) Either Bank 1 or Bank 2

Which bit of OPTION register has a potential to decide the falling or rising edge sensitivity for the
external interrupt INT?
a. RBPU
b. INTEDG
c. PSA
d. RTS
ANSWER: (b) INTEDG
Where are the prescalar assignments applied with a usage of PSA bit?
a. Only RTCC
b. Only Watchdog timer
c. Either RTCC or Watchdog timer
d. Neither RTCC nor Watchdog timer
ANSWER: (c) Either RTCC or Watchdog timer

Where is the exact specified location of an interrupt flag associated with analog-to-digital converter?
a. INTCON
b. ADCON0
c. ADRES
d. PCLATH
ANSWER: (b) ADCON0
Which bit permits to enable (if set) or disable (if cleared) all the interrupts in an INTCON register?
a. GIE
b. ADIE
c. RBIE
d. TOIE
ANSWER: (a) GIE

When does it become possible for a bit to get accessed from bank ‘0’ in the direct addressing mode of
PICs?
a. Only when RPO bit is set ‘zero’
b. Only when RPO bit is set ‘1’
c. Only when RPO bit is utilized along with 7 lower bits of instruction code
d. Cannot Predict
ANSWER: (a) Only when RPO bit is set ‘zero’

The number of instruction set that the PIC microcontroller has is ________
a.35
b. 34
c. 31
d. 45
ANSWER: (a) 35

The PIC microcontroller family uses which architecture?


a. Harward
b. Von-Neumann
c. Array
d. Pipelining
ANSWER:(a) Harward
In PIC microcontroller, group of locations of memory are termed as _________, which can be
accessed through various instruction.
a. Register find
b. Register file
c. Register Locate
d .Register Identify
ANSWER :(b) Register file

In the PIC microcontroller, the register bank which has 32 bytes of special purpose registers is
______ a. Bank 0 &1
b. Bank 1 & 2
c. Bank 0 & 2
d. Bank 0, 1 & 2
ANSWER: (a) Bank 0&1
In PIC microcontroller, The W register serves the purpose similar to ________ of 8085
microprocessors.
a.Program counter
b. Instruction register
c. Accumulator
d. ISR
ANSWER:(a) Accumulator

In PIC microcontroller, the watchdog timer can be cleared using the instruction _________
a. clcwd
b. clrwdt
c. clrwd
d .wdtclr
ANSWER :(a) clrwdt

What is the length of PCLATH?


a.13
b. 8
c. 5
d. 4
ANSWER: (c) 5
The RP0 bit in PIC microcontroller is in ________ register.
a. Flag
b. Status
c. FSR
d. INDF
ANSWER :(a) status

In PIC microcontroller, if there is any carry from lower nibble to higher nibble ________ bit of
STATUS register becomes set.
a.AC
b. CY
c. DC
d. OV
ANSWER:(c) DC

Identify the instruction of PIC which increment f, putting result in F or W is


________ a.inrf f, F(W)
b. incf f, F(W)
c. inf f,F(W)
d. inxf f,F(W)
ANSWER :(b) incf, F(W)

The instruction addlw of PIC microcontroller affects the ______ status


bits. a.C, DC, Z
b. C, Z
c. C, AC, Z
d. C, DC
ANSWER: (a) C ,DC, Z

The instruction of PIC16Cxx that tests the ‘b’ bit of ‘f’ register, where b = 0 to 7 and skip when it
clear is ________
a.btfss
b. btfsc
c. btccc
d. btsss
ANSWER: (b) btfsc
Identify the correct instruction of PIC which AND literal value into W from the following
a.andlw
b. andwf
c. andff
d. andwl
ANSWER : (a) andlw

In PIC microcontroller, the ________ accesses the location pointed by FSR.


a.PCLATH
b. INDF
c.PCL
d. W
ANSWER: (b) INDF
When does it become feasible for portB pins (RB4 to RB7) to support its unique feature of ‘interrupt
on change’?
a. By configuring all the pins (RB4-RB7) as inputs
b. By configuring all the pins (RB4-RB7) as outputs
c. By configuring any one of the pins as inputs
d. By configuring any one of the pins as outputs
ANSWER: (a) By configuring all the pins (RB4-RB7) as inputs

Which digital operations are performed over the detected mismatch outputs with an intention to
generate a single output RB port change output?
a. OR
b. AND
c. EX-OR
d. NAND
ANSWER: (a) OR

What is the purpose of acquiring two different bits from INTCON register for performing any
interrupt operation in PIC 16C61 / 71?
a. One for enabling & one for disabling the interrupt
b. One for enabling the interrupt & one for its occurrence detection
c. One for setting or clearing the RBIE bit
d. None of the above
ANSWER: (b) One for enabling the interrupt & one for its occurrence detection

Which among the below specified combination of interrupts belong to the category of the PIC 16C61
/ 71?
a. External, Timer/Counter & serial Port Interrupts
b. Internal, External & Timer/Counter Interrupts
c. External, Timer 0 & Port B Interrupts
d. Internal, External, Timer 0 & PortA Interrupts
ANSWER: (c) External, Timer 0 & Port B Interrupts
Which condition results in setting the GIE bit of INTCON automatically?
a. Execution of retfie instruction at the beginning of ISR
b. Execution of retfie instruction at the end of ISR
c. Execution of retfie instruction along with interrupt enable bit
d. Execution of retfie instruction along with interrupt disable bit
ANSWER: (b) Execution of retfie instruction at the end of ISR

What kind of external edge-sensitive interrupt is generated due to transition effect at pin RBO/INT?
a. INT
b. RBO
c. INTF
d. All of the above
ANSWER:(a) INT

Which bit-register pair plays a significant role in configuring the rising or falling edge triggering
levels in external interrupts of PIC 16C61/71?
a. INTF bit – INTCON register
b. INTEDG bit – OPTION register
c. INT bit -INTCON register
d. INTE bit – OPTION register
ANSWER: (b) INTEDG bit – OPTION register

Consider the following statements. Which of them is /are incorrect?


a. By enabling INTE bit of an external interrupt can wake up the processor before entering into sleep
mode.
b. INTF bit is set in INTCON only when a valid interrupt signal arrives at INT pin. c.
During the occurrence of interrupt, GIE bit is set in order to prevent any further interrupts.
d. goto instruction written in program memory cannot direct the program control to ISR.

a. A & B
b. C & D
c. Only A
d. Only C
ANSWER: (b) C & D

What is the purpose of setting TOIE bit in INTCON along with GIE bit?
a. For setting the TOIF flag in INTCON due to generation of Timer 0 overflow interrupt
b. For setting the TOIE flag in INTCON due to generation of Timer 0 overflow interrupt
c. For setting the RBIF flag in INTCON due to generation of PORTB change interrupt
d. None of the above
ANSWER: (a) For setting the TOIF flag in INTCON due to generation of Timer 0 overflow interrupt

Where do the conversion interrupt flag (ADIF) end after an accomplishment of analog-to-digital
(ADC) conversion process?
a. INTCON
b. ADCON0
c. OPTION
d. None of the above
ANSWER: (b) ADCON0
How much time is required for conversion per channel if PIC 16C71 possesses four analog channels,
each comprising of 8-bits?
a. 10 μs
b. 15 μs
c. 20 μs
d. 30 μs
ANSWER: (c) 20 μs

Which mode of stepper motor operation is suitable for better power


consumption? a. Full Drive
b. Wave Drive
c. Half Drive
d. Quarter Drive
ANSWER : (b) Wave Drive

When two stator electromagnets are energized at a time, the mode is called
_________ a.Full Drive
b. Wave Drive
c. Half Drive
d.Quarter Drive
ANSWER : (a) Full Drive

In wave drive operation of stepper motor, ________ is less when compared to full step
drive. a.current
b. voltage
c. torque
d. speed
ANSWER: (c) torque
What are the special features available in PIC microcontroller for speed control of DC
motor? a.PWM generation and analog channel
b. PWM generation and ADC
c. ADC and analog channel
d. PWM generation and DAC
ANSWER : (a) PWM generation and analog signal
Which command enables the PIC to enter into the power down mode during the operation of
watchdog timer (WDT)?
a. SLEEP
b. RESET
c. STATUS
d. CLR
ANSWER: (a) SLEEP
Which channel would be selected if the values of channel bits CHS0 & CHS1 are ‘1’ & ‘0’
respectively in ADC Status Register?
a. AIN0
b. AIN1
c. AIN2
d. AIN3
ANSWER: (c) AIN2

Which bit is mandatory to get initiated or set for executing the process of analog to digital conversion
in ADCON0?
a. ADIF
b. ADON
c. Go/!Done
d. ADSC1
ANSWER: (c) Go/!Done

What would be the value of ADC clock source, if both the ADC clock bits are selected to be ‘1’?
a. FOSC/2
b. FOSC/8
c. FOSC/32
d. FRC
ANSWER: (d) FRC

The functionalities associated with the pins RA0- RA3 in ADCON1 are manipulated by __________
a. PCFG1 & PCG0
b. VREF
c. ADON
d. All of the above
ANSWER: (a) PCFG1 & PCG0

Which among the below mentioned aspect issues are supported by capture/compare/PWM modules
corresponding to time in PIC 16F877?
a. Control
b. Measurement
c. Generation of pulse signal
d. All of the above
ANSWER: (d) All of the above

Which register is suitable for the corresponding count, if the measurement of pulse width is less than
65,535 μs along with the frequency of 4 MHz?
a. 4-bit register
b. 8-bit register
c. 16-bit register
d. 32-bit register
ANSWER: (c) 16-bit register

In PIC microcontroller, the program counter comprises of _____ bit PCL and ______ bit PCLATH.
a.4, 8
b. 8, 5
c. 5, 8
d.8, 4
ANSWER: (b) 8,5

You might also like