Professional Documents
Culture Documents
Dashboard
/ My courses
/ CMPN310-GR-1-Y18
/ 17 December - 23 December
/ Third Quiz
Question 1
Correct
When AT89c51 is executed RR for data "A2h”, the result will be …… in accumulator
Question 2
Correct
When AT89c51 is executed RRC for data "A=23h & C=0, the result will be
https://eng.synceg.net/mod/quiz/review.php?attempt=5523&cmid=8212 1/12
12/26/21, 12:01 AM Third Quiz: Attempt review
Question 3
Correct
14. For 4k-byte ROM size, it has number of address lines equals to---------.
a. 12-lines
b. 16-lines
c. 8-lines
d. 10-lines
Question 4
Correct
What is the content of the accumulator after this operation? MOV A,#0BH => ANL A,#2CH
a. 11011010
b. 11010111
c. 00001000
d. 00101000
Question 5
Incorrect
a. Accumulator
b. Program Counter
c. Stack pointer
d. Data pointer
https://eng.synceg.net/mod/quiz/review.php?attempt=5523&cmid=8212 2/12
12/26/21, 12:01 AM Third Quiz: Attempt review
Question 6
Incorrect
a. no relation with CY or AC
b. CY and AC are necessarily 1
c. CY is 1
d. either CY or AC is 1
Question 7
Correct
1. MOV A, @ R1 will:
The correct answer is: copy the contents of memory whose address is in R1 to the accumulator
Question 8
Correct
a. ORG 0100H
b. Djnz R1,w
c. Mov A,#ffh
d. Cjne A,#0fh,again
https://eng.synceg.net/mod/quiz/review.php?attempt=5523&cmid=8212 3/12
12/26/21, 12:01 AM Third Quiz: Attempt review
Question 9
Incorrect
6. Which rotate instruction/s has an ability to modify CY flag by moving the bit-7 & bit-0 respectively to an accumulator?
a. RL & RLC
b. RR & RL
c. RLC & RRC
d. RR & RRC
Question 10
Incorrect
1. In the AT89c51, if SP register contain 20h the instruction POP 09h is executed, so SP register ----
a. 20 h
b. 21 h
c. 1F h
d. 19 h
Question 11
Incorrect
The Central processing unit CPU integrated circuits ICs has some major units as
https://eng.synceg.net/mod/quiz/review.php?attempt=5523&cmid=8212 4/12
12/26/21, 12:01 AM Third Quiz: Attempt review
Question 12
Incorrect
12. There are 8 switches on p1 and you want to check if 2nd and 6th are on Which of the following instruction you will us:
Question 13
Correct
a. 4 Kbytes
b. 256 byte
c. 4 Mbytes
d. 4 Kbit
Question 14
Correct
11. Which operations are performed by stack pointer before its decrement phase?
a. Pop
b. All of the above
c. Push
d. Return
https://eng.synceg.net/mod/quiz/review.php?attempt=5523&cmid=8212 5/12
12/26/21, 12:01 AM Third Quiz: Attempt review
Question 15
Incorrect
a. ports
b. flash memory
c. PSW
d. RAM
Question 16
Correct
a. xch R1,A
b. XRL R2,A1H
c. All answers
d. ANL R1,A
Question 17
Incorrect
17. Which of the following commands will move the content of 18H into the accumulator?
a. MOV A, #18H
b. MOV A, 18H
c. MOV A, @18
d. MOV A, P18
https://eng.synceg.net/mod/quiz/review.php?attempt=5523&cmid=8212 6/12
12/26/21, 12:01 AM Third Quiz: Attempt review
Question 18
Correct
7. In AT89c51, the register that points to the memory location to fetch next instruction to be executed is ----------.
a. Data register DR
b. Program counter PC
c. decoder register
d. data pointer DPTR
Question 19
Incorrect
4. After resetting the AT89c51 MC, then the instruction PUSH 09h is executed, so SP register
a. 07 h
b. 06 h
c. 09 h
d. 08 h
Question 20
Correct
12. The AT89c51 can fetch instructions from either internal or external program memory by using---------
a. EA pin
b. carry flag
c. Push & pop
d. WR & RD pins
https://eng.synceg.net/mod/quiz/review.php?attempt=5523&cmid=8212 7/12
12/26/21, 12:01 AM Third Quiz: Attempt review
Question 21
Correct
a. MOVC A, @A+DPTR
b. MOVX A, @ DPTR+A
c. all answers are wrong
d. MOVX @DPTR, A
Question 22
Incorrect
a. Data Pointer
b. Stack Pointer
c. Program Counter
d. Timer Register
Question 23
Correct
15. When the microcontroller executes some arithmetic operations, then the flag bits of which register are affected?
a. PC
b. SP
c. DPTR
d. PSW
https://eng.synceg.net/mod/quiz/review.php?attempt=5523&cmid=8212 8/12
12/26/21, 12:01 AM Third Quiz: Attempt review
Question 24
Incorrect
2. Which of the following lines? AT89c51 will not executed due to an error?
a. ORG 0100H
b. Cjne A,#0fh,again
c. Mov A,#ffh
d. Djnz R1,w
Question 25
Correct
14. Which of the following instruction used to check if the value stored at 1000h have odd no of ones?
The correct answer is: Mov A,psw =>; cjne A,#01h, odd
Question 26
Correct
Which among the below mentioned subprogram represent the correct code for initializing Timer 1 in Mode 1 with interrupt as counter?
https://eng.synceg.net/mod/quiz/review.php?attempt=5523&cmid=8212 9/12
12/26/21, 12:01 AM Third Quiz: Attempt review
Question 27
Correct
1. Which among the following control when the timer1 is configured as a counter in mode’3′, with interrupt?
a. 03
b. 30
c. F0
d. 0F
Question 28
Correct
If Timer 0 is to be used as a counter, then at what particular pin clock pulse need to be applied?
a. P3.4
b. P3.5
c. P3.3
d. P3.2
Question 29
Correct
AT89C51 with 12 MHz clock frequency execute two instructions each of them needs two machine cycles after
https://eng.synceg.net/mod/quiz/review.php?attempt=5523&cmid=8212 10/12
12/26/21, 12:01 AM Third Quiz: Attempt review
Question 30
Correct
If the MSB represent signed bit which of the following instruction can used to know if the number is positive or negative
◄ Lec8
Jump to...
https://eng.synceg.net/mod/quiz/review.php?attempt=5523&cmid=8212 11/12