Question 1 |
A single instruction to clear the lower four bits of the accumulator in 8085 assembly language?
XRI 0FH | |
ANI F0H | |
XRI F0H | |
ANI 0FH |
Question 1 Explanation:
Question 2 |
Which of the following statements is true?
ROM is a Read/Write memory | |
PC points to the last instruction that was executed | |
Stack works on the principle of LIFO | |
All instructions affect the flags |
Question 2 Explanation:
Question 3 |
In a vectored interrupt:
The branch address is assigned to a fixed location in memory | |
The interrupting source supplies the branch information to the processor through an interrupt vector | |
The branch address is obtained from a register in the processor | |
None of the above |
Question 3 Explanation:
Question 4 |
In the following Pascal program segment, what is the value of X after the execution of the program segment?
X := -10; Y := 20;
If X > Y then if X < 0 then X := abs(X) else X := 2*X;
10 | |
-20 | |
-10 | |
None |
Question 4 Explanation:
Question 5 |
Merge sort uses:
Divide and conquer strategy | |
Backtracking approach | |
Heuristic search | |
Greedy approach |
Question 5 Explanation:
There are 5 questions to complete.