micro 2 questions (1)
micro 2 questions (1)
a) 3
b)6
c) 9
c) Memory mapped IO uses different address spaces for memory and I/O devices
a) 1
b) 2
c) 3.24
d) 360
a) Parity bit
b) Check sum
c) CRC
a) Greater than
b) Lower than
c) The same as
a) DMA
b) Interrupt controller
a) electrical quantity
b) analog quantity
c) digital quantity
a) Synchronous
b) Asynchronous
c) Semi-synchronous
11) For a 3 * 4 keypad [3 rows and 4 columns] if the column port reads 0000 which of the following is
correct
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
( A )3 ( B )12 ( C )1 ( D )4
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?
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
( B )In full-step two phases are on and in half-step only one phase is on.
( B )Address-data-control buses
21) To solve cache coherence problem of the 8237A-5 chip you could use
( B )Hardware invalidation
( C )Software invalidation
23) The higher the memory access time, the …. the memory chip
( 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
( 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
( A )You can use pin 15 that is used for out of paper or jammed paper error to be activated if the sensor
( 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
( 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
( 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
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
30) Instead of a four winding stepper motor, you decided to use a six winding stepper motor with six
( 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
( 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
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
35) The main difference between 1:1 interleaving and 3:1 interleaving is that
( B )3:1 interleaving is three times faster than 1:1 interleaving therefore it is used only with fast hard disk
controllers
36) A stepper motor having a resolution of 300 steps/rev and running at 2400 rpm has steps / second
38) To solve some of the hard contact keyboards problem a new method is used for receiving pressed
( 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
( 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
41) If you have more than the maximum number of devices that could be connected to 8237A-5, it is
better to
( C )It is not allowed by any way to add more devices because it is hardware limitation
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
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
( 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
48) How many rotations are required for 4:1 interleaving track to access all sectors?
a) 1 b) 2 c) 4 d) 16
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
53) A motor with 180 steps per revolution has a step angle
a) 1 b) 2 c) 3.24 d) 180
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?
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
[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
[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
[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
[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
[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
[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
[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
[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
[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
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?
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
Cancelled?
110- If A1=0, A0=1 then the input read cycle is performed from
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