Boolean Variable Manipulation Instructions in MCS-51 - MCQs with Answers

Boolean Variable Manipulation Instructions in MCS-51 - MCQs with Answers


Q1. Match the following :

A. JC rel ---------------- 1. Jump if direct bit is set & clear bit
B. JNC rel -------------- 2. Jump if direct bit is set
C. JB bit, rel ----------- 3. Jump if direct bit is not set
D. JBC bit ,rel ---------- 4. Jump if carry is set
E. JNB bit,rel ----------- 5. Jump if carry is not set


Codes :
a. A-3, B-2, C-1, D-4, E-5
b. A-5, B-2, C-4, D-1, E-3
c. A-5, B-4, C-3, D-2, E-1
d. A-4, B-5, C-2, D-1, E-3

View Answer / Hide Answer

ANSWER: d. A-4, B-5, C-2, D-1, E-3



Q2. What is the possible range of transfer control for 8-bit relative address especially in 2's complement form with respect to the first byte of preceding instruction ?

a. -115 to 132 bytes
b. -130 to 132 bytes
c. -128 to 127 bytes
d. -115 to 127 bytes

View Answer / Hide Answer

ANSWER: c. -128 to 127 bytes


Post your comment