0% found this document useful (0 votes)
14 views8 pages

XII Prelim II - CS-II Solution

The document is a Computer Science examination paper for XII-CS-2, covering a range of topics related to microprocessors, microcontrollers, and assembly language programming. It includes multiple-choice questions, descriptive questions, and programming tasks, with specific marks allocated for each section. The paper tests knowledge on various concepts such as memory addressing, instruction cycles, and transmission media.

Uploaded by

ak3490062
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views8 pages

XII Prelim II - CS-II Solution

The document is a Computer Science examination paper for XII-CS-2, covering a range of topics related to microprocessors, microcontrollers, and assembly language programming. It includes multiple-choice questions, descriptive questions, and programming tasks, with specific marks allocated for each section. The paper tests knowledge on various concepts such as memory addressing, instruction cycles, and transmission media.

Uploaded by

ak3490062
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

12 PREP Marks : 50

LAKSHYA
XII-CS-2-PRELIM- SUBJECT : COMPUTER SCIENCE - 2 Time (mm:ss) : 150:00
TEST (24-25) FULL SYLLABUS

Q. 1 A) Select correct options and rewrite the following : 4

1) The flag register of 8085 microprocessor contains _____ flags.

a) 8

b) 3

c) 7

d) 5

Ans 4
:

Exp 5
:

2) ANA, r instruction comes under _______ group.

a) Arithmetic

b) Logical

c) Branch

d) Data Transfer

Ans 2
:

Exp Logical
:

3) The maximum physical memory can be addressed by 80286 microprocessor is ______ .

a) 640 KB

b) 1 MB

c) 16 MB

d) 4 KB

Ans 3
:

Exp 16 MB
:
4) ______ cable uses light signals to transmit data.

a) Fiber Optic

b) Coaxial

c) UTP

d) STP

Ans 1
:

Exp Fiber Optic


:

Q. 1 B) Solve any two of the following : 6

5) Explain functions of the following pins of 8085 Microprocessor :


i) Multiplexed address/data bus pin (AD0 – AD7)
ii) RST 6.5
iii) CLK (OUT)

Exp Explanation of function of each pin (1 Mark each)


:

6) Write the addressing mode and length in bytes of the following instructions :
i) CPI 10 H
ii) MOV M,B
iii) SHLD C009 H

Exp Addressing mode of three instructions (1½ Marks)


: Length in byte of three instructions (1½ Marks)

7) Compare any three characteristics of Twisted Pair Cable with Coaxial Cable.

Exp Three difference characteristic points (3 Marks)


:

Q. 2 A) Solve any two of the following : 6

8) Define the following terms with suitable diagrams :


i) T State
ii) Machine Cycle
iii) Instruction Cycle

Exp Diagram with labeling (1½ Marks)


: Explanation of each term (1½ Marks)

9) What is Wireless Media ? Write any two advantages of Wireless Media.

Exp Definition of wireless media (1 Mark)


: Two advantages ( 2 Marks)
10) The accumulator in 8085 microprocessor contains data 71H and resister E contains data 39H. What will be
the contents of an accumulator in Hexadecimal after execution of the following instructions independently ?
i) ADD E
ii) ORA E
iii) RRC

Exp i) A = AAH (1 Mark)


: ii) Acc = 79H (1 Mark)
iii) Acc = B8H (1 Mark)

Q. 2 B) Solve any one of the following : 4

11) What is Microcontroller ? State any advanced features of 8052 microcontroller over 8051 microcontroller .

Exp Definition (1 Mark)


: Three Advanced features ( 1 Mark each)

12) What is vectored Interrupt ? State all hardware interrupts with their vectored addresses, write the priorities of
hardware interrupts.

Exp Definition (1 Mark)


: List of Hardware interrupt with address (2 Marks)
Priorities (1 Mark)

Q. 3 A) Solve any two of the following : 6

13) Write any three difference point between Memory Mapped I/O and I/O Mapped I/O Addressing Scheme.

Exp Three difference points (1 Mark each)


:

14) Explain the following instructions of 8085 Microprocessor with one example of each :
i) PUSH PSW
ii) INX rp
iii) DAD rp

Exp Explanation of each term (1½ Mark)


: Example (1½ Mark)

15) Write a short note on Modem

Exp Short note


:

Q. 3 B) Solve any one of the following : 4


16) Write any two features of following Microcontrollers :
i) 8048
ii) 8052
iii) 8031
iv) 8050

Exp Two features of each Microcontroller (½ Mark each)


:

17) What is Ethernet ? Discuss different types of Ethernet.

Exp Definition of Ethernet (1 Mark)


: Three Ethernet types (3 Marks)

Q. 4 A) Solve any two of the following : 6

18) Compare any three attributes of 80380 and 80486 Microprocessor.

Exp Three attributes of 80386 (1½ Mark)


: Three attributes of 80486 (1½ Mark)

19) Write any three instructions to make Accumulator Zero.

Exp Instructions (3 Marks)


:

20) What is Microprocessor ? List its functions.

Exp Definition of Microprocessor (1 Mark)


: Any four functions (½ Mark each)

Q. 4 B) Solve any one of the following : 4

21) Write a function of following functional units of 8085 Microprocessor :


i) Instruction Decoder
ii) General Purpose Register
iii) Data / Address Buffer
iv) Status Register

Exp Function of each unit (1 Mark each)


:

22) What is Transmission media ? Explain in short six characteristics of Transmission Media.

Exp Transmission media definition (1 Mark)


: Six characteristics (½ Marks each)

Q. 5 Solve any two of the following : 10


23) i) Write a Assembly Language Program to copy a block of data having starting address 4500 H to new location
starting from 4600 H. The length of block is stored at memory location 44FF H.
ii) Write an Assembly Language Program to add two 8-bits BCD numbers stored at memory location 4500 H
and 4501 H. Store the two byte BCD result from memory location 4502 H onwards.
iii) Write an Assembly Language Program to fill the memory locations 4500 H to 4504 with the Hexadecimal
numbers 09 H to ODH respectively.
OR

i) Write an Assembly Language Program to exchange the nibbles of 8-bit number stored in memory location
4500 H. Store the result at memory location 4501 H.
ii) A block of data is stored in memory location 4500 H. The length of block is stored in memory location
44FFH. Write an Assembly Language Program that searches for the first occurrence of data D9H in given
block. Store the address of this occurrence in H.L. pair. If the number is not found then HL pair should
contain 5000 H.
iii) A block of data is stored from memory location 4501 H and onwards. The length of the block is stored at
memory location 4500 H. Write an Assembly Language Program to find the sum of block of data. Store the
two byte result from memory location 4600 H.

Exp i)
: Label Mnemonics and Operand Comments

LXI H, 44FFH ; Set HL with 44FFH

MOV C, M ; Store count in C reg

LXI D, 4600 H ; Set DE with 4600 H

Loop In X H ; Incr. HL by I

Mov A, M ; Copy mean content to A

STA X D ; Store Acc to mean with Add of DE

INX D ; Incr. DE by 1

DCR C ; Decr. C by 1

JNZ Loop ; if then go to LOOP

HLT ; Stop

ii)
Label Mnemonics and Operand Comments

MVI B, 00 ; Store 00 in B reg.

LXI H, 4500 ; Set HL with 4500

MOV A, M ; Copy mean content to A

INX H ; Incr. HL by 1

ADD M ; Add Acc with mean

DAA ; Convert Hex to BCD

JNC next ; if cy = 0 then go to next

INR B ; incr B by 1

next STD 4502 H ; Store Acc to 4502H


MOV A, B ; Copy B to A

STA 4503H ; Store Acc to 4503H

HLT ; Stop

iii)
Label Mnemonics and Operand Comments

MVI C, 05H ; Store 05 in C reg.

MVI A, 09H ; Store 09 in Acc.

LXI H, 4500 H ; Set HL with 4500 H

Loop MOV M, A ; Copy Acc to Memory

IN X H ; Incr. HL by 1

INR A ; Incr Acc. By 1

DCR C ; Decr C by 1

JNZ Loop ; if then go to LOOP

HLT ; STOP

OR
i)
Label Mnemonics and Operand Comments

LXI H, 4500 H ; Set HL with 4500 H

MOV A, M ; Copy mem. To Acc

RRC
; Rotation right 4 time to exchange
RCC nibbles
;
RRC ;
;
RRC

STA 4501 H ; Store ACC to 4501 H

HLT ; Stop

ii)
Label Mnemonics and Operand Comments

LXI H, 44FF H ; Set HL with 44FF H

MOV C, M ; Copy mem. To C

MVI A, D9H ; Store D9 to Acc

Loop INXH ; Incr HL by

CMP M ; Compare Acc with mem.

JZ STOP ; Go to STOPO if Z = 1
DCR C ; Secr. C by 1

JNZ LOOP ; go to Loop if

LXI H, 5000 H ; Set HL with 5000 H

STOP HLT ; STOP

iii)
Label Mnemonics and Operand Comments

LXI H, 4500 H ; Set HL with 4500 H

MOV C, M ; Copy mem. To C

MVI A, OOH ; Store A with OO

MVI B, OOH ; Store B with OO

Loop INR H ; Incr. HL by 1

ADD M ; Add mem. With Acc

JNC next ; if cy = 0 go to next

INR B ; Incr. B by 1

next : DCR C ; Decr. C by 1

JNZ LOOP ; if Z = 0 go to LOOP

STA 4600 H ; Store Acc to 4600 H

MOV A, B ; Copy B to A

STA 4601 H ; Store Acc. To 4601 H

HLT ; Stop

* ALL THE BEST *

You might also like