0% found this document useful (0 votes)
6 views7 pages

Computer Science Practical List

The document outlines a series of programming assignments for Computer Science I and II, primarily focused on C++ and Assembly Language. Tasks include writing programs for sorting arrays, exchanging values, class implementations, and HTML page creation, as well as Assembly Language programs for arithmetic operations and data manipulation. Each assignment requires verification of execution and obtaining hard copies of program listings and outputs.

Uploaded by

maxpratik007
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)
6 views7 pages

Computer Science Practical List

The document outlines a series of programming assignments for Computer Science I and II, primarily focused on C++ and Assembly Language. Tasks include writing programs for sorting arrays, exchanging values, class implementations, and HTML page creation, as well as Assembly Language programs for arithmetic operations and data manipulation. Each assignment requires verification of execution and obtaining hard copies of program listings and outputs.

Uploaded by

maxpratik007
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

COMPUTER SCIENCE I –D93

1. Write a program in C++ that first initializes an array of given 10 real numbers in ascending/descending order
using Bubble-Sort method. It should print the given list of numbers as well as the sorted list.

A. Enter the Program and verify proper execution of the same on the Computer
B. Obtain a hardcopy of the program listing as well as output.

2. Write a function in C++ that exchanges data (passing by reference) using swap function to interchange the
given two numbers.
A. Enter the Program and verify proper execution of the same on the Computer
B. Obtain a hardcopy of the program listing as well as output.

3. Write a program in C++ that initializes a Ratio class with no parameters as a default constructer. The program
must print the message "OBJECT IS BORN" during initialization. It should display the message "NOW X IS
ALIVE", when the first member function Ratio is called. The program must display "OBJECT DIES" when the
class destructor is called for the object when it reaches the end of its scope.

A. Enter the Program and verify proper execution of the same on the Computer
B. Obtain a hardcopy of the program listing as well as output.

4. Write a program in c++ to implement the following class hierarchy; Class student to obtain Roll Number, Class
Test to obtain marks scored in two different subjects, Class sports to obtain weightage (marks) in sports and
Class Result to calculate the marks. The program must print the roll number, individual marks obtained in two
subject, sports and total marks.
A. Enter the Program and verify proper execution of the same on the Computer
B. Obtain a hardcopy of the program listing as well as output.
5. Write a program in C++ with a ratio class using member functions like assign () function to initialize its
member data (integer numerator and denominator), convert () function to convert the ratio into double, invert ()
function to get the inverse of the ratio and print () function to print the ratio and its reciprocal.
A. Enter the Program and verify proper execution of the same on the Computer
B. Obtain a hardcopy of the program listing as well as output.

6. Create a simple HTML page on any of the following topics:


College profile, computer manufacturer or Software development company. The page must consist of at least 3
paragraphs of text. The page must have an appropriate title, background color or background image and hyperlinks to
other pages. The paragraph must have text consisting of different colors and styles in terms of alignment and Font size
A. Save the file and view the same using any HTML Browser. Verify functioning of the hyperlinks.
B. Obtain a hardcopy of the HTML code only.

7. Write a program in c++ to read the name of a country from one text file and name of its corresponding capital
city from another text file. The program must display the country name and indicate its corresponding capital in
the output.

A. Enter the Program and verify proper execution of the same on the Computer
B. Obtain a hardcopy of the program listing as well as output.

8. Write a class implementation of c++ program to read data variables name, std, roll, dob and gender of a class
student data by the member function and display the contents of class objects.

A. Enter the Program and verify proper execution of the same on the Computer
B. Obtain a hardcopy of the program listing as well as output.
Computer
Science
II
1. Write Assembly Language program (ALP) to add hexadecimal numbers (40h) and (52h) in memory location
C000/2000 and C001/2001 Store the sum to memory location C002/2050.
Note: Using Immediate and Register indirect addressing mode

A. Draw flowchart, input and output, flags


B. Show the output to examiner

2. Write an ALP to find One’s complement the contents of memory location C000H/2000H. Place the result in
D000H/3000H
If C000 = 6A, result = D000 =95. [Ones Complement]
A. Draw flowchart, input and output, flags
B. Show the output to examiner

3. Write an ALP to find smallest number from series of numbers starting from D000/3000

A. Draw flowchart, input and output, flags


B. Show the output to examiner

4. Write Assembly Language program (ALP) to add hexadecimal numbers (40h) and (52h) in memory
location C000 (3000) and C001 (3001) Store the sum to memory location C002 (3002).
Note: Register indirect addressing mode

C. Draw flowchart, input and output, flags


D. Show the output to examiner
5. Write an ALP to find largest number from series of numbers starting from D000/3000.

A. Draw flowchart, input and output, flags


B. Show the output to examiner

6. Write an ALP to find Two’s complement the contents of memory location C000H
(2000). Place the result in D000H (2051).
If 2000 = 2, result = 2051 =FE.

A. Draw flowchart, input and output, flags


B. Show the output to examiner

7. Write Assembly Language program (ALP) to subtract hexadecimal numbers (08h) and (02h). Store the
subtract value to memory location (D000h) (2050h)
Note: Immediate addressing mode

E. Draw flowchart, input and output, flags


F. Show the output to examiner

8. Write ALP to subtract the content of memory location C000h (3000) & C001h (3001) and place the
result in C002h (3002).
Note: Register Indirect addressing mode

G. Draw flowchart, input and output, flags


H. Show the output to examiner
9. Write ALP to multiply two 1-byte hex no. stored in consecutive memory locations starting from C000h stored
the two byte result in consecutive memory location starting from beginning with lower order byte.
C. Draw flowchart, input and output, flags
D. Show the output to examiner

10. Write ALP that A block of data is stored in memory location from C080H (2080H) to C08BH (208BH).
Write a program to transfer the data to memory locations starting from C180H / 2180H

C. Draw flowchart, input and output, flags


D. Show the output to examine

You might also like