12th Computer Science Practical Question Papers 1&2
12th Computer Science Practical Question Papers 1&2
Experiment No. 1
A) Write a program in C++ that exchange data (Call by Value) using SWAP function
i.e. void swap( int, int)to interchange the given two numbers. 15
B) Enter the program and verify proper execution of the same on the computer. 10
C) Obtain a hardcopy of the program listing as well as output. The output must list the
given numbers before as well as after swapping. 05
// call by value
#include<iostream.h>
#include<conio.h>
void main ()
{
clrscr();
int a,b;
void swap(int,int);
cout<<"enter the value of two numbers:";
cin>>a>>b;
Experiment No. 2
A) Write a program in C++ that exchange data (Call by Reference) using SWAP
function void swap( int *, int *)to interchange the given two numbers. 15
B) Enter the program and verify proper execution of the same on the computer. 10
C) Obtain a hardcopy of the program listing as well as output. The output must list the
given numbers before as well as after swapping. 05
cout<<"before A="<<a<<"b="<<b<<endl;
swap(& a,& b);
cout<<"after A="<<a<<"b="<<b<<endl;
getch();
}
void swap(int*x,int*y)
{
int temp;
temp=*x;
*x=*y;
*y=temp;
}
enter the value of two numbers:55
66
before A=55b=66
after A=66b=55
MAHARASHTRA STATE BOARD OF SECONDARY AND
HIGHER SECONDARY EDUCATION – PUNE
Computer Science - D93 (Paper – I)
H.S.C. Board Practical Examination: 2017-2018
Centre: ___________________________ Jr. College No.: ____________
Time: 7.30 am Batch: Date: /02/2018
-===============================================================================================================================================================================================================================================================================
Experiment No. 3
A) Write a program in C++, that first initializes an array of given 10 integer numbers.
The program must verify whether a given element belongs this array or not, using
LINEAR SEARCH technique. The element (to be search) is to be entered at the
time of execution. If the number is found, the program should print” The Number is
Found” otherwise it should print “The number is not Found”. 15
B) Enter the program and verify proper execution of the same on the computer. 10
C) Obtain a hardcopy of the program listing as well as output. 05
//LINEAR SEARCH//
#include<iostream.h>
#include<conio.h>
void main ()
{
clrscr();
int num[10],n;
cout<<"enter the 10 numbers for the array."<<endl;
for(int i=0;i<10;i++)
cin>>num[i];
cout<<"enter the number for linear search:";
cin>>n;
for(i=0;i<=10;i++)
{
if(num[i]==n)
{
cout<<"the number is present search successful at position"<<i+1<<endl;
break;
}
}
if (i==10)
cout<<"the number is absent search unsuccessful"<<endl;
getch();
Experiment No. 4
//Binary search//
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a[10],n,i,x,beg,end,mid;
cout<<"enter number of array elements"<<endl;
cin>>n;
beg=0;
end=n-1;
mid=(beg+end)/2;
cout<<"enter the elements"<<endl;
for(i=0;i<n;i++)
cin>>a[i];
cout<<"enter element to be search";
cin>>x;
while(a[mid]!=x&&beg<=end)
{
if(a[mid]>x)
end=mid-1;
beg=mid+1;
mid=(beg+end)/2;
}
if(a[mid]==x)
cout<<"element is present at position"<<mid+1;
else
cout<<"search unsuccessfull";
getch();
}
Experiment No. 5
A) Write a program in C++, that first initializes an array of given 10 integer numbers.
The program must sort numbers in Ascending/Descending order using BUBBLE
SORT method. It should print the given list of numbers as well as the sorted list. 15
B) Enter the program and verify proper execution of the same on the computer. 10
C) Obtain a hardcopy of the program listing as well as output. 05
//Bubble sort//
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int i,j,t,sort[10];
cout<<"enter the array element";
for(i=0; i<10;i++)
{
cin>>sort[i];
}
for(i=0;i<10;i++)
{
for(j=10;j>0;j--)
{
if(sort[j-1]>sort[j])
{
t=sort[j-1];
sort[j-1]=sort[j];
sort[j]=t;
}
}
}
cout<<"sorted array is-"<<endl;
for(i=0;i<10;i++)
{
cout<<sort[i]<<endl;
}
getch();
}
enter the array element10
2 5 3 8 25 14 57 25 147 10
sorted array is-
2
3
5
8
10
14
25
25
57
147
MAHARASHTRA STATE BOARD OF SECONDARY AND
HIGHER SECONDARY EDUCATION – PUNE
Computer Science - D93 (Paper – I)
H.S.C. Board Practical Examination: 2017-2018
Centre: ___________________________ Jr. College No. 01.____________
Time: 7.30 am Batch: Date: /02/2018
-===============================================================================================================================================================================================================================================================================
Experiment No. 6
A) Write a program in C++, that first initializes an array of given 5 integer numbers.
The program should perform summation of array elements using POINTER. 15
B) Enter the program and verify proper execution of the same on the computer. 10
C) Obtain a hardcopy of the program listing as well as output 05
//sum of array
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int num[5],i,*p,sum=0;
cout<<"enter array elements:=\n";
for(i=0;i<5;i++)
cin>>num[i];
p=num;
for(i=100;i<105;i++,p++)
{
sum=sum+*p;
}
cout<<"the sum of array is "<<sum;
getch();
}
Experiment No. 7
Experiment No. 8
//Demonstrating inheritance//
#include<iostream.h>
#include<conio.h>
class student
{
private:
float rollno;
public:
float p,c,m,b,e;
void getdata()
{
cout<<"enter the marks of 5 subjects:-";
cin>>p>>c>>m>>b>>e;
}
};
void result::disdata()
{
getdata();
total=p+c+m+b+e;
per=total/500*100;
cout<<"total::"<<total<<"percentage::"<<per;
}
void main()
{
clrscr();
class result zl;
zl.disdata();
getch();
}
enter the marks of 5 subjects:-
95
96
94
93
92
total::470
percentage::94
MAHARASHTRA STATE BOARD OF SECONDARY AND
HIGHER SECONDARY EDUCATION – PUNE
Computer Science - D93 (Paper – I)
H.S.C. Board Practical Examination: 2017-2018
Centre: ___________________________ Jr. College No.: ____________
Time: 7.30 am Batch: Date: /02/2018
-===============================================================================================================================================================================================================================================================================
Experiment No. 9
//friend function
#include<iostream.h>
#include<conio.h>
class abc;//forward declaration
class xyz
{
private:
int x;
public:
void setvalue(int i)
{
x=i;
}
friend void max(xyz,abc);
};
class abc
{
private:
int a;
public:
void setvalue(int i)
{
a=i;
}
friend void max(xyz,abc);
};
greatest number is 20
MAHARASHTRA STATE BOARD OF SECONDARY AND
HIGHER SECONDARY EDUCATION – PUNE
Computer Science - D93 (Paper – I)
H.S.C. Board Practical Examination: 2017-2018
Centre: ___________________________ Jr. College No.: ____________
Time: 7.30 am Batch: Date: /02/2018
-===============================================================================================================================================================================================================================================================================
Experiment No. 10
//functional overloading//
#include<iostream.h>
#include<conio.h>
class ex
{
public:
void calc(int x,int y);
void calc(float a,float b);
};
void ex::calc(int x,int y)
{
int total;
total=x+y;
cout<<"\ntotal="<<total;
}
void ex::calc(float a,float b)
{
float sub;
sub=a-b;
cout<<"\nsub="<<sub;
}
void main()
{
ex ob;
clrscr();
int x,y;
float a,b;
cout<<"enter the value for x and y";
cin>>x>>y;
cout<<"enter the value for a and b";
cin>>a>>b;
ob.calc(a,b);
getch();
}
Experiment No. 11
Page1.html : Page1.html :
<HTML> <HTML>
<HEAD> <TITLE> THIS IS SECOND PAGE</TITLE>
<TITLE>PROGRAM NO.10</TITLE> <bodybgcolor="YELLOW">
</HEAD> <B>Vision and mission</B>
<BODY BGCOLOR="YELLOW"TEXT="GREEN"> <P>To Become one of the best education in the country
<H1 ALIGN="CENTER">B.G.E SOCIETY</H1> aspiring for national recognition of excillience through
<H2 ALIGN="CENTER">Universal College of teachinglearning research and extension in the field of
Science</H2> science and technology.</P>
<HR>
<CENTER>VISIT TO <A <TABLE>
HERF="http://www.unicollege.com" <CAPTION>DEPARTMENT OF COMPUTER
>R.L.T COLLEGE</A></CENTER> SCIENCE</CAPTION>
<HR> <TR>
<H4 ALIGN="CENTER">CIVIL LINE ROAD, NEAR <TH>SR NO.</TH>
ARTS COLLEGE AKOLA <TH>TEACHING AND NON TEACHING
<BR>PIN CODE=444001<BR>INDIA STAFF</TH>
(MAHARASHTRA)</H4> <TH>QUALIFICATION</TH>
<H3 ALIGN="LEFT">COURSES AVAILABLE</H3> <TH>DESIGNAITION</TH>
<UL> <TH>COLLEGE</TH></TR>
<LI>COMPUTER SCIENCE <TR>
<LI>ELECTRONICS <TD>1</TD>
<LI>F.W.F.C <TD>MR. R G CHAVAN</TD>
<LI>I.T <TD>MSc.(Electronic)</TD>
<LI>GENERAL SCIENCE <TD>H.O.D Incharge</TD>
</UL> <TD>Sr. College</TD></TR>
</UL> <TR><TD>2</TD>
<H3 ALIGN="LEFT">FACILITIES</H2> <TD>MRS R.S CHANDAK</TD>
<UL> <TD> MSc.(COMPUTER SCIENCE)</TD>
<LI>QUALIFIED STAFF <TD>LECT. OR FIX PAY</TD>
<LI>WELL MAINTAINED COMPUTER LAB <TD> Sr.College</TD></TR>
<LI>CHEMISTRY LAB <TR>
<LI>PHYSICS LAB <TD>3</TD>
<LI>WELL EQUIPIED CANTEEN <TD>MRS. V M VIBHUTE</TD>
<LI>WELL DEVELOPED LIBRARY <TD>MSc.(COMP SCI)</TD>
<LI>AUDITORIUM FOR SPECIAL PROGRAM <TD> CHB</TD>
<LI>BEST TEACHER STAFF <TD>Sr.College</TD></TR>
<LI>BEST RESULT IN MAHARASHTRA <TR>
<LI>BOXING RING <TD>4</TD>
<LI>BOTINICAL GARDEN <TD>MRS M.D.KHETAN</TD>
<LI>RESEARCH LAB <TD>MSc.(INF.TEC)</TD>
<LI>COMPUTER LAB <TD>CHB</TD>
<LI>WIFI CAMPUS <TD>Sr.College</TD></TR>
</OL> </TABLE>
<LI> </BODY>
<A HREF=file:C:\Documents and Settings\Dell </HTML>
3\Desktop/college1.html
CLICK HERE</A>
</BODY>
</HTML>
MAHARASHTRA STATE BOARD OF SECONDARY AND
HIGHER SECONDARY EDUCATION – PUNE
Computer Science - D93 (Paper – I)
H.S.C. Board Practical Examination: 2017-2018
Centre: ___________________________ Jr. College No.: ____________
Time: 7.30 am Batch: Date: /02/2018
-===============================================================================================================================================================================================================================================================================
Experiment No. 12
Page1.html : Page1.html :
<HTML><HEAD>
<TITLE>TOURITS LEAFLET</TITLE></HEAD><BODY <html>
BG COLOR="ORANGE"> <head>
<B><CENTER><BIG>PRAKASH <title>Maharashtra State</title>
TOURISM<BR>TOURIST LEAFLET FOR </head>
AURANGABAD </BIG></CENTER></B> <body bgcolor="aqua" text="red" link="black">
<OL?<LI>MODES OF TRANSPORT</LI><UL> <center><b>Welcome to official website
<LI>BY ROAD-ABOUT 350KM FROM MUMBAI .ONE of<br><u>Maharashtra</u></b></center>
CAN USE TAXIESOR <center><b>Maharashtra State</b></center>
BUSES TO REACH</LI> <p>Maharashtra is the state in the western region of
<LI>BY RAIL-MANY TRAINS ARE AVAILABLE FROM India. Literally the word Maharashtra is derived
MUMBAI TO A'BAD</LI> from
<LI>BY AIR-MANY TYPES OF FLIGHTS ARE the sanskrit words i.e. Maha means "The Great" and
AVAILABLE AT VARIOUS Rashtra means "Nation".Thus the meaning of
TIMINIGS</LI></UL><LI>ACCOMODATION</LI><UL> Maharashtra is
<LI>BEING A BIG CITY THERE ARE ALL TYPES OF "The Great Nation".Munbai is the capital of the
HOTELS AVAILABLE FOR ALL TYPESOF state. Marathi is the mother tounge of this state,who
POCKETS</LI></UL> are knows as Marathas or Maharashtrians.</p>
<LI>MAJOR ATTRACTION</LI><UL> <h1 align left>General info. of Maharashtra</h1>
<LI>AURANGABAD IS A HISTORICAL CITY THUS <ol type="1">
MANY PLACES HERE ARE OF <li>Country: India
HISTORICAL IMPORTANCE</LI> <li>State: Maharashtra
<LI>FORT OF DAULATABAD</LI> <li>Established: 1 May 1960 (Maharashtra Day)
<LI>AJANTA & ELLORA CAVES</LI> <li>Location: Western region of India
<LI>BIBI KA MAUBARA</LI></UL> <li>Capital: Mumbai
<LI>SPECIAL ATTRACTION<LI><UL> <li>Capital of tourism: Aurangabad
<LI>MANY PEOPLE FROM WHOLE WORLD COME <li>Time to visit: Sep to Apr(Cost), Jun to Sep(Hill
HERE TO SEE THE ANCIENT stations)
CAVES OF AJANTA & ELLORA</LI> <li>Language: Marathi, Hindi, English,Urdu
<LI>THE BIBI KA MQUBARA IS AN ALMOST <li>Population: 11,23,72,972
REPLICA OF THE MAGNIFICENT <li>Area: 3,07,713 km.sq.
MOGHUL ARTIFACT THE TAJ <li>Area rank: Third
MAHAL</LI></UL></OL><PRE> <li>Literacy: 82.9%
WE WOULD ALL OF YOU TO COME HERE TO VISIT <li>Industrial output: 15%
THE BEAUTIFUL AND ANCIENT <li>Forest area: 17% of total area of state
AND <BR>HISTORICAL IMPORTANT CITY <li>Crops; Cotton, Soya, Wheat, Rice, Oilseads
AURANGABAD AND GET LOST IN ITS <li>Rivers: Krishna, Godavari, Purna
BEAUTY</PRE></BODY></HTML> <li>Official language: Marathi
<li>Website: www.maharashtra.gov.in
</ol>
</body>
</html>
MAHARASHTRA STATE BOARD OF SECONDARY AND
HIGHER SECONDARY EDUCATION – PUNE
Computer Science D9 (Paper – II)
H.S.C. Board Practical Examination: 2017-2018
Centre: ___________________________ Jr. College No.: ____________
Time: 7.30 am Batch: Date: /02/2018
-===============================================================================================================================================================================================================================================================================
Experiment No. 1
Experiment No. 1
Experiment No. 1
Experiment No. 2
Experiment No. 2
Experiment No. 2
Experiment No. 3
Experiment No. 4
A) Write a program that DIVIDES two 1 byte hex number where the dividend is
stored in _________ and the divisor is stored in _________. Store the quotient and
the remainder in the next consecutive memory locations respectively. 20
A) Enter the program on the microprocessor kit. 05
B) Execute the program. Write the contents of data memory locations before and after
execution as well as the contents of the registers used in the program after execution
and also the bit contents of all five flags individually. Verify the results. 05
Experiment No. 11
A) A block of data is stored in memory locations from _____. The length of the block
is stored at ________. Write a program that TRANSFERS the entire block data to
the new location starting at_______. 20
B) Enter the program on the microprocessor kit. 05
C) Execute the program. Write the contents of data memory locations before and after
execution as well as the contents of the registers used in the program after execution
and also the bit contents of all five flags individually. Verify the results. 05
HIGHER SECONDARY EDUCATION – PUNE
Computer Science D9 (Paper – II)
H.S.C. Board Practical Examination: 2017-2018
Centre: ___________________________ Jr. College No.: ____________
Time: 7.30 am Batch: Date: /02/2018
-===============================================================================================================================================================================================================================================================================
Experiment No. 11
D) A block of data is stored in memory locations from _____. The length of the block
is stored at ________. Write a program that TRANSFERS the entire block data to
the new location starting at_______. 20
E) Enter the program on the microprocessor kit. 05
F) Execute the program. Write the contents of data memory locations before and after
execution as well as the contents of the registers used in the program after execution
and also the bit contents of all five flags individually. Verify the results. 05
Experiment No. 11
G) A block of data is stored in memory locations from _____. The length of the block
is stored at ________. Write a program that TRANSFERS the entire block data to
the new location starting at_______. 20
H) Enter the program on the microprocessor kit. 05
I) Execute the program. Write the contents of data memory locations before and after
execution as well as the contents of the registers used in the program after execution
and also the bit contents of all five flags individually. Verify the results. 05
Experiment No. 13
A) A block of data is stored in memory locations from _____. The length of the block
is stored at ________. Write a program that TRANSFERS the entire block data to
the new location in REVERSE ORDER starting at_______. 20
B) Enter the program on the microprocessor kit. 05
C) Execute the program. Write the contents of data memory locations before and after
execution as well as the contents of the registers used in the program after execution
and also the bit contents of all five flags individually. Verify the results. 05
HIGHER SECONDARY EDUCATION – PUNE
Computer Science D9 (Paper – II)
H.S.C. Board Practical Examination: 2017-2018
Centre: ___________________________ Jr. College No.: ____________
Time: 7.30 am Batch: Date: /02/2018
-===============================================================================================================================================================================================================================================================================
Experiment No. 11
J) A block of data is stored in memory locations from _____. The length of the block
is stored at ________. Write a program that TRANSFERS the entire block data to
the new location starting at_______. 20
K) Enter the program on the microprocessor kit. 05
L) Execute the program. Write the contents of data memory locations before and after
execution as well as the contents of the registers used in the program after execution
and also the bit contents of all five flags individually. Verify the results. 05
Experiment No. 11
M) A block of data is stored in memory locations from _____. The length of the block
is stored at ________. Write a program that TRANSFERS the entire block data to
the new location starting at_______. 20
N) Enter the program on the microprocessor kit. 05
O) Execute the program. Write the contents of data memory locations before and after
execution as well as the contents of the registers used in the program after execution
and also the bit contents of all five flags individually. Verify the results. 05
Experiment No. 5
Experiment No. 6
Experiment No. 7
A) A block of data is stored in memory locations from _____. The length of the block
is stored at ________. Write a program that counts the OCCURRENCE of the
number ____ in the given block. Storethe result in ______. 20
B) Enter the program on the microprocessor kit. 05
C) Execute the program. Write the contents of data memory locations before and after
execution as well as the contents of the registers used in the program after execution
and also the bit contents of all five flags individually. Verify the results. 05
Experiment No. 8
A) A block of data is stored in memory locations from _____. The length of the block
is stored at ________. Write a program that counts the EVEN or ODD of the
numbers in the given block. Storethe result in ______. 20
B) Enter the program on the microprocessor kit. 05
C) Execute the program. Write the contents of data memory locations before and after
execution as well as the contents of the registers used in the program after execution
and also the bit contents of all five flags individually. Verify the results. 05
MAHARASHTRA STATE BOARD OF SECONDARY AND
HIGHER SECONDARY EDUCATION – PUNE
Computer Science D9 (Paper – II)
H.S.C. Board Practical Examination: 2017-2018
Centre: ___________________________ Jr. College No.: ____________
Time: 7.30 am Batch: Date: /02/2018
-===============================================================================================================================================================================================================================================================================
Experiment No. 9
A) A block of data is stored in memory locations from _____. The length of the block
is stored at ________. Write a program that searches for the FIRST
OCCURRENCE of the data byte ____ in the given block. Store the address of this
occurrence in the HL pair. If number is not found, then HL pair must containsAA. 20
B) Enter the program on the microprocessor kit. 05
C) Execute the program. Write the contents of data memory locations before and after
execution as well as the contents of the registers used in the program after execution
and also the bit contents of all five flags individually. Verify the results. 05
Experiment No. 10
A) A block of data is stored in memory locations from _____. The length of the block
is stored at ________. Write a program that performs ADDITION of given
BLOCK of data. UseB register to store any carry generated during the addition of
bytes. Storethe result at two consecutive memory locations. 20
B) Enter the program on the microprocessor kit. 05
C) Execute the program. Write the contents of data memory locations before and after
execution as well as the contents of the registers used in the program after execution
and also the bit contents of all five flags individually. Verify the results. 05
Experiment No. 10
D) A block of data is stored in memory locations from _____. The length of the block
is stored at ________. Write a program that performs ADDITION of given
BLOCK of data. UseB register to store any carry generated during the addition of
bytes. Storethe result at two consecutive memory locations. 20
E) Enter the program on the microprocessor kit. 05
F) Execute the program. Write the contents of data memory locations before and after
execution as well as the contents of the registers used in the program after execution
and also the bit contents of all five flags individually. Verify the results. 05
MAHARASHTRA STATE BOARD OF SECONDARY AND
HIGHER SECONDARY EDUCATION – PUNE
Computer Science D9 (Paper – II)
H.S.C. Board Practical Examination: 2017-2018
Centre: ___________________________ Jr. College No.: ____________
Time: 7.30 am Batch: Date: /02/2018
-===============================================================================================================================================================================================================================================================================
Experiment No. 10
G) A block of data is stored in memory locations from _____. The length of the block
is stored at ________. Write a program that performs ADDITION of given
BLOCK of data. UseB register to store any carry generated during the addition of
bytes. Storethe result at two consecutive memory locations. 20
H) Enter the program on the microprocessor kit. 05
I) Execute the program. Write the contents of data memory locations before and after
execution as well as the contents of the registers used in the program after execution
and also the bit contents of all five flags individually. Verify the results. 05
Experiment No.1
Aim :- Write assembly language program to add two 8-bit (hexadecimal)
Numbers. The numbers are storage at memory location 1000H and 1001H.
Store the result at memory location 1002H.
- E N D-
Experiment No.2
Aim :- Write assembly language program to Subtract two 8-bit (hexadecimal)
Numbers. The numbers are Store at memory location 1000H and 1001H.
Store the result at memory loaction 1002H.
Result :- After execution of program, greatest number 84H was found at memory
location 1002 H
- E N D-
Experiment No.4
Aim :- Write an assembly language program to convert of memory location
C000 H to an ASCII character memory location C000 contains a single
hexadecimal digit. Store result at location C001 H
Input :- (C000) = 0C
-E N D-
Experiment No.5
Aim :- Write ALP to add all the BCD numbers in a block from 1000 H to 8008
H . Store Sum at memory location 100A H. [Assume sum is 8 bit]
Input : -
100A H= RESULT
Result :-
After execution of program the data in memory block 1000H – 1003 H
was copied from 1004 H to 1007 H as follows
1000 = 11H 1004 H = 11 H
1001 = 22H 1005 H = 22 H
1002 = 33H 1006 H = 33 H
1003 = 44H 1007 H = 44 H
-E N D -
Experiment No. 7
- E N D -
Experiment No. 8
Aim :- Write an ALP to count total number occurrences of data bytes 9CH in
a memory block of length 10 bytes starting from 1000H. Store the count in
register E.
Input :-
1000H = 11H 1003H = 44H 1006H = 9CH
1009H = 77H
1001H = 9CH 1004H = 9CH 1007H = 66H
1002H = 33H 1005H = 55H 1008H = 9CH
- E N D -
Experiment No. 9
Aim :- A block of data is stored in memory location from 1000H to 1002H.
Another block is stored from 1003H to 1005H. Write an ALP to exchange
these two block of data with each other.
Input :-
1000H = 11H 1003H = 44H
1001H = 9CH 1004H = 9CH
1002H = 33H 1005H = 55H
- E N D -
Experiment No. 10
Aim :- Write an ALP the divide one byte Hexadecimal number, when
dividend is stored in memory location 1000H and divisor is stored in memory
location 1001H. Store the quotient and reminder in memory location 1002H
and 1003H
Input :-
1000H = 24H Dividend
1001H = 02H Divisor
- E N D -
Experiment No. 12
Aim :- Write an ALP to count the number of odd data bytes occurring a
block of data stored from location 1001h to 1004H. Store the result at location
1005H
Input :-
1000H = 01H 1002H = 03H 1004H = 05
1001H = 04H 1003H = 06H 1005H = result
- E N D -
Experiment No. 13
Aim :- Write an ALP to count the number of ONE’S in an 8bit hexadecimal
number stored at 1000H. Store the result at location 1001H
Input :-
1000H = 98H => 10011000
1001H = 03H
- E N D -