XII Prelim II - CS-II Solution
XII Prelim II - CS-II Solution
LAKSHYA
XII-CS-2-PRELIM- SUBJECT : COMPUTER SCIENCE - 2 Time (mm:ss) : 150:00
TEST (24-25) FULL SYLLABUS
a) 8
b) 3
c) 7
d) 5
Ans 4
:
Exp 5
:
a) Arithmetic
b) Logical
c) Branch
d) Data Transfer
Ans 2
:
Exp Logical
:
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
:
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
7) Compare any three characteristics of Twisted Pair Cable with Coaxial Cable.
11) What is Microcontroller ? State any advanced features of 8052 microcontroller over 8051 microcontroller .
12) What is vectored Interrupt ? State all hardware interrupts with their vectored addresses, write the priorities of
hardware interrupts.
13) Write any three difference point between Memory Mapped I/O and I/O Mapped I/O Addressing Scheme.
14) Explain the following instructions of 8085 Microprocessor with one example of each :
i) PUSH PSW
ii) INX rp
iii) DAD rp
22) What is Transmission media ? Explain in short six characteristics of Transmission Media.
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
Loop In X H ; Incr. HL by I
INX D ; Incr. DE by 1
DCR C ; Decr. C by 1
HLT ; Stop
ii)
Label Mnemonics and Operand Comments
INX H ; Incr. HL by 1
INR B ; incr B by 1
HLT ; Stop
iii)
Label Mnemonics and Operand Comments
IN X H ; Incr. HL by 1
DCR C ; Decr C by 1
HLT ; STOP
OR
i)
Label Mnemonics and Operand Comments
RRC
; Rotation right 4 time to exchange
RCC nibbles
;
RRC ;
;
RRC
HLT ; Stop
ii)
Label Mnemonics and Operand Comments
JZ STOP ; Go to STOPO if Z = 1
DCR C ; Secr. C by 1
iii)
Label Mnemonics and Operand Comments
INR B ; Incr. B by 1
MOV A, B ; Copy B to A
HLT ; Stop