You are on page 1of 31

Paper: V – Digital Electronics, Microprocessor,

Semester: VI
Microcontroller and OOP
Topic: Combinational Logic Design: Introduction,
Unit: I
Boolean identities, K – map
1. The Boolean theorem is A+ A=… … . .
(a) 0
(b
1
)
(c) A
(d
A
)
Answer: (b) Difficulty Level: S
2. A combinational logic circuit is a digital circuit where output depends on .......
(a) outputs
(b maxterms
)
(c) inputs
(d minterms
)
Answer: (c) Difficulty Level: S
The Boolean theorem is A . A=… …. .
(a) 1
(b 0
)
(c) A
(d A
)
Answer: (b) Difficulty Level: S
The Boolean theorem A B+ A B+ A B+ AB = ....
(a) B
(b A
)
(c) 1
(d 0
)
Answer: (c) Difficulty Level: S
There are ....... cells in a 3-variable K-map.
(a) 16
(b 2
)
(c) 4
(d 8
)
Answer: (d) Difficulty Level: S
The De Morgan Theorem is A . B . C … ..=… … … …
(a) A . B .C .… …
(b A+ B+C . … …
)
(c) A.B.C ......
(d A+B+C+ .....
)
Answer: (b) Difficulty Level: M
The De Morgan Theorem is A+ B+C …..=… … … …
(a) A . B .C .… …
(b A+ B+C . … …
)
(c) A.B.C ......
(d A+B+C+ .....
)
Answer: (a) Difficulty Level: M
Each term in SOP form is called ........ and each term in POS form is called .......
(a) minterms, maxterms
(b maxterms, minterms
)
(c) canonical form, standard form
(d standard form, canonical form
)
Answer: (a) Difficulty Level: M
It is a Boolean variable either primed or unprimed.
(a) SOP
(b POS
)
(c) Literal
(d Product term
)
Answer: (c) Difficulty Level: M
The Number of Terms in a switching function of four variables are ....
(a) 4
(b 8
)
(c) 16
(d 12
)
Answer: (c) Difficulty Level: M
Simplify the logic expression Y = A B C D+ A B C D+ A B C D

(a) AC

(b
AC D
)

(c) A C(B+ D)

(d
A C( B+ B D)
)
Answer: (d) Difficulty Level: D
For a given logical diagram, write logical expression for output.

(a) A B+ A B
(b ( A¿ B).( A B) ¿
)
(c) A B+ A B
(d AB+AB
)
Answer: (a) Difficulty Level: D
Transform canonical expression into its other canonical form in decimal notation.
F ( x , y , z )=∑ m(1 , 3 ,5)
(a) F ( x , y , z )=∑ M (0 , 2 , 4 , 6 , 7)
(b F ( x , y , z )=∏ M (1, 3 , 7)
)
(c) F ( x , y , z )=M (0 , 2 , 4 , 7)
(d F ( x , y , z )=∏ M (0 ,2 , 4 ,6 ,7)
)
Answer: (d) Difficulty Level: D
For a given logical diagram, write logical expression for output.

(a) Y = ABCD
(b Y = ABCD+ BCD
)
(c) Y =BC
(d Y =BCD
)
Answer: (c) Difficulty Level: D
Represent the expression in numerical form F ( A , B )= A B+ A B
(a) F ( A , B )=∑ m(0 , 2)

(b F ( A , B )=∏ M (0 ,3)
)
(c) F ( A , B )=m(0 , 2 ,3)
(d F ( A , B )=M (0 , 2 ,3)
)
Answer: (a) Difficulty Level: D
*S-Simple, M-Medium, D-Difficult

Semester: VI Paper:Electronic Instrumentation


Unit: I Topic:2- Design & Implimenttion
1. BCD input 1000 is fed to a 7 segment display through a BCD to 7 segment
decoder/driver. The segments which will lit up are ______ .

(a) a, b, d
(b) a, b, c
(c) all
(d) a, b, g, c, d
Answer: Option C -all Difficulty Level: M
2. In a 7 segment display, LEDs b and c lit up. The decimal number displayed is ____ .

(a) 9
(b) 7
(c) 3
(d) 1
Answer: Option D - 1 Difficulty Level: S
3. A three state switch has three outputs. These are __________ .
(a) low, low and high

(b) low, high, high

(c) low. floating, low

(d) low, high, floating

Answer: Option D - low, high, Difficulty Level: S


floating

4 In 1-to-4 demultiplexer, ________ select lines are required.


(a) 2
(b) 3
(c) 4
(d) 5
Answer: Option-a - 2 Difficulty Level: S

5 In a multiplexer the output depends on its ___________


(a) Data inputs
(b) Select inputs
(c) Select outputs
(d) Enable pin
Answer: Option-b - Select Difficulty Level: S
inputs
6

Consider the logic diagram of 4:1 multiplexer.


if C1 = 0 & C2 = 1, then the output will be ________ .
(a) Y0
(b) Y1
(c) Y2
(d) Y3
Answer:Option- b - Y1 Difficulty Level: M
7 For demultiplexer, if n is the no. of select lines. Total no. of outputs is given by ___ .
(a) 2n-1
(b) 2n+1
(c) 2n
(d) n
Answer:Option-C - 2n Difficulty Level: S/M/D
8 ________ is a combinational circuit which used for selecting a single input from
multiple inputs & directing the binary information to output line.
(a) Data Selector
(b) Data distributor
(c) Both data selector and data distributor
(d) DeMultiplexer

Answer: OPtion - a - Data Difficulty Level: M


Selector
9 _________ is the function of an enable input on a multiplexer chip.

(a) To apply Vcc


(b) To connect ground
(c) To active the entire chip
(d) To active one half of the chip
Answer: OPtion- C - To active Difficulty Level: M
the entire chip
10 ___ NOT gates are required for the construction of a 4-to-1 multiplexer?
(a) 3
(b) 4
(c) 2
(d) 6
Answer:OPtion- C - 2 Difficulty Level: M
11. A combinational circuit is one in which the output depends on the ____________
(a) Input combination at the time
(b) Input combination and the previous output
(c) Input combination at that time and the previous input combination
(d) Present output and the previous output
Answer:OPTION - a - Input Difficulty Level: M
combination at the time

12. An encoder is a combinational circuit encoding the information of ____ input lines to
____ output lines, thus producing the binary equivalent of the input.
(a) 2n ; n
(b) 2n-1 ; 2
(c) 2n+1 ; n
(d) n2 ; (n+1)
Answer: Option- a - 2n ; n Difficulty Level: M
13. A code converter is a logic circuit that _____________ .
(a) Inverts the given input
(b) Converts into decimal number
(c) Converts data of one type into another type
(d) Converts to octal
Answer: Option- C - Converts Difficulty Level: M
data of one type into another
type
14 Gray code of decimal no. (4)10 is equal to ________ and that of (15)10 is ______ .

(a) 0110 & 1000


(b) 1001 & 1111
(c) 0100 & 0111
(d) 0101 & 1001
Answer:Option- a - 0110 & Difficulty Level: D
1000
15

is the output of _______ multiplexer.


(a) 4:8
(b) 4:2
(c) 4:1
(d) 1:4
Answer:Option C - 4:1 Difficulty Level: D
16 5 line -to-32line decoder can be constructed using ______ .

(a) 4line -to-3line decoder


(b) 4 line -to-16line decoder
(c) 5 line -to-16line decoder
(d) 4line -to-8line decoder
Answer: OPtion b -4 line -to- Difficulty Level: D
-16line decoder
17 32:1 multiplexer can be constructed using two ______ multiplexers.

(a) 16:1
(b) 4:1
(c) 16:2
(d) 8:1
Answer: Option- a- 16:1 Difficulty Level: S/M/D
18 0100 0010 0001 is the BCD code is equivalent to decimal_____ .

(a) 421
(b) 412
(c) 413
(d) 414
Answer: Option- a- 421 Difficulty Level: D
19 The decimal number 795 is equivalent of ____________________ BCD code.

(a) 0111 1001 0101


(b) 0111 0101 1100
(c) 0110 1001 0011
(d) 0111 1000 1110
Answer:Option a- Difficulty Level: S/M/D
0111 1001 0101
20 In ___________ code system each decimal digit is represented by its binary code plus
three(3).
(a) BCD
(b) Excess-3
(c) Binary
(d) Gray
Answer:Option-b- Excess-3. Difficulty Level: M
21 Two or more decoders can be connected in cascade by using _______ bit of decoder.

(a) DISABLE
(b) ENABLE
(c) CLOCK
(d) VCC
Answer:Option- b- ENABLE Difficulty Level: M

Semester: VI Paper V-Advanced 8085 Programming and


8255(PPI)
Unit: II Topic: Introduction to advanced instructions and
applications
1. LHLD is a ___________________ instruction.

(a) 2-byte

(b) 3-byte

(c) 1-byte

(d) 4-byte

Answer: 3-byte Difficulty Level: S/M/D

2. The function of the XCHG is ____________________________

(a) The contents of the D & L registers are exchanged with the H & E registers.

(b) The contents of the H & L registers are exchanged with the B & C registers.

(c) The contents of the H & L registers are exchanged with the D & E registers.

(d) The contents of the B & C registers are exchanged with the D & E registers.

The contents of the H & L Difficulty Level: S/M/D


registers are exchanged with
the D & E registers.
3. _________________ instruction add register pair with the HL pair register.

(a) DAD Rp

(b) DAC Rp

(c) DAB Rp

(d) DAA Rp

Answer: DAD Rp Difficulty Level: S/M/D

4 The instruction _________________ places the flags in the top location of the stack.
(a) POP F
(b) PUSH F
(c) POP PSW
(d) PUSH PSW
Answer: PUSH PSW Difficulty Level: S/M/D
5 The instruction SPHL ______________________________________________.
(a) Copies H & L registers into the Program Counter
(b) Copies H & L registers into the Accumulator
(c) Copies H & L registers into the Stack Pointer
(d) Copies H & L registers into the Flag Register
Answer: Copies H & L registers Difficulty Level: S/M/D
into the Stack Pointer
6 The instruction PCHL _______________________________________________.

(a) Copies H & L registers into the Flag Register

(b) Copies H & L registers into the Stack Pointer

(c) Copies H & L registers into the Program Counter

(d) Copies H & L registers into the Accumulator

Answer: Copies H & L registers Difficulty Level: S/M/D


into the Program Counter
7 CMC instruction is used in _____________________

(a) Carry to accumulator

(b) Bit manipulation.

(c) Compliment a register

(d) Jump from one memory location to another

Answer: Bit manipulation. Difficulty Level: S/M/D

8 When a CARRY is generated while executing a set of instructions, the CARRY is added to
____ bit of the accumulator.
(a) D0

(b) D5

(c) D3

(d) D7

Answer: D0 Difficulty Level: S/M/D

9 The instruction ACI 8-bit _______________________________________________.

(a) Add immediate 8-bit data with Borrow

(b) Add immediate 8-bit data without Borrow

(c) Add immediate 8-bit data with Carry

(d) Add immediate 8-bit data without Carry


Answer: Add immediate 8-bit Difficulty Level: S/M/D
data with Carry
10 The instruction SBB R _______________________________________________.

(a) Subtracts register contents with accumulator

(b) Subtracts register contents with flag register

(c) Subtracts register contents without borrow

(d) Subtracts register contents with borrow

Answer: Subtracts register Difficulty Level: S/M/D


contents with borrow

Semester: VI Paper: V- Electronic Instrumentation

Unit: II Topic 2): Stack and subroutines

1. Which register holds the address for a stack whose value is supposed to be directed at
the topmost position?
(a) Stack Pointer

(b) Stack Register

(c) Both A & B

(d) None of the above

Answer: A Difficulty Level: S/M/D

2. The instructions based on the stack operations are also known as 'zero address' or
'implied instructions', because _______.
(a) address gets updated automatically in stack pointer

(b) processor can refer a memory stack without specifying the address

(c) Both A & B

(d) None of the above

Answer: C Difficulty Level: S/M/D

3. What is another name of memory stack especially given for the fundamental function
performed by it?
(a) Last-in-first-out (LIFO)

(b) First-in-last-out (FILO)

(c) First-in-first-out (FIFO)

(d) Last-in-last-out (LILO)

Answer: A Difficulty Level: S/M/D


4 What does the last instruction of each subroutine that transfer the control to the
instruction in the calling program with temporary address storage, called as?
(a) jump to subroutine
(b) branch to subroutine
(c) return from subroutine
(d) call subroutine
Answer: C Difficulty Level: S/M/D
5 The transfer of branch information to the microprocessor by an interrupting source
through the data bus is called as ________.
(a) Vectored Interrupt
(b) Non-vectored Interrupt
(c) Priority Interrupt
(d) None of the above
Answer: A Difficulty Level: S/M/D
6 Which program controllable flip-flop is in-built in microprocessor specifically used to
set or clear the program instructions?
(a) IEN flip-flop
(b) IDN flip-flop
(c) SR flip-flop
(d) D flip-flop
Answer: A Difficulty Level: S/M/D
7 Which circuit implements the hardware priority interrupt unit function to determine
the highest priority of simultaneously arriving various input signals?
(a) Priority Decoder
(b) Priority Encoder
(c) Priority Selector
(d) Priority Preceeder
Answer: B Difficulty Level: S/M/D
8 Which interface allows the cardinal provision of communicating with one particular
input-output device in addition to the programming capability for operating with
specific device?
(a) Parallel Peripheral Interface
(b) Serial Communication Interface
(c) Special Dedicated Interface
(d) Direct Memory Access Interface
Answer: C Difficulty Level: S/M/D
9 Which lines are supposed to control or handle the transfer operation between two
devices in asynchronous mode by apprising the status of transfer using common bus?
(a) Control Lines
(b) Data Lines
(c) Transfer Lines
(d) Handshake Lines
Answer: D Difficulty Level: S/M/D
10 What registers are significantly incremented and decremented respectively for the
transmission of each byte by Direct Memory Access (DMA)?
(a) Address Register & Byte Count Register
(b) Control Register & Byte Count Register
(c) Transmitter Register & Byte Count Register
(d) Status- Register & Byte Count Register
Answer: A Difficulty Level: S/M/D
11  The reverse process of transferring the data back from the stack to the CPU
register is known as
(a) pulling out the stack

(b) pushing out the stack

(c) popping out the stack

(d) popping off the stack

Answer: d Difficulty Level: S/M/D

12 The PID temperature controller using 8086 has


(a) data flow
(b) data flow and uses queue
(c) sequential flow
(d) sequential flow and uses stack
Answer: d Difficulty Level: S/M/D
13  While retrieving data from the stack, the stack pointer is
(a) incremented by 1
(b) incremented by 2
(c) decremented by 1
(d) decremented by 2
Answer: b Difficulty Level: S/M/D
14 If the processor is executing the main program that calls a subroutine, then after
executing the main program up to the CALL instruction, the control will be
transferred to
(a) address of main program
(b) subroutine address
(c) address of CALL instruction
(d) none of the mentioned
Answer: b Difficulty Level: S/M/D

Semester: VI Paper V-Advanced 8085 Programming and


8255(PPI)
Unit: II Topic: The 8255 Programmable Peripheral
Interface: Block Diagram of the 8255, Mode 0 –
Simple Input / Output mode, BSR (Bit Set/Reset
Mode)
1. The 8255A IC has _____ ports.

(a) 0

(b) 1

(c) 2

(d) 3

Answer: 3 Difficulty Level: S/M/D

2. The BSR mode is used to ______________________________.


(a) Set or reset the bits in ports C.

(b) Set or reset the bits in ports A.

(c) Set or reset the bits in ports D.

(d) Set or reset the bits in ports B.

Answer: Set or reset the bits in ports Difficulty Level: S/M/D


C.
3. The I/O mode is divided into _____________________________________.

(a) Modes X, Y, Z

(b) Modes A, B, C

(c) Modes 0, 1, 2

(d) Modes 1, 2, 3

Answer: Modes 0, 1, 2 Difficulty Level: S/M/D

4 One of the I/O features in Mode 0 is that ___________________________.


(a) Outputs are not latched
(b) Outputs are latched
(c) Inputs are latched
(d) Inputs are not latched
Answer: Outputs are latched Difficulty Level: S/M/D
5 A0 & A1 are ______________ signals.
(a) Memory select
(b) Input select
(c) Output select
(d) Device select
Answer: Device select Difficulty Level: S/M/D
6 ________________ come under Group A of control word format of 8255A IC.

(a) Port B

(b) Port D

(c) Port A

(d) Port V

Answer: Port A Difficulty Level: S/M/D

7 ________________ come under Group B of control word format of 8255A IC.

(a) Port B

(b) Port Z

(c) Port D
(d) Port A

Answer: Port B Difficulty Level: S/M/D

8 _______ bit of the control word format determines the mode in 8255A IC.

(a) D0

(b) D3

(c) D7

(d) D5

Answer: D7 Difficulty Level: S/M/D

9 The BSR mode is considered with only the 8-bits of ______

(a) Port C

(b) Port A

(c) Port D

(d) Port B

Answer: Port C Difficulty Level: S/M/D

10 The BSR control word does not affect ____________.

(a) Program Counter

(b) Flag

(c) Accumulator

(d) I/O mode

Answer: I/O mode Difficulty Level: S/M/D

Semester: VI Paper: 5 – Digital Electronics, Microprocessor,


Microcontroller and OOP
Unit: III Chapter 3
1. What is the largest hex value that can be moved into an 8-bit register?
(a) 11H
(b) FFH
(c) 09H
(d) 99H
Answer: (b) FFH Difficulty Level: S
2. Which of the following instruction in microcontroller copies the contents of memory
location pointed by the sum of the accumulator A and the program counter into accumulator
A
(a) MOV @A, A+PC
(b) MOVC @A, A+PC
(c) MOVC A, @A+PC
(d) MOVC @A, @A+PC
Answer: C: MOVC A, @A+PC Difficulty Level: M
3. The size of instruction ‘MOV A, #25H’ is,
(a) 1 byte instruction
(b) 2 byte instruction
(c) 3 byte instruction
(d) 4 byte instruction
Answer: (b) 2 byte instruction Difficulty Level: S
4 What is the size of the flag register in 8051?
(a) 1 bit
(b) 1 byte
(c) 8 bit
(d) 16 bit
Answer: ( c ) 8 bit Difficulty Level: S
5 Which of the following instruction is illegal in microcontroller 8051.
(a) MOV R9,#50H
(b) MOV R2, #50H
(c) MOV A, #F5H
(d) MOV A, 50H
Answer: (a) MOV R9,#50H Difficulty Level: M
6 Which of the following instruction is direct addressing mode instruction.
(a) MOV A, #25H
(b) MOV A, @R0
(c) MOV A, R0
(d) MOV A, 30H
Answer: ( d) MOV A, 30H Difficulty Level: M
7 How the number -7 is represented in 8051.
(a) F7H
(b) F8H
(c) F9H
(d) 07H
Answer: (c) F9H Difficulty Level: S/M/D
8 In multiplication of two bytes in the 8051, which of the following two registers are used?
(a) A and B
(b) A and R0
(c) R0 and R1
(d) A and R1
Answer: (a) A and B Difficulty Level: M
9 After the execution of two instruction of 8051: ‘MOV A, #37H’ and ‘ORL A, #0CAH’ ; the
content of register A will become,.
(a) 02H
(b) FFH
(c) FDH
(d) 0FH
Answer: (b) FFH Difficulty Level: M
10 Why does ‘RRC R3’ give an error in the 8051?
(a) Because register R3 in not a register
(b) Because opcode RRC is not valid
(c) Because given instruction does not contain # symbol
(d) Because the given instruction work with the accumulator only
Answer: (d) Because the given instruction work with the accumulator only

11. If A=85H, then after the SWAP instruction the content of accumulator becomes.
(a 58
(b) 85
(c) 58H
(d) 85H
Answer: ( c ) 58H Difficulty Level: S
12. If the initial value of register R0 is FFH, then after executing instruction in 8051 “ INC R0” ,
the content of register R0 becomes,
(a) F1H
(b) FEH
(c) 00H
(d) 01H
Answer: ( c) 00H Difficulty Level: S
13. All short jump instructions in 8051 is …………,
(a) 1-byte instruction
(b) 2-byte instruction
(c) 3 -byte instruction
(d) 4 -byte instruction
Answer: (b) 2- byte instruction Difficulty Level:S
14 LJMP is of which type of instruction?
(a) 1-byte instruction
(b) 2-byte instruction
(c) 3 -byte instruction
(d) 4 -byte instruction
Answer: (c ) 3-byte instruction Difficulty Level:S
15 In 8051, all conditional jumps are of which type?
(a) Short jump
(b) Absolute jump
(c) Long jump
(d) Loop jump
Answer: (a) Short jump Difficulty Level: M
16 In 8051, if the short jump is forward, then the target address can be within a space of….
(a) 127 bytes from the current PC
(b) 128 bytes from the current PC
(c) -127 bytes from the current PC
(d) -128 bytes from the current PC
Answer: (a) 127 bytes from the Difficulty Level: M
current PC
17 Every subroutine needs which instuction from the following as the last instruction?
(a) LCALL
(b) AJMP
(c) LJMP
(d) RET
Answer: (d) RET Difficulty Level: M
18 In using LCALL instruction, the target address of the subroutine can be anywhere within
which memory space of the 8051?
(a) 2 k-byte
(b) 8 k-byte
(c) 32 k-byte
(d) 64 k-byte
Answer: (d) 64 -byte Difficulty Level: M
19 The mnemonics DJNZ stands for……
(a) Delete and jump if not zero
(b) Delay and jump if not zero
(c) Drop and Jump if not zero
(d) Decrement and jump if not zero
Answer: (d) Decrement and Difficulty Level: D
jump if not zero
20 In 8051, if intitally A=8FH, then after executing instruction “CPL A” the content of register
becomes,
(a) F8H
(b) 81H
(c) 7FH
(d) 70H
Answer: (d) 70H Difficulty Level: D
21. When two BCD numbers are added, the answer is a non-BCD number. To get the result in
BCD, we use which instruction after addition.
(a) PUSH
(b) POP
(c) DAA
(d) ADDC A, R0
Answer: (c) DAA Difficulty Level: D

Micro-processors & Micro-controllers - MCQs with answers

1. Which functioning element of microcontroller generate and transmit the address of


instructions to memory through internal bus ?

a. Instruction Decoding Unit


b. Timing and Control Unit
c. Program Counter
d. Arithmetic Logic Unit

View Answer / Hide Answer

ANSWER: c. Program Counter

2. How does the microcontroller communicate with the external peripherals /


memory?

a. via I/O ports


b. via register arrays
c. via memory
d. all of the above

View Answer / Hide Answer

ANSWER: a. via I/O ports

3. Why do the microprocessors possess very few bit manipulating instructions ?

a. Because they mostly operate on bits/ word data


b. Because they mostly operate on byte/word data
c. Both a & b
d. None of the above

View Answer / Hide Answer

ANSWER: b. Because they mostly operate on byte/word data

4. Which minimum mode signal is used for demultiplexing the data and address lines
with the assistance of an external latch in a microprocessor while accessing memory
segment ?

a. INTA
b. DTE
c. HOLD
d. ALE

View Answer / Hide Answer

ANSWER: d. ALE

Bit Microcontrollers - MCQs with answers

1. Which word size is approved to be of greater importance for performing the small
computational tasks along with its storage usability feature adopted by ASCII code?

a. 4-bit
b. 8-bit
c. 16-bit
d. 32-bit

View Answer / Hide Answer

ANSWER: b. 8-bit

2. Which among the below stated statements does not exhibit the characteristic
feature of 16-bit microcontroller?

a. Large program & data memory spaces


b. High speed
c. I/O Flexibility
d. Limited Control Applications

View Answer / Hide Answer

ANSWER: d. Limited Control Applications


3. Which microcontrollers offer the provisional and salient software features of fault
handling capability, interrupt vector efficiency and versatile addressing ?

a. TMS 1000 (4 bit)


b. TMS 7500 (8 bit)
c. Intel 8096 (16 bit)
d. Intel 80960 (32 bit)

View Answer / Hide Answer

ANSWER: d. Intel 80960 (32 bit)

1. Which category of microcontrollers acquire the complete hardware configuration


on its chip so as to run the particular application ?

a. Embedded Memory Microcontrollers


b. External Memory Microcontrollers
c. Both a & b
d. None of the above

View Answer / Hide Answer

ANSWER: a. Embedded Memory Microcontrollers

2. External Memory Microcontrollers can overcome the limitations of insufficient in-


built program and data memory by allowing the connections of external memory
using _________

a. Serial Port Pins as address and data lines


b. Parallel Port Pins as address and data lines
c. Parallel Port Pins as address and control lines
d. Serial Port Pins as address and control lines

View Answer / Hide Answer

ANSWER: b. Parallel Port Pins as address and data lines

3. How are the address and data buses removed in external memory type of
microcontrollers?

a. Through demultiplexing by external latch & ALE signal


b. Through demultiplexing by external latch & DLE signal
c. Through multiplexing by external latch & DLE signal
d. Through multiplexing by external latch & ALE signal
View Answer / Hide Answer

ANSWER: d. Through multiplexing by external latch & ALE signal

CISC & RISC Processors - MCQs with answers

1. What are the significant designing issues/factors taken into consideration for RISC
Processors?

a. Simplicity in Instruction Set


b. Pipeline Instruction Optimization
c. Register Usage Optimization
d. All of the above

View Answer / Hide Answer

ANSWER: d. All of the above

2. What does the compact and uniform nature of instructions in RISC processors
facilitate to?

a. compiler optimization
b. pipelining
c. large memory footprints
d. none of the above

View Answer / Hide Answer

ANSWER: b. pipelining

3. Which processor has the necessity of manual optimization for the generation of
assembly language code especially for the embedded systems?

a. RISC
b. CISC
c. Both a & b
d. None of the above

View Answer / Hide Answer

ANSWER: b. CISC

4. Which register of current procedure resemble physically similar to the parameter


register of called procedure during register to register operation in an overlapping
window of RISC Processors?

a. Local Register
b. Temporary Register
c. Parameter Register
d. All of the above

View Answer / Hide Answer

ANSWER: b. Temporary Register

Harvard & Von-Neumann Architectures - MCQs with answers

1. Which architectural scheme has a provision of two sets for address & data buses
between CPU and memory?

a. Harvard architecture
b. Von-Neumann architecture
c. Princeton architecture
d. All of the above

View Answer / Hide Answer

ANSWER: a. Harvard architecture

2. Which factors/parameters contribute to an effective utilization or adoption of


Harvard architecture by most of the DSPs for streaming data?

a. Greater memory bandwidth


b. Predictable nature of bandwidth
c. Both a & b
d. None of the above

View Answer / Hide Answer

ANSWER: c. Both a & b

3. Which kind of multiplexing scheme is adopted by Von-Newman architecture


especially for program and data fetching purposes?

a. Time Division Multiplexing


b. Frequency Division Multiplexing
c. Statistical Time Division Multiplexing
d. Code Division Multiplexing
View Answer / Hide Answer

ANSWER: a. Time Division Multiplexing

4. Which feature deals with the fetching of next instruction during the execution of
current instruction irrespective of the memory access?

a. Fetching
b. Pre-fetching
c. Fetch & Decoding
d. All of the above

View Answer / Hide Answer

ANSWER: b. Pre-fetching

Semester: VI Paper V-Advanced 8085 Programming and 8255(PPI)

Unit: III Topic: 8051 Microcontrollers:

1. The 8051 microcontroller is of ___pin package as a ______ processor.

(a) 30, 1byte

(b) 20, 1 bit

(c) 40, 8 bit

(d) 40, 8 byte

Answer: C Difficulty Level: S

2. After reset, SP register is initialized to address________.

(a) 8H

(b) 9H

(c) 7H

(d) 6H

Answer:C Difficulty Level: M

3. Which pin of port 3 is has an alternative function as write control signal for

external data memory?

(a) P3.8
(b) P3.3

(c) P3.6

(d) P3.1

Answer:C Difficulty Level: D

4. Match the following:

1) TCON i) contains status information

2) SBUF ii) timer / counter control register.

3) TMOD iii) idle bit, power down bit

4) PSW iv) serial data buffer for Tx and Rx.

5) PCON v) timer/ counter modes of operation.

(a) 1->ii, 2->iv, 3->v, 4->i, 5->iii.

(b) 1->i, 2->v, 3->iv, 4->iii, 5->ii.

(c) 1->v, 2->iii, 3->ii, 4->iv, 5->i.

(d) 1->iii, 2->ii, 3->i, 4->v, 5->iv.

Answer: a Difficulty Level: D

5 What is the address range of SFR Register bank?

(a) 00H-77H

(b) 40H-80H

(c) 00H-FFH

(d) 80H-FFH

Answer:d Difficulty Level: M

6 Which of the following instruction perform as of indirect RAM to accumulator?

(a) MOV A, Rn

(b) MOV @Ri, A

(c) MOV A, @Ri


(d) d) MOV Rn, A

Answer:c Difficulty Level: D

7 Which of the following instruction perform the move accumulator to external

RAM of 16bit address?

(a) MOV @ DPTR, A

(b) MOVX @ Ri, A

(c) MOV A, @ Ri

(d) MOVX @ DPTR, A

Answer:d Difficulty Level: S

8 Which of the following instruction perform jump indirect relative to DPTR

(a) JMP A+DPTR

(b) JMP DPTR

(c) JMP @A+DPTR

(d) SJMP A+DPTR

Answer:c Difficulty Level: M

9 Which of the following instruction is wrong

(a) INC DPTR

(b) MOV @DPTR, A

(c) MOV A, @A+DPTR

(d) DEC DPTR

Answer:b Difficulty Level: M

10 What is the Result of RRA instruction if accumulator contains 1000 0000.

(a) 0000 0001

(b) 0000 0000

(c) 0100 0000

(d) 0000 0010


Answer:c Difficulty Level: S

11 Which of the following instruction is used to set bit port directly?

(a) SET P1.0

(b) MOV P1.0, bit

(c) SETB P1.0

(d) JB P1.0, bit

Answer:c Difficulty Level: S

12 MOV A, #56H

MOV R1, #50H

MOV 50H, # 45H

XCHD A, @R1

What is the result at A, R1?

(a) 56H, 45H

(b) 45H, 50H

(c) 50H, 56H

(d) 45H, 56H

Answer:d Difficulty Level: D

13 In modes 2 and 3, if _____ bit of SCON bit is set will causes enable multiprocessor
communication and is of ____ bit address.

(a) SM1, 9EH

(b) TB8 , 9CH

(c) SM2 , 9DH

(d) SM0, 9FH

Answer: c Difficulty Level: D

14 What is the function of watchdog timer?

(a) The watchdog Timer is an external timer that resets the system if the software
fails to operate properly.

(b) The watchdog Timer is an internal timer that sets the system if the software
fails to operate properly.
(c) The watchdog Timer is an internal timer that resets the system if the software
fails to operate properly.

(d) The watchdog Timer is 8bit processor

Answer: c Difficulty Level: M

15 If the __ pin is ___ , then we have the option of using the ____ ROM or EPROM
together with _____ memory and devices.

(a) EA, high, internal, external

(b) EA, low, internal, external

(c) EA, high, external, internal

(d) EA, low, external, internal

Answer: a Difficulty Level: S

Semester: VI Paper: I – Electronic Instrumention


Unit: IV Topic: CPP
1. What is the only function all C++ programs must contain?

(a) start()
(b) system()
(c) main()
(d) program()
Answer: main() Difficulty Level: S
2. What punctuation is used to signal the beginning and end of code blocks?

(a) {}
(b) -> and <-
(c) BEGIN and END
(d) ( and )
Answer: { } Difficulty Level: S
3. What punctuation ends most lines of C++ code?
(a) . (dot)
(b) ; (semi-colon)
(c) : (colon)
(d) ' (single quote)
Answer: ; (semi-colon) Difficulty Level: S
4 Which of the following is a correct comment?

(a) */ Comments */
(b) ** Comment **
(c) /* Comment */
(d) { Comment }
Answer: /* Comment */ Difficulty Level: S
5 Which of the following is not a correct variable type?
(a) float
(b) real
(c) int
(d) double
Answer: real Difficulty Level: M
6 Which of the following is the correct operator to compare two variables?

(a) :=
(b) =
(c) equal
(d) ==
Answer: == Difficulty Level: S
7 To increase the value of c by one which of the following statement is wrong?

(a) c++
(b) c=c+1
(c) c + 1 => c
(d) c += 1
Answer: c + 1 => c Difficulty Level: M
8 When following piece of code is executed, what happens?
b = 5;
a = b++;
(a) a contains 5 and b contains 6
(b) a contains 5 and b contains 6
(c) a contains 6 and b contains 5
(d) a contains 5 and b contains 5
Answer: a contains 6 and b contains 5 Difficulty Level: D
9 What is the final value of x when the code int x; for(x=0; x<8; x++) {} is run?

(a) 8
(b) 9
(c) 0
(d) 11
Answer: 8 Difficulty Level: D
10 When does the code block following while(x<100) execute?.

(a) When x is less than one hundred


(b) When x is greater than one hundred
(c) Always
(d) When x is equal to one hundred
Answer: When x is less than one Difficulty Level: S
hundred
11 Which is not a loop structure?

(a) do while
(b) repeat until
(c) while
(d) for
Answer: repeat until Difficulty Level: S/M/D
12 How many times is a do while loop guaranteed to loop?

(a) Infinitely
(b) 0
(c) 1
(d) 2
Answer: Difficulty Level: S
13. Regarding the use of  new line character (/n) and endl manipulator with cout statement.

(a)  Both ways are exactly same

(b) Both are similar but endl additionally performs flushing of buffer


(c) \n can’t be used with cout
(d) endl can’t be used with cout
Answer: Both are similar but endl additionally Difficulty Level: D
performs flushing of buffer
14. Which of the following is output statement in C++?

(a) print
(b) cout
(c) cin
(d) write
Answer: cout Difficulty Level: S
15 By default, the standard output device for C++ programs is

(a) Monitor
(b) Modem
(c) Disk
(d) Printer
Answer: Monitor Difficulty Level: S
16. Identify the correct statement regarding scope of variables

(a) Global variables are declared in a separate file and accessible from any program
(b) Global variables are declared inside a function and accessible from anywhere in program
(c) Local variables are declared inside a function and accessible within the function only.
(d) Local variables are declared in the main body of the program and accessible only from
functions.
Answer: Local variables are declared inside a Difficulty Level: M
function and accessible within the function only.
17 In case of arguments passed by values when calling a function such as a=area(x,y),

(a) Any modifications to the variables x & y from inside the function will not have any effect
outside the function
(b) The variables x and y will be updated when any modification is done in the function

(c) The variables x and y are passed to the function area


(d) Any modifications to the variables x from inside the function will have any effect outside the
function only on x and not on y.
Answer: Any modifications to the variables x & y Difficulty Level: D
from inside the function will not have any effect
outside the function
18 Find out the error in following block of code.

If (x = 10)

    Cout << “x is 10”;

(a) There is no semicolon at the end of first line


(b) Equals to operator mistake
(c)  10 should be enclosed in quotations

(d) Variable x should not be inside quotation


Answer: Difficulty Level: M
19 The difference between while structure and do structure for looping is

(a)  Indo structure the condition is tested at the beginning of first iteration
(b) The do structure decides whether to start the loop code or not whereas while
statement decides whether to repeat the code or not
(c)  In while structure condition is tested before executing statements inside loop
whereas in do structure condition is tested before repeating the statements inside
loop
(d)   In while statement the condition is tested at the end of first iteration

Answer: In while structure condition is tested before executing Difficulty Level: D


statements inside loop whereas in do structure condition is
tested before repeating the statements inside loop
20. Which of the following is selection statement in C++?

(a)     break

(b)     goto
(c) Switch
(d)   exit

Answer: Switch Difficulty Level: S


21 Which of the following is the boolean operator for logical-and ?

(a) &
(b) |
(c) &&
(d) |&
Answer: && Difficulty Level: S
22 The directives for the preprocessors begin with

(a) Ampersand symbol (&)


(b) Number Sign (#)
(c) >>
(d) Two Slashes (//)
Answer: Number Sign (#) Difficulty Level: M
23. Which of the following is not a jump statement in C++?

d.

(a)  break

(b) exit
(c) goto
(d) switch
Answer: switch Difficulty Level: S
24 A block comment can be written by

(a) Starting every line with double slashes (//)


(b) Starting with /* and ending with */
(c) Starting with <<
(d) Starting with //* and ending with *//
Answer:Starting with /* and Difficulty Level: S
ending with */
25 Variable is/are

(a) String that varies during program execution


(b) Those numbers that are frequently required in programs
(c) Those numbers that are constant
(d) A portion of memory to store a determined value
Answer: A portion of memory to Difficulty Level: M
store a determined value
26 The value of the expression 22.0 * (9/5) + 2.0 is

(a) 68.0
(b) 24.0
(c) incorrect expression so there is no value
(d) 32.0
Answer: 24.0 Difficulty Level: M
27 a>b ? a : b

(a) returns a
(b) returns whichever is greater, a or b.
(c) returns b
(d) returns 1
Answer: returns whichever Difficulty Level: D
is greater, a or b.
28 Value of sum after execution will be will
float x = 2.3

    int sum = (int)x + 1;

(a) 2
(b) 3
(c) 2.3
(d) 3.3
Answer:3 Difficulty Level: D
29 The break statement is used in

(a) Do while loop


(b) Switch statement
(c) For loop
(d) While loop
Answer: Difficulty Level: S
30. The difference between x and ‘x’ is
(a) The first one refers to a variable whose identifier is x and the second one refers to the
character constant x
(b) The first one is a character constant x and second one is the string literal x
(c) Both are same
(d) None of above
Answer: Difficulty Level: S/M/D

You might also like