← Back to 6. Programming of 8085

πŸ“ Programs to arrange series in 8085 Microprocessor

πŸ“– From An Introduction To Microprocessor 8085 β€’ 6. Programming of 8085 β€’ 15 questions available

Practice MCQs for Programs to arrange series in 8085 Microprocessor. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

πŸ”„ Last updated: 2026-07-30

4
Easy Questions
6
Medium Questions
5
Hard Questions

πŸ“ Sample Questions

Q1. An array of five unsigned bytes is stored beginning at memory address 2500H. Which sequence of 8085 instructions will correctly sort the array in ascending order using a simple bubble‑sort method?

πŸ”Ή A. LDA 2500H; MOV B,A; INX H; CMP M; JNC SKIP; XCHG; STA 2500H; SKIP: INX H; DCR C; JNZ LOOP
πŸ”Ή B. MVI A,00H; MOV B,A; LXI H,2500H; MOV A,M; CMP M+1; JC SWAP; INX H; DCR B; JNZ LOOP
πŸ”Ή C. LXI H,2500H; MVI B,05H; DCR B; MOV A,M; CMP M+1; JC NEXT; XCHG; STA M; NEXT: INX H; DCR B; JNZ LOOP
πŸ”Ή D. LDA 2500H; CMA; STA 2501H; INX H; DCR B; JNZ LOOP

πŸ’‘ Difficulty: easy | βœ… Correct: A

Q2. A programmer wants to sort ten 8‑bit numbers stored from 2500H to 2509H in ascending order using insertion sort. Which register pair is best suited to hold the temporary key value during the inner loop?

πŸ”Ή A. HL
πŸ”Ή B. DE
πŸ”Ή C. BC
πŸ”Ή D. AF

πŸ’‘ Difficulty: medium | βœ… Correct: C

Q3. In a program that sorts numbers stored consecutively in memory, which flag condition indicates that the value in the accumulator is greater than the value in the memory location being compared?

πŸ”Ή A. Carry flag set
πŸ”Ή B. Zero flag set
πŸ”Ή C. Sign flag set
πŸ”Ή D. Parity flag set

πŸ’‘ Difficulty: hard | βœ… Correct: A

⬆️ View all questions in the quiz below

πŸ”— Related Topics

πŸ“ Simple Programs in 8085 MicroprocessorπŸ“ BCD to Binary Conversion in 8085 MicroprocessorπŸ“ Binary to BCD (Unpacked) Conversion in 8085 MicroprocessorπŸ“ Binary to ASCII Conversion in 8085 MicroprocessorπŸ“ ASCII to Binary Conversion in 8085 Microprocessor
πŸš€ Start Quiz πŸ“ Practice Mode