Ec8691 Microprocessors and Microcontrollers MCQ
Ec8691 Microprocessors and Microcontrollers MCQ
b) 1 byte
EC8691 c) 3 bytes
d) 4 bytes
MICROPROCESSORS
M
AND Answer: b
Explanation: This format is only one byte
MICROCONTROLLERS long.
O
4. The instruction format ‘register to register’
IT - 5th SEMESTER has a length of
C
a) 2 bytes
b) 1 byte
T.
c) 3 bytes
d) 4 bytes
O
Answer: a
Explanation: This format is 2 bytes long.
MICROPROCESSOR
SP
5. The R/M field in a machine instruction
TOPIC 1.1 INTRODUCTION TO format specifies
a) another register
8086 MICROPROCESSOR b) another memory location
G
ARCHITECTURE c) other operands
d) all of the mentioned
LO
other operand.
Answer: c
Explanation: Machine language instruction 6. In a machine instruction format, S-bit is the
17
format has one or more fields. The first one is a) status bit
the operation code field. b) sign bit
c) sign extension bit
2. A machine language instruction format d) none of the mentioned
-R
consists of
a) Operand field Answer: c
b) Operation code field Explanation: The S-bit known as sign
c) Operation code field & operand field extension bit is used along with W-bit to
SE
M
of the control to the address located in the
a) 8 bits instruction.
b) 4 bits
O
c) 16 bits
d) 2 bits
TOPIC 1.2 ADDRESSING
MODES
C
Answer: c
T.
Explanation: If W-bit is ‘1’ then the operand 1. The instruction, Add #45,R1 does _______
is of 16-bits, and if it is ‘0’ then the operand a) Adds the value of 45 to the address of R1
is of 8-bits. and stores 45 in that address
b) Adds 45 to the value of R1 and stores it in
O
9. The instructions which after execution R1
transfer control to the next instruction in the c) Finds the memory location 45 and adds
SP
sequence are called that content to that of R1
a) Sequential control flow instructions d) None of the mentioned
b) control transfer instructions
c) Sequential control flow & control transfer Answer: b
G
instructions Explanation: The instruction is using
d) none of the mentioned immediate addressing mode hence the value
is stored in the location 45 is added.
LO
Answer: a
Explanation: The sequential control flow 2. In the case of, Zero-address instruction
instructions follow sequence order in their method the operands are stored in _____
execution. a) Registers
.B
b) Accumulators
10. The instructions that transfer the control c) Push down stack
to some predefined address or the address d) Cache
specified in the instruction are called as
17
M
a) Indirect addressing mode
b) Index addressing mode Answer: d
c) Relative addressing mode Explanation: In the case of, auto increment
O
d) Offset addressing mode the increment is done afterward and in auto
decrement the decrement is done first.
C
Answer: a
Explanation: In this addressing mode, the 8. The addressing mode, where you directly
T.
value of the register serves as another specify the operand value is _______
memory location and hence we use pointers a) Immediate
to get the data. b) Direct
c) Definite
O
5. In the following indexed addressing mode d) Relative
instruction, MOV 5(R1), LOC the effective
SP
address is ______ Answer: a
a) EA = 5+R1 Explanation: None.
b) EA = R1
c) EA = [R1] 9. The effective address of the following
instruction is MUL 5(R1,R2).
G
d) EA = 5+[R1]
a) 5+R1+R2
Answer: d b) 5+(R1*R2)
LO
decrements, which of the following is/are Explanation: The relative addressing mode is
true? used for this since it directly updates the PC.
1) In both, the address is used to retrieve the
operand and then the address gets altered
TOPIC 1.3 INSTRUCTION SET
C
1. The assembler directives which are the allocating memory locations in the available
hints using some predefined alphabetical memory.
strings are given to
a) processor 4. The directive that marks the end of an
b) memory assembly language program is
M
c) assembler a) ENDS
d) processor & assembler b) END
c) ENDS & END
O
Answer: c d) None of the mentioned
Explanation: These directives help the
C
assembler to correctly understand the Answer: b
assembly language programs to prepare the Explanation: The directive END is used to
T.
codes. denote the completion of the program.
2. The directive used to inform the assembler, 5. The directive that marks the end of a
the names of the logical segments to be logical segment is
O
assumed for different segments used in the a) ENDS
program is b) END
SP
a) ASSUME c) ENDS & END
b) SEGMENT d) None of the mentioned
c) SHORT
d) DB Answer: a
Explanation: The directive ENDS is used to
G
Answer: a end a segment where as the directive END is
Explanation: In ALP, each segment is given used to end the program.
LO
ssembler to reserve byte or bytes location counter contents are not even.
d) DQ 4) used to direct the a
ssembler to reserve words 7. The directive that directs the assembler to
start the memory allotment for a particular
SE
c) ORG
Answer: d d) GROUP
Explanation: These directives are used for
M
If the directive is not present, then the c) Assembler
location counter is initialized to 0000H. d) Converter
O
8. The directive that marks the starting of the Answer: c
logical segment is Explanation: An assembler is a software
C
a) SEG used to convert the programs into machine
b) SEGMENT instructions.
T.
c) SEG & SEGMENT
d) PROC 2. The instructions like MOV or ADD are
called as ______
Answer: b a) OP-Code
O
Explanation: The directive SEGMENT b) Operators
indicates the beginning of the segment. c) Commands
SP
d) None of the mentioned
9. The recurrence of the numerical values or
constants in a program code is reduced by Answer: a
a) ASSUME Explanation: This OP – codes tell the system
G
b) LOCAL what operation to perform on the operands.
c) LABEL
d) EQU 3. The alternate way of writing the
LO
by any module in the program is possible the addition is in immediate addressing mode.
when they are declared as
a) PUBLIC 4. Instructions which won’t appear in the
b) LOCAL object program are called as _____
-R
M
b) Replaces every occurrence of Sum with 9. _____ directive specifies the end of
200 execution of a program.
a) End
O
c) Re-assigns the address of Sum by adding
200 to its original address b) Return
d) Assigns 200 bytes of memory starting the c) Stop
C
location of Sum d) Terminate
T.
Answer: b Answer: b
Explanation: This basically is used to replace Explanation: This instruction directive is
the variable with a constant value. used to terminate the program execution.
O
6. The purpose of the ORIGIN directive is 10. The last statement of the source program
__________ should be _______
SP
a) To indicate the starting position in memory, a) Stop
where the program block is to be stored b) Return
b) To indicate the starting of the computation c) OP
code d) End
G
c) To indicate the purpose of the code
d) To list the locations of all the registers used Answer: d
Explanation: This enables the processor to
LO
code.
a) Allocate 12. The assembler stores all the names and
b) Assign their corresponding values in ______
c) Set a) Special purpose Register
C
M
13. The assembler stores the object code in Answer: d
______ Explanation: All of the mentioned principles
a) Main memory are known as constructive design principles.
O
b) Cache
c) RAM 2. What is the Aesthetic principle among the
C
d) Magnetic disk following?
a) High quality programs can be constructed
T.
Answer: d from self contained, understandable parts or
Explanation: After compiling the object modules
code, the assembler stores it in the magnetic b) A design will be more or less easy to be
disk and waits for further execution. build
O
c) Beauty is one of the important factor to be
14. The utility program used to bring the acknowledged as design principle
SP
object code into memory for execution is d) None of the mentioned
______
a) Loader Answer: c
b) Fetcher Explanation: Aesthetic principle states
G
c) Extractor Beauty as one of the most important factor to
d) Linker be acknowledged.
LO
b) Debugger
c) Op-Assembler Answer: c
d) Two-pass assembler Explanation: Modular programs are easier to
explain and understand, easier to document,
-R
Modularity principle?
a) Small modules
TOPIC 1.5 MODULAR b) Coupling
PROGRAMMING c) Cohesion
C
M
a) Coupling is the degree of connection d) All of the mentioned
between pair of module
b) Coupling is the degree to which a module’s Answer: d
O
part are related to one another Explanation: All of the mentioned statements
c) All of the mentioned violated principle of least privilege.
C
d) None of the mentioned
9. Which of these is correct with context to
T.
Answer: a coupling?
Explanation: Coupling is the degree of a) Failure to hide information leads to loose
connection between pair of module. coupling and cannot be avoided
b) Modules that communicate using special
O
6. Which of the following is true? data types and structures are less tightly
a) Module coupling should be maximized coupled than modules with simple values
SP
b) Module cohesion should be minimized c) When modules communicate only through
c) Modules should not have access to public module interface, their coupling
unneeded resources strength is proportional to the number of
d) Design with small modules are not better messages and number of data passed in
G
between
Answer: c d) All of the mentioned
Explanation: Module coupling should be
LO
privilege).
10. Which of these is correct with the context
7. Which of the following information should of cohesion?
be kept hidden? a) Cohesion is least in modules that have a
17
Answer: d Answer: c
Explanation: Names, parameters, return type Explanation: Cohesion is highest in modules
are public information need not be hidden that have a single clear, logically independent
C
whereas internal data representation and responsibility or role, Cohesion can be easily
volatile design decisions should be kept achieved by forming modules that implement
hidden. data types are the correct statements.
M
1. If a number of instructions are repeating a) in data segment
through the main program, then to reduce the b) to represent directives
c) to represent statements
O
length of the program, __________ is used.
a) procedure d) all of the mentioned
b) subroutine
C
Answer: d
c) macro
Explanation: A macro may be used in data
d) none of the mentioned
T.
segment and can also be used to represent
Answer: c statements and directives.
Explanation: For a certain number of
6. The end of a macro can be represented by
O
instructions that are repeated in the main
the directive.
program, when macro is defined then the
a) END
code of a program is reduced by placing the
SP
b) ENDS
name of the macro at which the set of
c) ENDM
instructions are needed to be repeated.
d) ENDD
2. The process of assigning a label or
Answer: c
G
macroname to the string is called
Explanation: The ENDM directive marks the
a) initialising macro
end of the instructions or statements sequence
LO
Answer: b Answer: c
Explanation: The time required for execution Explanation: An interrupt function is to
of a macro is less than that of procedure as it break the sequence of operation.
does not contain CALL and RET instructions
as the procedures do. 2. An interrupt breaks the execution of
M
instructions and diverts its execution to
9. Which of the following statements is a) Interrupt service routine
incorrect? b) Counter word register
O
a) complete code of instruction string is c) Execution unit
inserted at each place, wherever the d) control unit
C
macroname appears
b) macro requires less time of execution than Answer: a
T.
that of procedure Explanation: An interrupt transfers the
c) macro uses stack memory control to interrupt service routine (ISR).
d) macroname can be anything except After executing ISR, the control is transferred
registers and mnemonics back again to the main program.
O
Answer: c 3. While executing the main program, if two
SP
Explanation: Macro does not require stack or more interrupts occur, then the sequence of
memory and hence has less time for appearance of interrupts is called
execution. a) multi-interrupt
b) nested interrupt
G
10. The beginning of the macro can be c) interrupt within interrupt
represented as d) nested interrupt and interrupt within
a) START interrupt
LO
b) BEGIN
c) MACRO Answer: d
d) None of the mentioned Explanation: If an interrupt occurs while
executing a program, and the processor is
.B
Answer: c
1. While CPU is executing a program, an
Explanation: The processor if handles more
interrupt exists then it
devices as interrupts then it has multiple
a) follows the next instruction in the program
interrupt processing ability.
C
M
Explanation: NMI is the acronym for d) sign flag
nonmaskable interrupt.
Answer: c
O
7. If any interrupt request given to an input Explanation: If a microprocessor wants to
pin cannot be disabled by any means then the serve any interrupt then interrupt flag, IF=1.
C
input pin is called If interrupt flag, IF=0, then the processor
a) maskable interrupt ignores the service.
T.
b) nonmaskable interrupt
c) maskable interrupt and nonmaskable
interrupt TOPIC 1.8 BYTE AND STRING
d) none of the mentioned MANIPULATION.
O
Answer: b 1. Which of these methods of Byte wrapper
SP
Explanation: A nonmaskable interrupt input can be used to obtain Byte object from a
pin is one which means that any interrupt string?
request at NMI (nonmaskable interrupt) input a) toString()
cannot be masked or disabled by any means. b) getString()
G
c) decode()
8. The INTR interrupt may be d) encode()
a) maskable
LO
b) nonmaskable Answer: c
c) maskable and nonmaskable Explanation: decode() methods returns a
d) none of the mentioned Byte object that contains the value specified
by string.
Answer: a
.B
Explanation: the INTR (interrupt request) is 2. Which of the following methods Byte
maskable or can be disabled. wrapper return the value as a double?
a) doubleValue()
17
time Answer: a
c) handle one or more interrupt requests with Explanation: doubleValue() returns the value
a delay of invoking object as double.
d) handle no interrupt request
SE
M
1.7976931348623157E308
4. Which of these methods is not defined in
both Byte and Short wrappers? 6. What will be the output of the following
a) intValue()
O
Java program?
b) isInfinite()
c) toString() 1. class Output
C
d) hashCode()
2. {
T.
Answer: b
Explanation: isInfinite() methods is defined 3. public static void main(Str
ing args[])
in Integer and Long Wrappers, returns true if
specified value is an infinite value otherwise 4.
O
{
it returns false.
5. Double i = new Double(2
SP
5. What will be the output of the following 57.5);
Java code?
6. Double x = i.MIN_VALUE;
1. class Output
7. System.out.print(x);
G
2. {
8. }
3.
LO
4. { a) 0
b) 4.9E-324
5. Double i = new Double(2 c) 1.7976931348623157E308
.B
9. } Output:
a) 0 $ javac Output.java
b) 1.7976931348623157E308 $ java Output
SE
4.9E-324
c) 1.7976931348623157E30
d) None of the mentioned
7. What will be the output of the following
Java program?
Answer: b
C
3. public static void main(Str 1. The mnemonic that is placed before the
ing args[]) arithmetic operation is performed is
a) AAA
4. {
b) AAS
c) AAM
M
5. Double i = new Double(2
57.578123456789); d) AAD
O
); Explanation: The AAD instruction converts
two unpacked BCD digits in AH and AL to
7.
C
System.out.print(x);
the equivalent binary number in AL.
8. }
T.
2. The Carry flag is undefined after
9. } performing the operation
a) AAA
a) 0 b) ADC
O
b) 257.0 c) AAM
c) 257.57812 d) AAD
SP
d) 257.578123456789
Answer: d
Answer: c Explanation: Since the operation, AAD is
Explanation: floatValue() converts the value performed before division operation is
G
of wrapper i into float, since float can performed, the carry flag, auxiliary flag and
measure till 5 places after decimal hence overflow flag are undefined.
257.57812 is stored in floating point variable
LO
257.57812 b) AND
c) TEST
d) XOR
Java Mock Tests & Certification Test | 1000
17
Answer: a Answer: c
Explanation: In RCL(Rotate right through Explanation: At each CALL instruction, the
carry), for each operation, the carry flag is IP and CS of the next instruction are pushed
pushed into LSB and the MSB of the operand onto the stack, before the control is
is pushed into carry flag. transferred to the procedure. At the end of the
M
procedure, the RET instruction must be
5. The instruction that is used as prefix to an executed to retrieve the stored contents of IP
instruction to execute it repeatedly until the
O
& CS registers from a stack.
CX register becomes zero is
a) SCAS 8. The instruction that unconditionally
C
b) REP transfers the control of execution to the
c) CMPS specified address is
T.
d) STOS a) CALL
b) JMP
Answer: b c) RET
Explanation: The instruction to which the d) IRET
O
REP is prefix, is executed repeatedly until CX
register becomes zero. When CX becomes Answer: b
SP
zero, the execution proceeds to the next Explanation: In this the control transfers to
instruction in sequence. the address specified in the instruction and
flags are not affected by this instruction.
6. Match the following
G
9. Which instruction cannot force the 8086
A) MOvSB/SW 1) loads AL/AX register processor out of ‘halt’ state?
by content of a string
a) Interrupt request
LO
Answer: d
tes or words
Explanation: Only an interrupt request or
a) A-3,B-4,C-2,D-1 Reset will force the 8086 processor to come
out of the ‘halt’ state.
17
b) A-2,B-1,C-4,D-3
c) A-2,B-3,C-1,D-4
10. NOP instruction introduces
d) A-2,B-3,C-4,D-1
a) Address
Answer: d b) Delay
-R
Answer: b
SE
a) CALL, JMP
b) JMP, IRET
11. Which of the following is not a machine
c) CALL, RET
controlled instruction?
d) JMP, RET
M
Answer: b a) write operation on input data
Explanation: Since CLC is a flag b) write operation on output data
manipulation instruction where CLC stands c) read operation on input data
O
for Clear Carry Flag. d) read operation on output data
C
Answer: b
TOPIC 2.2 SYSTEM BUS Explanation: IOWR (active low) operation
TIMING - SYSTEM DESIGN
T.
means writing data to an output device and
USING 8086 - I/O not an input device.
PROGRAMMING
5. The latch or IC 74LS373 acts as
O
a) good input port
1. The device that enables the microprocessor b) bad input port
to read data from the external devices is
SP
c) good output port
a) printer d) bad output port
b) joystick
c) display Answer: c
d) reader Explanation: If the output port is to source
G
large currents, the port lines must be buffered.
Answer: b So, the latch is used as it acts as a good output
LO
d) write, read
Answer: d
Answer: c Explanation: A tristate buffer is used as an
Explanation: The input activity is similar to
M
c) one that has 8 buffers structure we can minimize the amount of
d) all of the mentioned hardware (wire) required and thereby
reducing the cost.
O
Answer: d
Explanation: The chip 74LS245 is a 2. ______ are used to overcome the
C
bidirectional buffer that contains 8 buffers difference in data transfer speeds of various
and may be used as an 8-bit input port. But devices.
T.
while using as an input device, only one a) Speed enhancing circuitory
direction is useful. b) Bridge circuits
c) Multiple Buses
9. In 74LS245, if DIR is 1, then the direction d) Buffer registers
O
is from
a) inputs to outputs Answer: d
SP
b) outputs to inputs Explanation: By using Buffer registers, the
c) source to sink processor sends the data to the I/O device at
d) sink to source the processor speed and the data gets stored in
the buffer. After that the data gets sent to or
Answer: a
G
from the buffer to the devices at the device
Explanation: If DIR is 1, then the direction is speed.
from A(inputs) to B(outputs).
LO
c) Controllers
c) only input devices d) Multiple bus
d) only output devices
Answer: a
17
M
d) Rambus
10. The ISA standard Buses are used to
Answer: b connect ___________
O
Explanation: SCSI BUS is usually used to a) RAM and processor
connect video devices to the processor. b) GPU and processor
C
c) Harddisk and Processor
6. ANSI stands for __________ d) CD/DVD drives and Processor
T.
a) American National Standards Institute
b) American National Standard Interface Answer: c
c) American Network Standard Interfacing Explanation: None.
d) American Network Security Interrupt
O
Answer: a
TOPIC 2.4 MULTIPROCESSOR
CONFIGURATIONS -
SP
Explanation: None.
COPROCESSOR, CLOSELY
7. _____ register Connected to the Processor COUPLED AND LOOSELY
bus is a single-way transfer capable.
a) PC
COUPLED CONFIGURATIONS
G
b) IR
c) Temp 1. The processors used in the multi-
LO
d) Z microprocessor are
a) coprocessors
Answer: d b) independent processors
Explanation: The Z register is a special c) coprocessors or independent processors
register which can interact with the processor d) none of the mentioned
.B
BUS only.
Answer: c
8. In multiple Bus organisation, the registers Explanation: The processors used in the
17
are collectively placed and referred as ______ multi-microprocessor are either coprocessors
a) Set registers or independent processors.
b) Register file
c) Register Block 2. The processor that executes the instructions
-R
3. The processor that asks for bus access or its own bus control logic. The bus arbitration
may itself fetch the instructions and execute is handled by an external circuit, common to
them is all the processors.
a) microprocessor
b) coprocessor 7. The loosely coupled system has an
M
c) independent processor advantage of
d) coprocessor and independent processor a) more number of CPUs can be added
b) system structure is modular
O
Answer: c c) more fault-tolerant and suitable for parallel
Explanation: The independent processor may applications
C
ask for bus access, may fetch the instructions d) all of the mentioned
itself, and execute them independently.
T.
Answer: d
4. In tightly coupled systems, the Explanation: The loosely coupled system is
microprocessors share advantageous than the tightly coupled system
a) common clock as it has advantages of more number of CPUs
O
b) bus control logic can be added to improve the system
c) common clock and bus control logic performance. A fault in a single module does
SP
d) none of the mentioned not lead to a complete system breakdown.
c) more expensive
6. The bus arbitration is handled by an d) all of the mentioned
external circuit in
a) loosely coupled system Answer: d
SE
M
c) status bit in memory or interrupts the host information regarding the destination of
d) clock pulse control transfer, required stack manipulations,
privilege level and its type.
O
Answer: c
Explanation: The microprocessor in a closely 4. The gate that is used to alter the privilege
C
coupled system either uses a status bit in levels is
memory or interrupts the host to inform it a) call gate
T.
about the completion of task allotted to it. b) task gate
c) interrupt gate
d) trap gate
TOPIC 2.5 INTRODUCTION TO
O
ADVANCED PROCESSORS. Answer: a
Explanation: Call gates are used to alter the
SP
1. Which of the following is a type of system privilege levels.
segment descriptor?
a) system descriptor 5. The gate that is used to specify a
b) gate descriptor corresponding service routine is
a) call gate and trap gate
G
c) system descriptor and gate descriptor
d) none of the mentioned b) task gate and interrupt gate
c) interrupt gate and trap gate
LO
3. The gate descriptor contains the 7. The gate that uses word count field is
information of a) trap gate
C
Answer: d a) LDT
Explanation: The word count field is only b) LGDT and LLDT
used by a call gate descriptor, to indicate the c) GDT
number of bytes to be transferred from the d) None of the mentioned
stack of the calling routine to the stack of the
M
called routine. Answer: b
Explanation: The LGDT and LLDT
8. The memory that maintains the most instructions are privileged, and may be
O
frequently required data for execution, in a executed only at privilege level 0.
high speed memory is called
C
a) virtual memory 12. The instruction that loads a selector which
b) physical memory refers to a local descriptor table, containing
T.
c) cache memory the base address and limit for LDT is
d) ROM (read only memory) a) LGT
b) GDT
Answer: c c) LGDT
O
Explanation: To minimize the time required d) LLDT
for fetching the frequently required descriptor
SP
information, from the main memory, cache Answer: d
memory is used in which the most frequently Explanation: The LLDT instruction loads a
required data for execution is stored. selector, which refers to a local descriptor
table, containing the base address, and limit
G
9. The selector field consists of for LDT.
a) requested privilege level (RPL)
b) table indicator 13. The descriptor that is used to store task
LO
15. The number of bytes required for an data from the microprocessor to the external
interrupt in an IDT is devices.
a) 2
b) 4 3. The input and output operations are
c) 6 respectively similar to the operations,
M
d) 8 a) read, read
b) write, write
Answer: c c) read, write
O
Explanation: Six bytes are required for each d) write, read
interrupt in an interrupt descriptor table.
C
Answer: c
Explanation: The input activity is similar to
T.
read operation and the output activity is
similar to write operation.
UNIT III I/O
4. The operation, IOWR (active low)
INTERFACING
O
performs
a) write operation on input data
SP
TOPIC 3.1 MEMORY b) write operation on output data
c) read operation on input data
INTERFACING AND I/O d) read operation on output data
INTERFACING - PARALLEL
COMMUNICATION INTERFACE Answer: b
G
- SERIAL COMMUNICATION Explanation: IOWR (active low) operation
means writing data to an output device and
INTERFACE
LO
1. The device that enables the microprocessor 5. The latch or IC 74LS373 acts as
to read data from the external devices is a) good input port
b) bad input port
.B
a) printer
b) joystick c) good output port
c) display d) bad output port
d) reader
17
Answer: c
Answer: b Explanation: If the output port is to source
Explanation: Since joystick is an input large currents, the port lines must be buffered.
device, it reads data from the external So, the latch is used as it acts as a good output
-R
devices. port.
2. The example of output device is 6. While performing read operation, one must
a) CRT display take care that much current should not be
SE
Answer: d
Explanation: The output device transfers Answer: c
Explanation: More current should not be
sourced or sinked from data lines while the devices are viewed as memory locations
reading to avoid loading. and are addressed likewise.
M
a) latch INTERFACE - TIMER
b) flipflop
c) buffer
O
1. How many control lines are present in
d) tristate buffer analog to digital converter in addition to
reference voltage?
C
Answer: d a) Three
Explanation: A tristate buffer is used as an b) Two
T.
input device to overcome loading. c) One
d) None of the mentioned
8. The chip 74LS245 is
a) bidirectional buffer Answer: b
O
b) 8-bit input port Explanation: ADC usually has two
c) one that has 8 buffers additional control lines
SP
d) all of the mentioned 1. Start input-tell ADC when to start
conversion.
Answer: d 2. EOC- end of conversion.
Explanation: The chip 74LS245 is a
bidirectional buffer that contains 8 buffers
G
2. Find out the integrating type analog to
and may be used as an 8-bit input port. But digital converter?
while using as an input device, only one a) Flash type converter
LO
Answer: d
b) outputs to inputs Explanation: Other than dual slope ADC the
c) source to sink rest belongs to direct type ADCs.
d) sink to source
17
4. Which A/D converter is considered to be required almost doubles for each added bit.
simplest, fastest and most expensive? For example – 2 -bit ADC requires three
a) Servo converter comparators, 3 -bit ADC needs seven
b) Counter type ADC comparators and a 4 -bit ADC requires fifteen
c) Flash type ADC comparators.
M
d) All of the mentioned
8. Drawback of counter type A/D converter
Answer: c a) Counter clears automatically
O
Explanation: The simplest possible A/D b) More complex
converter is flash type converter and is c) High conversion time
C
expensive for high degree of accuracy. d) Low speed
T.
5. The flash type A/D converters are called as Answer: d
a) Parallel non-inverting A/D converter Explanation: In counter type ADC counter
b) Parallel counter A/D converter frequency is kept low enough to give
c) Parallel inverting A/D converter sufficient time for DAC to settle and for the
O
d) Parallel comparator A/D converter comparator for respond. So, low speed is the
most serious drawback.
SP
Answer: d
Explanation: The flash type A/D converter 9. Calculate the conversion time of a 12-bit
are also called as parallel comparator A/D counter type ADC with 1MHz clock frequent
converter because the purpose of the circuit is to convert a full scale input?
G
to compare the analog input voltage with each a) 4.095 µs
node voltage. b) 4.095ms
c) 4.095s
LO
M
d) All of the mentioned Answer: c
Explanation: In this mode, each key code of
Answer: b the pressed key is entered in the order of the
O
Explanation: As long as the analog input entry, and in the meantime, read by the CPU,
changes slowly, the tracking A/D converter till the RAM becomes empty.
C
will be within one LSB of the corrected
value. When the input changes rapidly, the 3. The registers that hold the address of the
T.
tracking A/D converter cannot keep up with word currently being written by the CPU
change and error occurs. from the display RAM are
a) control and timing register
12. How many clock pulses do a successive b) control and timing register and timing
O
approximation converter requires for control
obtaining a digital output. c) display RAM
SP
a) Twelve d) display address registers
b) Six
c) Eight Answer: d
d) None of the mentioned Explanation: The display address registers
G
holds the address of the word currently being
Answer: d written or read by the CPU to or from the
Explanation: The successive approximation display RAM.
LO
b) Control and timing registers operation. During the next two scans, other
c) Return buffers keys are checked for closure and if no other
d) Display address registers key is pressed then the first pressed key is
SE
identified.
Answer: b
Explanation: The control and timing register 5. The mode that is programmed using “end
to store the keyboard and display modes and interrupt/error mode set command” is
other operations programmed by CPU. a) scanned keyboard special error mode
C
M
c) AI
6. When a key is pressed, the debounce d) WF
circuit waits for 2 keyboard scans and then
O
checks whether the key is still depressed in Answer: c
a) scanned keyboard special error mode Explanation: AI refers to auto increment
C
b) scanned keyboard with N-key rollover flag.
c) scanned keyboard mode with 2 key lockout
T.
d) sensor matrix mode 10. If any change in sensor value is detected
at the end of a sensor matrix scan, then the
Answer: b IRQ line
Explanation: In this mode, When a key is a) goes low
O
pressed, the debounce circuit waits for 2 b) goes high
keyboard scans and then checks whether the c) remains unchanged
SP
key is still depressed. If it is still depressed, d) none
the code is entered in FIFO RAM.
Answer: b
7. The data that is entered from the left side Explanation: In sensor matrix mode, the IRQ
G
of the display unit is of line goes high, if any change in sensor value
a) left entry mode is detected at the end of a sensor matrix scan
b) right entry mode or the sensor RAM has a previous entry to be
LO
the error in
a) keyboard mode Answer: c
b) strobed input mode Explanation: The processor 8085 has five
SE
c) keyboard and strobed input mode hardware interrupt pins. Out of these five,
d) scanned sensor matrix mode four pins were alloted fixed vector addresses
but the pin INTR was not alloted by vector
Answer: c address, rather an external device was
Explanation: Overrun error occurs when an supposed to hand over the type of the
C
2. The register that stores all the interrupt vectored interrupts. In cascade mode, 64
requests in it in order to serve them one by vectored interrupts can be provided.
one on a priority basis is
a) Interrupt Request Register 6. When the PS(active low)/EN(active low)
b) In-Service Register pin of 8259A used in buffered mode, then it
M
c) Priority resolver can be used as a
d) Interrupt Mask Register a) input to designate chip is master or slave
b) buffer enable
O
Answer: a c) buffer disable
Explanation: The interrupts at IRQ input d) none
C
lines are handled by Interrupt Request
Register internally. Answer: b
T.
Explanation: When the pin is used in
3. The register that stores the bits required to buffered mode, then it can be used as a buffer
mask the interrupt inputs is enable to control buffer transreceivers. If it is
a) In-service register not used in buffered mode, then the pin is
O
b) Priority resolver used as input to designate whether the chip is
c) Interrupt Mask register used as a master or a slave.
SP
d) None
7. Once the ICW1 is loaded, then the
Answer: c initialization procedure involves
Explanation: Also, Interrupt Mask Register a) edge sense circuit is reset
G
operates on IRR(Interrupt Request Register) b) IMR is cleared
at the direction of the Priority Resolver. c) slave mode address is set to 7
d) all of the mentioned
LO
performs all the operations that are involved v) special mask mode is cleared and the status
within the interrupts like accepting and read is set to IRR.
managing interrupt acknowledge signals,
interrupts. 8. When non-specific EOI command is issued
-R
M
d) EOI processor for DMA transfers and overlooks
the entire process.
Answer: a
O
Explanation: The automatic rotation is used 4. After the completion of the DMA transfer,
in the applications where all the interrupting the processor is notified by __________
C
devices are of equal priority. a) Acknowledge signal
b) Interrupt signal
T.
c) WMFC signal
TOPIC 3.5 DMA (DIRECT d) None of the mentioned
MEMORY
ACCESS)CONTROLLER Answer: b
O
Explanation: The controller raises an
interrupt signal to notify the processor that
1. The DMA differs from the interrupt mode
SP
the transfer was complete.
by __________
a) The involvement of the processor for the 5. The DMA controller has _______ registers.
operation a) 4
b) The method of accessing the I/O devices b) 2
G
c) The amount of data transfer possible c) 3
d) None of the mentioned d) 1
LO
Answer: d Answer: c
Explanation: DMA is an approach of Explanation: The Controller uses the
performing data transfers in bulk between registers to store the starting address, word
memory and the external device without the count and the status of the operation.
.B
d) Overlooker
Answer: a
Answer: b Explanation: None.
Explanation: The Controller performs the
SE
functions that would normally be carried out 7. The controller is connected to the ____
by the processor. a) Processor BUS
b) System BUS
3. In DMA transfers, the required signals and c) External BUS
C
M
simultaneously? possession of the BUS we use ______
a) True a) Optimizers
b) False b) BUS arbitrators
O
c) Multiple BUS structure
Answer: a d) None of the mentioned
C
Explanation: The DMA controller can
perform operations on two different disks if Answer: b
T.
the appropriate details are known. Explanation: The BUS arbitrator is used to
overcome the contention over the BUS
9. The technique whereby the DMA possession.
controller steals the access cycles of the
O
processor to operate is called __________ 13. The registers of the controller are ______
a) Fast conning a) 64 bits
SP
b) Memory Con b) 24 bits
c) Cycle stealing c) 32 bits
d) Memory stealing d) 16 bits
Answer: c Answer: c
G
Explanation: The controller takes over the Explanation: None.
processor’s access cycles and performs
LO
M
AND APPLICATIONS CASE Answer: b
STUDIES: TRAFFIC LIGHT Explanation: For writing commands on an
LCD, RS pin is reset.
O
CONTROL, LED DISPLAY , LCD
DISPLAY, KEYBOARD DISPLAY 5. Which command of an LCD is used to shift
INTERFACE AND ALARM
C
the entire display to the right?
CONTROLLER. a) 0x1C
T.
b) 0x18
1. How many rows and columns are present c) 0x05
in a 16*2 alphanumeric LCD? d) 0x07
O
a) rows=2, columns=32
Answer: a
b) rows=16, columns=2
Explanation: 0x1C is used to shift the entire
c) rows=16, columns=16
SP
display to the right.
d) rows=2, columns=16
6. Which command is used to select the 2
Answer: d
lines and 5*7 matrix of an LCD?
Explanation: 16*2 alphanumeric LCD has 2
a) 0x01
G
rows and 16 columns.
b) 0x06
2. How many data lines are there in a 16*2 c) 0x0e
LO
d) 0
7. Which of the following step/s is/are correct
Answer: b
for sending data to an LCD?
17
a) pin no 1
Answer: d
b) pin no 2
Explanation: To send data to an LCD, RS pin
c) pin no 3
should be set so that LCD will come to know
SE
d) pin no 4
that it will receive data which has to display
Answer: c on the screen. R/W pin should be reset as data
Explanation: Pin no 3 is used for controlling has to be displayed (i.e. write to the LCD).
the contrast of the LCD. High to low pulse must be applied to the E
C
M
high value is to be given to it?
d) none of the mentioned a) 0xFF
b) 0x00
O
Answer: c c) 0x01
Explanation: For reading operations, R/W d) A port is by default an output port
C
pin should be made high and added to it, a
low to high pulse is also generated at the E Answer: d
Explanation: In 8051, a port is initialized by
T.
pin.
default in its output mode no need to pass any
9. Which instruction is used to select the first value to it.
row first column of an LCD?
O
a) 0x08 2. Which out of the four ports of 8051 needs a
b) 0x0c pull-up resistor for using it is as an input or an
SP
c) 0x80 output port?
d) 0xc0 a) PORT 0
b) PORT 1
Answer: c c) PORT 2
d) PORT 3
G
Explanation: 0x80 is used to select the first
row first column of an LCD.
Answer: a
LO
10. The RS pin is _________ for an LCD. Explanation: These pins are the open drain
a) input pins of the controller which means it needs a
b) output pull-up resistor for using it as an input or an
c) input & output output ports.
.B
Answer: c
UNIT IV Explanation: PORT 0 and PORT 2 are used
as the 16 bit address lines where PORT0 act
MICROCONTROLLER as lower bit address lines and PORT 2 as
SE
M
addressable register. Answer: b
Explanation: Register indirect addressing
5. Which instruction is used to check the mode is useful if a series of data is to be
O
status of a single bit? assigned to that address, with the help of this
a) MOV A,P0 quality the number of instructions decreases
C
b) ADD A,#05H as a result of which performance increases.
c) JNB PO.0, label
T.
d) CLR P0.05H 9. Which of the following comes under the
indexed addressing mode?
Answer: c a) MOVX A, @DPTR
Explanation: JNB which stands for Jump if b) MOVC @A+DPTR,A
O
no bit checks the status of the bit P0.0 and c) MOV A,R0
jumps if the bit is 0. d) MOV @R0,A
SP
6. Which addressing mode is used in pushing Answer: b
or popping any element on or from the stack? Explanation: Indexed addressing mode
a) immediate stands for that instruction where the bits of
b) direct
G
the accumulator is also indexed with the 16
c) indirect bit registers.
d) register
LO
c) cant be determined
other way is not accepted. d) none of the mentioned
assigning any instruction as register indirect Explanation: SETB is used to set a bit of a
instruction? register. A stands for accumulator which is an
a) $ 8 bit register, so it is an invalid instruction.
b) #
-R
c) @
d) & TOPIC 4.2 ASSEMBLY
LANGUAGE PROGRAMMING.
Answer: c
SE
Explanation: In register, indirect mode data 1. __________ converts the programs written
is copied at that location where R0 or R1 are in assembly language into machine
present, so @ operator is used ex. MOV instructions.
@R0,A a) Machine compiler
C
b) Interpreter
8. What is the advantage of register indirect c) Assembler
addressing mode? d) Converter
M
2. The instructions like MOV or ADD are the variable with a constant value.
called as ______
a) OP-Code 6. The purpose of the ORIGIN directive is
O
b) Operators __________
c) Commands a) To indicate the starting position in memory,
C
d) None of the mentioned where the program block is to be stored
b) To indicate the starting of the computation
T.
Answer: a code
Explanation: This OP – codes tell the system c) To indicate the purpose of the code
what operation to perform on the operands. d) To list the locations of all the registers used
O
3. The alternate way of writing the Answer: a
instruction, ADD #5,R1 is ______ Explanation: This does the function similar
SP
a) ADD [5],[R1]; to the main statement.
b) ADDI 5,R1;
c) ADDIME 5,[R1]; 7. The directive used to perform initialization
d) There is no other way before the execution of the code is ______
a) Reserve
G
Answer: b b) Store
Explanation: The ADDI instruction, means c) Dataword
LO
a) Allocate
Answer: d b) Assign
Explanation: The directives help the program c) Set
in getting compiled and hence won’t be there d) Reserve
-R
200 a) End
c) Re-assigns the address of Sum by adding b) Return
200 to its original address
c) Stop b) Cache
d) Terminate c) RAM
d) Magnetic disk
Answer: b
Explanation: This instruction directive is Answer: d
M
used to terminate the program execution. Explanation: After compiling the object
code, the assembler stores it in the magnetic
10. The last statement of the source program disk and waits for further execution.
O
should be _______
a) Stop 14. The utility program used to bring the
C
b) Return object code into memory for execution is
c) OP ______
T.
d) End a) Loader
b) Fetcher
Answer: d c) Extractor
Explanation: This enables the processor to d) Linker
O
load some other process.
Answer: a
SP
11. When dealing with the branching code the Explanation: The program is used to load the
assembler ___________ program into memory.
a) Replaces the target with its address
b) Does not replace until the test condition is 15. To overcome the problems of the
satisfied assembler in dealing with branching code we
G
c) Finds the Branch offset and replaces the use _____
Branch target with it a) Interpreter
LO
across the branch code, it immediately finds Explanation: This creates entries into the
the branch offset and replaces it with it. symbol table first and then creates the object
code.
17
Explanation: The table where the assembler TOPIC 5.1 PROGRAMMING 8051
stores the variable names along with their
corresponding memory locations and values.
TIMERS - SERIAL PORT
PROGRAMMING
C
parallel to serial respectively? computer about the start and the end of the
a) timers data.
b) counters
c) registers 4. Which of the following signal control the
d) serial communication flow of data?
M
a) RTS
Answer: c b) DTR
Explanation: Some registers like the parallel c) RTS & DTR
O
in serial out and serial in parallel out are used d) None of the mentioned
to convert serial data into parallel and vice
C
versa respectively. Answer: a
Explanation: RTS is a request to send control
T.
2. What is the difference between UART and signal which is a control for the flow of data.
USART communication? On the other hand DTR is a Data Terminal
a) they are the names of the same particular Ready control signal which tells about the
thing, just the difference of A and S is there current status of the DTE.
O
in it
b) one uses asynchronous means of 5. Which of the following is the logic level
SP
communication and the other uses understood by the micro-controller/micro-
synchronous means of communication processor?
c) one uses asynchronous means of a) TTL logic level
communication and the other uses b) RS232 logic level
G
asynchronous and synchronous means of c) None of the mentioned
communication d) TTL & RS232 logic level
d) one uses angular means of the
LO
asynchronous means of communication, the b) to make the two devices compatible with
data is packed between the start and the stop each other, so that the transmission becomes
bit. This is done so as to tell the other easy and error free
M
compatible with each other baud rate is a) same as that of hardware
mentioned in the serial communication so that b) difficult than hardware
the transmission becomes easy and error free. c) easier than software
O
d) none of the mentioned
8. With what frequency UART operates(
Answer: a
C
where f denoted the crystal frequency )?
a) f/12 Explanation: For both software and
hardware, the method of defining the
T.
b) f/32
c) f/144 interrupt service routine is the same.
d) f/384
2. While programming for any type of
O
Answer: d interrupt, the interrupt vector table is set
Explanation: UART frequency is the crystal a) externally
b) through a program
SP
frequency f/12 divided by 32, that comes out
to be f/384. c) either externally or through the program
d) externally and through the program
9. What is the function of the SCON register?
a) to control SBUF and SMOD registers Answer: c
G
b) to program the start bit, stop bit, and data Explanation: The programmer must, either
bits of framing externally or through the program, set the
LO
c) to control SMOD registers interrupt vector table for that type preferably
d) none of the mentioned with the CS and IP addresses of the interrupt
service routine.
Answer: b
Explanation: SCON register is mainly used 3. To execute a program one should
.B
for programming the start bits, stop bits and a) assemble the program
data bits of framing. As it consists of bits like b) link the program
RB8, TB8, SM0, SM1, SM2 etc. c) apply external pulse
17
b) change a bit of the PCON register assemble it, link it and then execute it. After
c) change a bit of the SCON register execution, a new file RESULT is created in
d) change a bit of the SBUF register the directory. Then external pulse is applied
to IRQ2 pin, and this will again cause the
SE
b) segment
c) subroutines
TOPIC 5.2 INTERRUPTS d) none
PROGRAMMING - LCD &
M
a) input data procedures, it must be declared PUBLIC in
b) output data the main routine and the same should be
c) constants declared EXTRN in the procedure.
O
d) input data or constants
9. The technique to estimate the size of an
C
Answer: d executable program, before it is assembled
Explanation: Procedures require input data and linked is
T.
or constants for their execution. Their data or a) memory location technique
constants may be passed to the subroutine by b) global variable technique
the main program. c) stack
d) none
O
6. The technique that is used to pass the data
or parameter to procedures in assembly Answer: d
SP
language program is by using Explanation: There is no technique to
a) global declared variable estimate the size of an executable program
b) registers before it is assembled and linked.
c) stack
10. To estimate the size of an executable
G
d) all of the mentioned
program before it is assembled and linked, the
Answer: d programming methodology concerned is by
LO
devices
b) it uses global declared variable technique Answer: d
c) it uses stack Explanation: By writing programs with more
d) it uses memory locations than one segment for data, code or stack or by
-R
devices.
TOPIC 5.3.1 INTERFACING -
8. For passing the parameters to procedures DAC & SENSOR INTERFACING
using the PUBLIC & EXTRN directives, it
C
M
Explanation: DAC is used in digitally
controlled gains, motor speed controls and Answer: c
programmable gain amplifiers. Explanation: Stepper motor employs rotation
O
of its shaft in terms of steps, rather than
2. To save the DAC from negative transients continuous rotation as in case of AC or DC
C
the device connected between OUT1 and motors.
OUT2 of AD 7523 is
T.
a) p-n junction diode 6. The internal schematic of a typical stepper
b) Zener motor has
c) FET a) 1 winding
d) BJT (Bipolar Junction transistor) b) 2 windings
O
c) 3 windings
Answer: b d) 4 windings
SP
Explanation: Zener is connected between
OUT1 and OUT2 pins of AD7523 to save Answer: d
from negative transients. Explanation: The internal schematic of a
typical stepper motor has 4 windings.
3. An operational amplifier connected to the
G
output of AD 7523 is used 7. The number of pulses required for one
a) to convert current output to output voltage complete rotation of the shaft of the stepper
LO
stator
Explanation: An operational amplifier is d) number of external teeth on a stator
used as a current-to-voltage converter to
convert the current output to output voltage Answer: a
17
and also provides additional driving Explanation: The number of pulses required
capability to the DAC. for one complete rotation of the shaft of the
stepper motor is equal to the number of
4. The DAC 0800 has a settling time of internal teeth on its rotor.
-R
a) 100 milliseconds
b) 100 microseconds 8. A simple scheme for rotating the shaft of a
c) 50 milliseconds stepper motor is called
d) 50 microseconds a) rotating scheme
SE
b) shaft scheme
Answer: a c) wave scheme
Explanation: DAC 0800 has a settling time d) none
of 100 milliseconds.
C
Answer: c
5. The device that is used to obtain an Explanation: In this scheme, the windings
accurate position control of rotating shafts in
are applied with the required voltage pulses, moment of the start of conversion is called
in a cyclic fashion. conversion delay.
9. The firing angles of thyristors are 2. The popular technique that is used in the
controlled by integration of ADC chips is
M
a) pulse generating circuits a) successive approximation
b) relaxation oscillators b) dual slope integration
c) microprocessor c) successive approximation and dual slope
O
d) all of the mentioned integration
d) none
C
Answer: d
Explanation: In early days, the firing angles Answer: c
T.
were controlled by a pulse generating circuits Explanation: Successive approximation and
like relaxation oscillators and now, they are dual slope integration are the most popular
accurately fired using a microprocessor. techniques that are used in the integrated
ADC chips.
O
10. The Isolation transformers are generally
used for 3. The procedure of algorithm for interfacing
SP
a) protecting low power circuit ADC contain
b) isolation a) ensuring stability of analog input
c) protecting low power circuit and isolation b) issuing start of conversion pulse to ADC
d) none c) reading digital data output of ADC as
G
equivalent digital output
Answer: c d) all of the mentioned
Explanation: Any switching component of a
LO
1. The time taken by the ADC from the active 4. Which is the ADC among the following?
edge of SOC(start of conversion) pulse till the a) AD 7523
active edge of EOC(end of conversion) signal b) 74373
-R
is called c) 74245
a) edge time d) ICL7109
b) conversion time
c) conversion delay Answer: d
SE
M
Explanation: The conversion delay is d) none
100microseconds which is low as compared
to other converters. Answer: a
O
Explanation: A feedback loop is closed
6. The number of inputs that can be around the system to charge the autozero
C
connected at a time to an ADC that is capacitor to compensate for the offset
integrated with successive approximation is voltages in the buffer amplifier, integrator and
T.
a) 4 comparator.
b) 2
c) 8 10. In the signal integrate phase, the
d) 16 differential input voltage between IN
O
LO(input low) and IN HI(input high) pins is
Answer: c integrated by the internal integrator for a
SP
Explanation: As these converters internally fixed period of
have 3:8 analog multiplexer, at a time 8 a) 256 clock cycles
different analog inputs can be connected to b) 1024 clock cycles
the chip. c) 2048 clock cycles
G
d) 4096 clock cycles
7. ADC 7109 integrated by Dual slope
integration technique is used for Answer: c
LO
Answer: b
Explanation: Since joystick is an input
Answer: b device, it reads data from the external
Explanation: Autozero phase, signal devices.
integrate phase and disintegrate phase are the
C
Answer: d Answer: c
Explanation: The output device transfers Explanation: More current should not be
M
data from the microprocessor to the external sourced or sinked from data lines while
devices. reading to avoid loading.
O
3. The input and output operations are 7. To avoid loading during read operation, the
respectively similar to the operations, device used is
C
a) read, read a) latch
b) write, write b) flipflop
T.
c) read, write c) buffer
d) write, read d) tristate buffer
Answer: c Answer: d
O
Explanation: The input activity is similar to Explanation: A tristate buffer is used as an
read operation and the output activity is input device to overcome loading.
SP
similar to write operation.
8. The chip 74LS245 is
4. The operation, IOWR (active low) a) bidirectional buffer
performs b) 8-bit input port
a) write operation on input data c) one that has 8 buffers
G
b) write operation on output data d) all of the mentioned
c) read operation on input data
LO
d) sink to source
Answer: c
Explanation: If the output port is to source Answer: a
large currents, the port lines must be buffered. Explanation: If DIR is 1, then the direction is
SE
So, the latch is used as it acts as a good output from A(inputs) to B(outputs).
port.
10. In memory-mapped scheme, the devices
6. While performing read operation, one must are viewed as
C
take care that much current should not be a) distinct I/O devices
a) sourced from data lines b) memory locations
b) sinked from data lines
M
the devices are viewed as memory locations 4. If a hybrid stepper motor has a rotor pitch
and are addressed likewise. of 36º and a step angle of 9º, the number of
its phases must be
O
a) 4
TOPIC 5.5 STEPPER MOTOR b) 2
AND WAVEFORM
C
c) 3
GENERATION d) 6
T.
1. A variable reluctance stepper motor is Answer: a
constructed of ______________ material with Explanation: Step angle is defined as =(Ns-
Nr)/(Ns+Nr)*360.
O
salient poles.
a) Paramagnetic
b) Ferromagnetic 5. The rotor of a stepper motor has no
SP
c) Diamagnetic a) Windings
d) Non-magnetic b) Commutator
c) Brushes
Answer: b d) All of the mentioned
G
Explanation: A variable reluctance stepper
motor is the motor that has motion in steps Answer: d
Explanation: The rotor is the rotatory part of
LO
c) 45º c) Analogue
d) 60º d) Incremental
Answer: c Answer: d
Explanation: Pole pitch is defined as the Explanation: A stepping motor is a motor in
-R
number of armature slots to the pole pitch and which the motion in the form of steps and is a
here this has been converted into degrees. incremental device i which as the time
increases the steps are increased.
SE
b) 8000
c) 6000 c) Polarity of stator current
d) 10,000 d) Magnitude of stator current.
M
8. Which of the following phase switching
sequence represents half-step operation of a 1. A microcontroller at-least should consist
O
VR stepper motor ? of:
a) A, B, C,A…….. a) RAM, ROM, I/O ports and timers
C
b) A, C, B,A……. b) CPU, RAM, I/O ports and timers
c) AB, BC, CA, AB…….. c) CPU, RAM, ROM, I/O ports and timers
d) CPU, ROM, I/O ports and timers
T.
d) A, AB, B, BC……..
Answer: d Answer: c
Explanation: In the half step operation of a Explanation: A microcontroller at-least
O
Variable reluctance motor physical step consists of a processor as its CPU with RAM,
resolution is multiplied by 2 and control ROM, I/O ports and timers. It may contain
some additional peripherals like ADC, PWM,
SP
signals appear to be digital rather than analog.
etc.
9. A stepper motor may be considered as a
____________ converter. 2. Unlike microprocessors, microcontrollers
make use of batteries because they have:
G
a) Dc to dc
b) Ac to ac a) high power dissipation
c) Dc to ac b) low power consumption
LO
b) 45º instruction?
c) 30º a) decode,fetch,execute
d) 15º b) execute,fetch,decode
c) fetch,execute,decode
SE
Answer: b d) fetch,decode,execute
Explanation: Step angle is defined as =(Ns-
Nr)/(Ns+Nr)*360 where Ns is the number of Answer: d
stator poles and Nr is the number of rotor Explanation: First instruction is fetched from
C
M
a) Data Bus arithmetic and logical instructions, data
b) ALU transfer and memory accesses instructions.
c) Control Bus
O
RISC means Reduced Instruction Set
d) Address Bus Computer because here a microcontroller has
an instruction set that supports fewer
C
Answer: b addressing modes for the arithmetic and
Explanation: If we say a microcontroller is logical instructions and for data transfer
T.
8-bit it means that it is capable of processing instructions.
8-bit data at a time. Data processing is the
task of ALU and if ALU is able to process 8- 7. Give the names of the buses present in a
bit data then the data bus should be 8-bit controller for transferring data from one place
O
wide. In most books it tells that size of data to another?
bus but to be precise it is the size of ALU a) data bus, address bus
SP
because in Harvard Architecture there are two b) data bus
sets of data bus which can be of same size but c) data bus, address bus, control bus
it is not mandatory. d) address bus
G
5. How are the performance and the computer Answer: c
capability affected by increasing its internal Explanation: There are 3 buses present in a
bus width? microcontroller they are data bus (for
LO
a) it increases and turns better carrying data from one place to another),
b) it decreases address bus (for carrying the address to which
c) remains the same the data will flow) and the control bus (which
d) internal bus width doesn’t affect the tells the controller to execute which type of
.B
c) .txt
6. Abbreviate CISC and RISC. d) .hex
a) Complete Instruction Set Computer,
SE
d) Complete Instruction Set Computer, 9. What is the most appropriate criterion for
Reliable Instruction Set Computer choosing the right microcontroller of our
choice?
M
Answer: d c) because they are cheap
Explanation: For choosing the right d) because they consume low power
microcontroller for our product we must
O
consider its speed so that the instructions may Answer: b
be executed in the least possible time. It also Explanation: Microcontrollers are designed
C
depends on the availability so that the to perform dedicated tasks. While designing
particular product may be available in our general purpose computers end use is not
T.
neighboring regions or market in our need. It known to designers.
also depends on the compatibility with the
product so that the best results may be
obtained.
O
SP
G
LO
.B
17
-R
SE
C