You are on page 1of 11

12/26/21, 12:01 AM Third Quiz: Attempt review

Dashboard
/ My courses
/ CMPN310-GR-1-Y18
/ 17 December - 23 December
/ Third Quiz

Started on Saturday, 25 December 2021, 11:00 PM


State Finished
Completed on Saturday, 25 December 2021, 11:30 PM
Time taken 30 mins 12 secs
Grade 19.00 out of 30.00 (63%)

Question 1

Correct

Mark 1.00 out of 1.00

When AT89c51 is executed RR for data "A2h”, the result will be …… in accumulator

a. all answers are wrong


b. 16h
c. 53h
d. 51h 

The correct answer is: 51h

Question 2

Correct

Mark 1.00 out of 1.00

When AT89c51 is executed RRC for data "A=23h & C=0, the result will be

a. 11h & C=1 


b. 16h & C=0
c. all answers are wrong
d. A=51h & C=1

The correct answer is: 11h & C=1

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

Mark 1.00 out of 1.00

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

The correct answer is: 12-lines

Question 4

Correct

Mark 1.00 out of 1.00

What is the content of the accumulator after this operation? MOV A,#0BH => ANL A,#2CH

a. 11011010
b. 11010111
c. 00001000 
d. 00101000

The correct answer is: 00001000

Question 5

Incorrect

Mark 0.00 out of 1.00

Register that is loaded with the address of external ROM is

a. Accumulator 
b. Program Counter
c. Stack pointer
d. Data pointer

The correct answer is: 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

Mark 0.00 out of 1.00

7. DA A command adds 6 to the nibble if:

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

The correct answer is: either CY or AC is 1

Question 7

Correct

Mark 1.00 out of 1.00

1. MOV A, @ R1 will:

a. copy the accumulator to R1


b. copy the accumulator to the contents of memory whose address is in R1
c. copy the contents of memory whose address is in R1 to the accumulator 
d. copy R1 to the accumulator

The correct answer is: copy the contents of memory whose address is in R1 to the accumulator

Question 8

Correct

Mark 1.00 out of 1.00

1. Which of the following lines? AT89c51 will not executed?

a. ORG 0100H 
b. Djnz R1,w
c. Mov A,#ffh
d. Cjne A,#0fh,again

The correct answer is: ORG 0100H

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

Mark 0.00 out of 1.00

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

The correct answer is: RLC & RRC

Question 10

Incorrect

Mark 0.00 out of 1.00

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 

The correct answer is: 1F h

Question 11

Incorrect

Mark 0.00 out of 1.00

The Central processing unit CPU integrated circuits ICs has some major units as

a. Arithmetic Logic Unit (ALU)


b. Control Unit (CU) 
c. all the previous
d. Registers

The correct answer is: all the previous

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

Mark 0.00 out of 1.00

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:

a. CJNE P1,#DDh, sw_on

b. CJNE P1,#62h, sw_on


c. JB P1.2,P1.6 
d. CJNE A,#22h, sw_on

The correct answer is: CJNE P1,#DDh, sw_on

Question 13

Correct

Mark 1.00 out of 1.00

11. The AT89c51 has internal RAM with capacity---------

a. 4 Kbytes
b. 256 byte 
c. 4 Mbytes
d. 4 Kbit

The correct answer is: 256 byte

Question 14

Correct

Mark 1.00 out of 1.00

11. Which operations are performed by stack pointer before its decrement phase?

a. Pop 
b. All of the above
c. Push
d. Return

The correct answer is: Pop

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

Mark 0.00 out of 1.00

After resetting the AT89c51, the-----------will be loaded by 0000h.

a. ports 
b. flash memory
c. PSW
d. RAM

The correct answer is: PSW

Question 16

Correct

Mark 1.00 out of 1.00

Which of the following is illegal?

a. xch R1,A

b. XRL R2,A1H

c. All answers

d. ANL R1,A

Your answer is correct.


The correct answer is:
All answers

Question 17

Incorrect

Mark 0.00 out of 1.00

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

The correct answer is: MOV A, 18H

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

Mark 1.00 out of 1.00

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

The correct answer is: Program counter PC

Question 19

Incorrect

Mark 0.00 out of 1.00

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 

The correct answer is: 07 h

Question 20

Correct

Mark 1.00 out of 1.00

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

The correct answer is: EA pin

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

Mark 1.00 out of 1.00

To write data into AT89c51 external ROM, we shall use instruction

a. MOVC A, @A+DPTR
b. MOVX A, @ DPTR+A
c. all answers are wrong 
d. MOVX @DPTR, A

The correct answer is: all answers are wrong

Question 22

Incorrect

Mark 0.00 out of 1.00

12. Which is the only register without internal RAM address?

a. Data Pointer
b. Stack Pointer
c. Program Counter
d. Timer Register 

The correct answer is: Program Counter

Question 23

Correct

Mark 1.00 out of 1.00

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 

The correct answer is: 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

Mark 0.00 out of 1.00

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

The correct answer is: Mov A,#ffh

Question 25

Correct

Mark 1.00 out of 1.00

14. Which of the following instruction used to check if the value stored at 1000h have odd no of ones?

a. Mov A,psw =>; cjne A,#11011011,x


b. Mov A,p1 =>; djnz A,A01h, odd
c. Mov A,psw =>; cjne A,#01h, odd 
d. Mov A,psw =>; cjne A,#10h,z

The correct answer is: Mov A,psw =>; cjne A,#01h, odd

Question 26

Correct

Mark 1.00 out of 1.00

Which among the below mentioned subprogram represent the correct code for initializing Timer 1 in Mode 1 with interrupt as counter?

a. MOV TMOD, # 20H


b. MOV TMOD, # D0H 
c. MOV TMOD, # 02H
d. MOV TMOD, # 50H

The correct answer is: MOV TMOD, # D0H

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

Mark 1.00 out of 1.00

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

The correct answer is: F0

Question 28

Correct

Mark 1.00 out of 1.00

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

The correct answer is: P3.4

Question 29

Correct

Mark 1.00 out of 1.00

AT89C51 with 12 MHz clock frequency execute two instructions each of them needs two machine cycles after

a. all answers are wrong


b. 4 µsec 
c. 4 msec
d. 12 µsec

The correct answer is: 4 µsec

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

Mark 1.00 out of 1.00

If the MSB represent signed bit which of the following instruction can used to know if the number is positive or negative

a. Mov A,C => Jb p0.7,signed


b. Cjne A,psw,signed
c. RLC A => Jc signed 
d. Mov A,psw=> jb p1.7,signed

The correct answer is: RLC A => Jc signed

◄ Lec8

Jump to...

https://eng.synceg.net/mod/quiz/review.php?attempt=5523&cmid=8212 11/12

You might also like