Select Page
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages
Filter by Categories
nmims post
Objective Type Set
Online MCQ Assignment
Question Solution
Solved Question
Uncategorized

1. Which of the following steps detects the key in a 4*4 keyboard matrix about the key that is being pressed?
b) ensuring that initially all keys are open
c) checking that whether the key is actually pressed or not
d) all of the mentioned

Answer: d [Reason:] For detecting that whether the key is actually pressed or not, firstly this must be ensured that initially all the keys are closed. Then we need to mask the bits individually to detect that which key is pressed. Then we need to check that is the key actually pressed or not, by checking that whether the key pressed for a time more that 20 micro seconds.

2. What is described by this command: CJNE A,#00001111b, ROW1
b) it makes the value of the accumulator 0FH and then jumps at the address where ROW1 label is written
c) it compares the value of the accumulator with 0FH and jumps to the location where ROW1 label is there, if the value becomes equal
d) it compares the value of the accumulator with 0FH and jumps to the location where ROW1 label is there, if the value is not equal

Answer: d [Reason:] This particular command CJNE A,#00001111b, ROW1 compares the value of the accumulator with OFH and jumps to ROW1 address if the value is not equal.

3. To detect that in which column, the key is placed?
a) we can mask the bits and then check it
b) we can rotate the bits and then check that particular bit which is set or reset(according to the particular condition)
c) none of the mentioned
d) both of the mentioned

Answer: d [Reason:] We can mask or we can even rotate the bits to check that particularly in which column is the key placed.

4. In reading the columns of a matrix, if no key is pressed we should get all in binary notation
a) 0
b) 1
c) F
d) 7

Answer: b [Reason:] If no key is pressed, then all the keys show 1 as they are all connected to power supply.

5. If we need to operate a key of a keyboard in an interrupt mode, then it will generate what kind of interrupt?
a) ES
b) EX0/EX1
c) T0/T1
d) RESET

Answer: b [Reason:] If a key is to operate in an interrupt mode, than it will generate an external hardware interrupt.

6. To identify that which key is being pressed, we need to:
a) ground all the pins of the port at a time.
b) ground pins of the port one at a time
c) connect all the pins of the port to the main supply at a time.
d) none of the mentioned

Answer: b [Reason:] To detect that which key is being pressed, we need to ground the pins one by one.

7. Key press detection and Key identification are:
a) the same processes
b) two different works done in Keyboard Interfacing
c) none of the mentioned
d) any of the mentioned