0% found this document useful (0 votes)
45 views21 pages

micro 2 questions (1)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views21 pages

micro 2 questions (1)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

1) The minimum number of pins (other than VCC or Ground) required for 3*3 keypad is

a) 3

b)6

c) 9

d) None of the above

2) Which of the following statements is incorrect?

a) Absolute decoding is cheaper than linear decoding

b) The main advantage of linear decoding is aliases

c) Memory mapped IO uses different address spaces for memory and I/O devices

d) All of the above

3) To avoid conflict between DMA and processor in data bus usage

a) Device should take permission from the processor

b) DMA should take permission from processor

c) Processor should ask DMA before using buses

d) All of the above

4) A motor with 360 steps per revolution has a step angle

a) 1

b) 2

c) 3.24

d) 360

5) Large storage devices needs …………………. For data integrity

a) Parity bit

b) Check sum

c) CRC

d) None of the above


6) Full step sequence has rotation accuracy …….. the half step sequence.

a) Greater than

b) Lower than

c) The same as

d) None of the above

7) Device masking is used in

a) DMA

b) Interrupt controller

c) Direct memory access

d) All of the above

9) The main function of all transducers is converting physical quantity to

a) electrical quantity

b) analog quantity

c) digital quantity

d) None of the above

10) The data transmitted from the pc to the printer is

a) Synchronous

b) Asynchronous

c) Semi-synchronous

d) None of the above

11) For a 3 * 4 keypad [3 rows and 4 columns] if the column port reads 0000 which of the following is
correct

a) No key has been pressed

b) At least four keys have been pressed


c) At least three keys have been pressed

d) One key has been pressed

12) Which of the following is the fastest volatile memory

( A )DRAM ( B )NVRAM ( C )EEPROM ( D )SRAM

13) To move a stepper motor you need to send an electric pulse. This pulse can be produced by

( A )Microprocessor

( B )Timing Logic

( C )Toggle Switch

( D )all of the other options are valid answers

14) The number of microcontrollers used to control a 4*3 keyboard is

( A )3 ( B )12 ( C )1 ( D )4

15) The keyboard buffer is 32 bytes meaning that it is able to hold up to

( A )8 keys ( B )32 keys ( C )64 keys ( D )16 keys

16) RISC processors are … than CISC processors

( A )more expensive ( B )cheaper ( C )less important ( D )more important

17) You need to design a new washing machine system. You need to add a non-volatile memory to

your system to save the washing programs. More programs could be added later for this machine.

Therefore, your main concern is about the size of the memory because you need the largest possible

chip. Which of the following is the most suitable one for your system?

( A )28F128-90 ( B )28F256-45 ( C )28F128-45 ( D )28F512-60

18) you need to write a microcontroller code to generate an FM signal to be received by a radio

device. This signal is an analogue signal with 952 voltage levels. To generate this signal you have to use

( A )DAC with 952 input pins


( B )ADC with ten output pins and one input pin

( C )DAC with 10 input pins and one output pin

( D )ADC848 is more than enough

19) What is the difference between full-step and half-step?

( A )More power required for full-step motors

( B )In full-step two phases are on and in half-step only one phase is on.

( C )Half-step offers better resolution

( D )The half-step motor is cheaper than the full-step motor

20) ADC is an abbreviation for

( A )Artificial data connection

( B )Address-data-control buses

( C )Asynchronous data communication

( D )Analogue to digital converter

21) To solve cache coherence problem of the 8237A-5 chip you could use

( A )Mix of both software and hardware invalidation

( B )Hardware invalidation

( C )Software invalidation

( D )All of the other options are possible solutions

23) The higher the memory access time, the …. the memory chip

( A )cheaper ( B )larger ( C )more expensive ( D )smaller

24) Strobe signal is used to


( A )Inform the sender about errors during receiving data and ask the sender to repeat sending data
again

( B )Inform the receiver about errors during transmission

( C )Inform the sender to start sending data because the receiver is ready to accept it

( D )Inform the receiver to start reading data because it is ready now on the transmission channel from
the sender

25) Which of the following has the larger number of pins

( A )Quad Flat Package ( B )Small Outline IC ( C )Dual Inline Package ( D )Ball Grid Array

26) You are a system designer at one of the printer manufacturing companies. The research and

development team discovered that data is not received from the PC using the parallel port if the

printer temperature is more than a certain threshold because the printer buffer doesn’t work at high
temperature. To solve this problem they suggested adding a temperature sensor to the printer. Your

boss asked you to modify this printer design. You can add this sensor and use it to measure the

temperature threshold; however you have a problem in connecting the sensor output to the computer

using a parallel port because all pins are used already. Therefore the best solution for this problem

with the fewest needed changes is:

( A )You can use pin 15 that is used for out of paper or jammed paper error to be activated if the sensor

reading is more than the threshold temperature

( B )The temperature readings is no more than 255 therefore you can modify the printer driver to keep

reading the temperature using the data pins before sending data to the printer

( C )Modify the printer driver to use pin 17 that is used for selecting input to let the PC receive if the
current

printer temperature is higher than the specified threshold or not

( D )Make the printer stop working completely at higher temperatures therefore, You don't need to send
the sensor reading back to the computer
27) You have a hard disk that contains 4 platers. Each platter side is divided into 10 tracks. Each

track is divided into 10 sectors and each sector is one megabyte. What is the capacity of this hard

disk?

( A )24 Megabytes

( B )400 Megabytes

( C )None of the other options is correct

( D )800 Megabytes

28) You are a system designer and you have been asked to build a network switch. After making your

switch design and testing it your company started the mass production phase. Your network switch

needs to save some configurations about the encryption type, switch routing software ... etc. Data like

this may change once or twice per year with software updates. Which of the following memory types is

the most suitable one for saving this data?

( A )Mask Rom ( B )EEPROM ( C )EPROM ( D )PROM

29) You need to know the speed of a DRAM memory to calculate the time needed to read only one

byte (one memory location) starting from putting the address of this memory location on the address

bus till receiving valid data at the data bus therefore, it is more important for you to read about its

( A )tAA ( B )None of the other options is correct ( C )tBD ( D )tRC

30) Instead of a four winding stepper motor, you decided to use a six winding stepper motor with six

wires. Which of the following produces a half step movement

( A )1100-0110-0011-1001

( B )1100-0100-0110-0010-0011-0001-1001-1000

( C )110000-010000-011000-001000-001100-000100-000110-000010-000011-000001-100001-100000

( D )None of the other options is correct

31) The number of microcontrollers on Arduino Uno board is

( A )1 ( B )2 ( C )4 ( D )3
32) Assuming that the parity bit of the scan code of the make “press” of a certain key zero. Then the

parity bit of the break "release”; of the same key is

( A )Unknown because it may be even or odd ( B )one ( C )two ( D )zero

33) The processor that uses Slow complex instructions is

( A )SIRC ( B )CIRC ( C )CISC ( D )RISC

34) Assume the following keyboard

R0 1 2 3 4

R1 5 6 7 8

R2 9 A B C

C3 C2 C1 C0

For the identification phase, If C3-C0 = 1010 and R2-R0=000, Then the number of currently pressed keys
is

( A )None of the other options is correct ( B )3 ( C )1 ( D )6

35) The main difference between 1:1 interleaving and 3:1 interleaving is that

( A )3:1 interleaving could be used only for SSD

( B )3:1 interleaving is three times faster than 1:1 interleaving therefore it is used only with fast hard disk
controllers

( C )3:1 interleaving is used for larger hard disks

( D )3:1 interleaving is used for slow hard disk controller

36) A stepper motor having a resolution of 300 steps/rev and running at 2400 rpm has steps / second

( A )8000 ( B )4000 ( C )12000 ( D )6000

37) ICSP is an abbreviation for

( A )Integrated Circuit Serial Port ( B )Integrated Circuit Service Programming


( C )In-Circuit Serial Programmer ( D )Ideal Case Standard Peak

38) To solve some of the hard contact keyboards problem a new method is used for receiving pressed

keys and this method is

( A )None of the other options is correct

( B )wireless keyboards

( C )Capacitive keyboards

( D )USB keyboards

39) Which of the following sequences results in moving a stepper motor the lowest possible movement

(may be not a full rotation)

( A )0101-0101-0101-0101

( B )0011-0110-1100-1001

( C )0011-0010-1111-0000

( D )0000-1111-0000-1111

40) DMA should send HRQ to the processor, if the processor didn't respond

( A )Send HRQ again to the processor

( B )Start transmission directly but without sending DACK to the device

( C )DMA keep waiting more for the processor to respond

( D )Start transmission directly after sending DACK to the device

41) If you have more than the maximum number of devices that could be connected to 8237A-5, it is

better to

( A )Connect more than one device on the same pin

( B )Add more 8237A-5 chips in parallel with the first one

( C )It is not allowed by any way to add more devices because it is hardware limitation

( D )Cascade more 8237A-5 chips with the first one


42) You need to design a smart home system. Your system contains twenty modules like a smart

door, security system... etc. Each module contains ten submodules for example the security system

contains fire alarm, intrusion detection, face recognition...etc. each submodule needs ten input/output

ports. You want to connect this system to a microprocessor that has only an 11 bits address bus. The

cheapest possible address decoding for this system is

( A )Absolute address decoding

( B )Control bus address decoding

( C )There is no suitable decoding method for this case

( D )Linear select address decoding

43) The data transmitted between the keyboard and the motherboard is transmitted in

( A )synchronous

( B )half duplex

( C )parallel

( D )serial

44) Microcontrollers are an important part of our lives. You may be holding up to ten

microcontrollers at the same time. For example your smart phone only may include several

microcontrollers. If its main processing unit is Cortex, it should be of type….

( A )A

( B )M

( C )R

( D )N

45) 8255 has four i/o ports one of the following is not one of them

( A )D
( B )B

( C )C lower

( D )A

46) You are a system designer and you have been asked to build a network switch. After making your

switch design and testing it your company started mass production phase. Your network switch needs

to save some information about the model and your company name. Data like this will never change

after production. Which of the following memory types is the most suitable one for saving this data?

( A )Mask Rom

( B )SRAM

( C )PROM

( D )Flash Rom

47) For MTBF, it is preferable to make it………

a) Increase b) Decrease c) Lower than DBF d) Do not care

48) How many rotations are required for 4:1 interleaving track to access all sectors?

a) 1 b) 2 c) 4 d) 16

49) which of the following is not a motor step sequence

a) wave step b) full step c) half step d) double step

50) To increase disk performance it is required to …. cluster size

a) Increase b) Delete c) Decrease d) Hide

51) For a 3 * 4 keypad [3 rows and 4 columns] if the column port reads 1111 which of the following is
correct

a) No key has been pressed b) At least four keys have been pressed

c) At least three keys have been pressed d) One key has been pressed
52) Hard disk is connected to channel 3 because it is ….. device

a) more important b) less important c) low speed d) high speed

53) A motor with 180 steps per revolution has a step angle

a) 1 b) 2 c) 3.24 d) 180

54) Channel 0 of the DMA in modern IBM PC is connected to

a) Hard Disk b) DRAM refreshing c) IRQ9 d) None if the above

55) if the processor did not respond with HLDA to DMA

a) DMA start transferring directly b) DMA cancel the request

c) DMA keep requesting d) none of the above

56) The main advantage of SCSI is that….

a) it forbids data corruption b) it supports more devices

c) it supports high speed devices d) none of the above

57) How many devices can use DMA at the same time?

a)1 b) 2 c) 4 d) 16

58) Which of the following require larger number of bytes for data integrity?

a) SRAM b) Non volatile RAM c) ROM d) DRAM

59) To avoid FAT corruption

a) CRC check is added to FAT b) check sum is added to FAT

c) two copies are kept on the disk d) none of the above


60) after executing
MOV ah,2
INT 16
the value of al = 11000001, meaning that currently there are at least
a) one key pressed b) two key pressed
c) three key pressed d) four key pressed

61) One of the advantages of absolute address decoding over linear address decoding is
a) Cheaper b) Faster
c) Wider addressable range d) None of the above

[62] One of the main advantages of parallel transmission is


( A )Support long distances
( B )Having much lower wiring resistance
( C )Easier for cable management
( D )Does not require a complicated error handling mechanism

[63] You need a fast motor for your racing robotic car. You have three motors.
Motors A, B and C. Motor A has the following specifications written on it " 200
steps per revolution, Support full step and half step movements" While motor B
has the following specifications written on it " 250 steps per revolution, Supports
wave step in addition to full step " and motor C vendors wrote on it only that "it
is a 300 steps per revolution motor". Which one of these motors is the fastest
one?
( A )None of the other options is correct ( B ) Motor B
( C )Motor C ( D ) Motor A

[64] If you know the scan code of certain key and you decided to calculate the
ASCII code of this key because the difference between scan code and ASCII code
of the same key is
( A )no difference (they are the same) ( B )16
( C )80 H ( D )Unknown. You can't calculate it.
[65] You need to know the speed of a DRAM memory to calculate the time
needed for bulk data reading therefore, it is more important for you to read
about its
( A )tRC ( B )tAA ( C )tBD ( D )None of the other options is correct

[66] The process of identifying any corruption of data is called Data integrity.
Different methods and algorithms are used for different devices. For very large
storage devices it is better to add
( A )cyclic redundancy check
( B )all of other answers are equally good solutions for this case
( C )Parity bit for each byte
( D )One byte checksum

[67] If CTRL, ALT or SHIFT keys received from the keyboard then
( A )the keyboard status bytes are updated
( B )these keys are ignored
( C )the keyboard buffer is updated
( D )the keyboard buffer and status bytes are updated

[70] Which of the following phase switching sequences represents half-step


operation of a stepper motor?
( A )AB, BC, CA, AB ( B )A, B, C, A
( C )A, C, B, A ( D )A, AB, B, BC

[71] Which of the following is a not valid 4 step sequence of stepper motor?
( A )1100,0101,0011,1010 ( B )1001,0101,0110,1010
( C )1010,0110,0101,1100 ( D )1100,0110,0011,1001

[72] For the chip 8255, putting zero on CS, one on A0 and zero on A1 means that
( A )Control register is selected ( B )Port C is selected

[73] A stepper motor with step angle 10 degrees received the following sequence:
1100, 0110, 0011, 0011, 0000, 1111, 0011, 0110, 1100,1001, 0011 then it moves
……… degrees compared to its initial position (absolute value)
( A )2.5 ( B )Zero ( C )5 ( D )None of the other answers is correct

[74] To use parallel port for sending data it is required to


( A )Send bytes bit by bit
( B )Send lower nibble in parallel after upper nibble
( C )Send lower nibble in parallel before upper nibble

[75] Your PC virtual memory is a memory of type


( A )SRAM ( B )DRAM ( C )NVROM ( D )EEPROM

[76] One of the best instructions that you should read before the usage of any
device is the maximum voltage allowed for this device. for example, sending large
voltage to the stepper motor may burn it and make it malfunctioning therefore
we must
( A )None of the other options is correct
( B )add a motor driver or relay to solve this problem because the motor driver is used
to control the percentage between input and out voltages of the motor
( C )add a motor driver or relay to solve this problem because the motor driver is used
to increase the input voltage to the motor
( D )add a motor driver or relay to solve this problem because the motor driver is used
to reduce the input voltage to the motor

[77] Making the stepper motor step angle lower results in..... rotation accuracy
( A )Same (doesn't affect)
( B )Higher
( C )None of the other options is correct

[78] One of the main advantages of stepper motors over DC motors


( A )Precise positioning and repeatability of movement
( B )Easier to rotate and the user is able to connect it to a microcontroller and rotate
with a few commands
( C )all of the other options are valid answers
( D )It contains a stator and a rotor where the rotor is totally isolated from the stator
making it use more than 98.3% of the consumed power for movement with such a
very little power dissipation
[79] In a port mapped Io addressing mode system. If you are connecting 8255
chip to the system control bus, you should connect RD pin to
( A )MEMW
( B )IOR
( C )MEMR
( D )IOW

[80] You are designing a new door locking system. You need to add a memory
chip for this lock to save the encrypted user password on it. The user must be
able to change this password many times. You have to choose between two chips
28F256-45 and 27C256-60. Which one of them is suitable for this design?
( A )27C256-60
( B )Both of them are suitable
( C )28F256-45
( D )None of them is suitable

[81] Cache memory is a memory of type


( A )SRAM
( B )EEPROM
( C )None of the other solutions is correct

[82] Although there are many ROM types, there is one type that deserves this
name. What is that type?
( A )EPROM
( B )PROM
( C )None of the other solutions is correct
( D )Masked ROM

[83] You need to design a new fire alarm system. You need to add a non-volatile
memory to your system. You need to save just a few configuration bytes about
alert thresholds. However your main concern is about the speed of the memory
because you need fast reading speed. Which of the following is the most suitable
memory for your system?
( A )27C256-60
( B )28F256-90
( C )28F128-45
( D )None of the other answers is suitable

[84] If the keyboard buffer is full, then pressing one extra key results in
( A )the buffer is rotating, therefore it is added in place of the first pressed key
( B )the taken action for this key depends on the size of the buffer
( C )the pressed key is added instead of the last pressed key
( D )This key is simply ignored and motherboard may activate alerting buzzer

[85] To move your daily backup files from one pc to another pc you could use
( A )NVRAM
( B )None of the other solutions is correct
( C )EEPROM
( D )Flash ROM

[86] Your computer has 8 Giga memory. You added an extra memory circuit
that contains 4 chips, each one of them is 2 Giga. Your computer memory now
after adding this memory device is…..Giga
( A )16
( B )10
( C )9

[87] To detect the key press which of following is grounded?


( A )One column at a time
( B )All rows
( C )None of the other answers is correct
( D )One row at a time

[88] The data arrives from the keyboard to the processor though port number
( A )60h
( B )8255
( C )None of the other options is correct
( D )9h
[89] You are a system designer at XYZ company. You have been asked to design a
new motherboard that will be used for ABC company computers. Your design must
be kept private and it is allowed only ABC company to use your motherboard. The
owner of ABC company told you that they need you to at some sort of storage that is
used to save the name of ABC company in your motherboard before they start mass
production of your motherboard. To store their name you should use
( A )EEPROM
( B )Flash ROM
( C )None of the other solutions is correct
( D )Masked ROM

[90] You need the largest possible volatile memory while memory speed is not very
important to you. Which of the following is the most suitable memory type for you?
( A )DRAM
( B )PPRAM
( C )SRAM
( D )NVRAM

[91] DAC is an abbreviation for


( A )Demodulation and communication
( B )Data access communication
( C )Digital address coding
( D )Digital to analogue Converter

[92] Increasing the input voltage to the motor increases the


( A )Speed
( B )Torque
( C )Number of rotor teeth
( D )Accuracy

[93] ADC848 uses ... Clock


( A )Dual
( B )No
( C )External
( D )Internal

[94] You found an old keyboard that is connected to an old pc. The keyboard
jack contains five pins. One of these pins is broken. The probability of that this
keyboard keep functional without any possibility of problem due to the broken
pin is
( A )100% There will never be problem at all
( B )20%
( C )80%
( D )0% It must be replaced

[95] You have a motion detection analogue sensor that outputs five volts in case
of motion detected. In case of no motion its output is in the range between zero
and 0.5 Volts. You need to read its output using parallel port therefore you have
to
( A )Use an analogue to digital converter to convert its output signal to an eight bits
digital signal then add 8255 chip to receive the output of the ADC and send it to the
data port of the parallel port
( B )Use an analogue to digital converter to convert its output signal to an eight bits
digital signal then connect it to the data port of the parallel port
( C )Connect it to a signal divider then receive the output from this signal divider to
only two pins from the data port of the parallel port
( D )Connect it directly to one of the data port pins

[96] In memory-mapped scheme, the devices are viewed as


( A )memory locations ( B )distinct I/O devices

( C )only input devices ( D )only output devices

[97] The keyboard send the following pattern to the motherboard 01101000111
(from left to right) Meaning that
( A )a key released
( B )mouse is moved
( C )a key pressed
( D )Unknown

[98] Input port is used for the processor to


( A )To make any device connected to the processor able to read input from the
processor
( B )Install as many input devices as you can however only one device is able to
communicate with the processor at a time
( C )To make a hardware restriction over the maximum number of characters could be
received as an input from keyboard
( D )Connecting many devices to the processor to make the processor able to read data
from multiple devices at the same time

[99] You have a new robot. This robot is responsible for boxes stacking with just
one condition "each stack of boxes should not exceed six boxes and also should
not exceed seventy kilograms of weight" to control the arm of this robot you have
to connect it through an output port. To build this port you need to use
( A )Servo motor+L293D Motor driver
( B )74LS373
( C )Weight sensor
( D )Stepper motor+L293D Motor driver
100) The feature of mode 2 of 8255 is
a) single 8-bit port is available
b) only outputs are latched
c) no handshake signals available
d) all of the mentioned

101) The feature of mode 0 of the 8255 is


a) any port can be used as input or output
b) output ports are latched
c) maximum of 4 ports are available
d) all of the mentioned

102) In the I/O mode, the 8255 ports work as


a) reset pins
b) set pins
c) programmable I/O ports
d) only output ports

103) The internal schematic of a typical stepper motor has


a) 1 winding
b) 2 windings
c) 3 windings
d) 4 windings

104) All the functions of the ports of 8255 are achieved by programming the bits of an
internal register called
a) data bus control
b) read logic control
c) control register
d) none of the above

105- Assume that, a single output pin from the keypad costs 1 $ and a single input pin to the
keypad costs 3$. It is required to design a 16 buttons keypad. Which design do you prefer?

a) 16 Rows * 1 Column b) 1 Row * 16 Columns


c) 4 Rows * 4 Columns d) 2 Rows * 8 Columns e) 8 Rows * 2 Columns

106- For a 1 rows * 3 columns keypad, after detecting a key pressed. To identify the
pressed key, the microcontroller should
a) ground the first row only b) iterates grounding over all rows
c) iterates until a pressed key identified d) do nothing

107- While the printer is activating the BUSY line, the PC put data on the data bits and
activated the STROBE line. Therefore, the printer
a) stops the current printing process and b) finishes the current printing
accept the new data process, then accept the new data
c) hold the new data on the printer buffer
d) none of the above
while finishing the current process

108- The main advantage of linear address decoding over absolute address decoding is

a) Faster b) Create aliases


c) Cheaper d) More accurate

109- For a stepper motor, increasing the number of rotors increases

a) Step angle b) Motor speed


c) Movement accuracy d) None of the above

Cancelled?

110- If A1=0, A0=1 then the input read cycle is performed from

a) port A to data bus b) port B to data bus


c) port C to data bus d) CWR to data bus

111-The 8255 has three ports A, B and C meaning that maximum number of available
ports is
a)1 b)2
c)3 d)4

You might also like