0% found this document useful (0 votes)
58 views1 page

Computer Practical

The document provides instructions for a computer science practical exam. It includes two programming questions, one involving matrix operations in C++ and the other involving sorting an array using bubble sort. It also includes five SQL queries to perform on a provided HOSPITAL database table, including queries to retrieve information about patients in a specific department, list female patients in a department, order patients by date of admission, filter data to only include male patients, and count patients over a certain age.

Uploaded by

mpkbdav
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views1 page

Computer Practical

The document provides instructions for a computer science practical exam. It includes two programming questions, one involving matrix operations in C++ and the other involving sorting an array using bubble sort. It also includes five SQL queries to perform on a provided HOSPITAL database table, including queries to retrieve information about patients in a specific department, list female patients in a department, order patients by date of admission, filter data to only include male patients, and count patients over a certain age.

Uploaded by

mpkbdav
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

COMPUTER SCIENCE PRACTICAL (083) CLASS XII

1. (i) (a) (b) (c) (ii) Attempt any one of the following questions using c++. (10)

Write a menu driven program to input two matrices of size 3x 3 and do the following : Calculate and print their sum Calculate and print their product Exit OR Write a program to sort the array MARKS of size N in ascending order using Bubble Sort Technique OR

(iii) 2.

Write a program to search an element in array B of size N using binary search technique. Assuming array is sorted in Ascending order. Write SQL commands on the basis of the table HOSPITAL : No Name Age Department Datofadm Charges 1 Sameer 65 Surgery 23/02/98 300 2 Priya 25 Orthopedic 20/01/98 200 3 Sakshi 32 Orthopedic 19/02/98 200 4 Veena 45 ENT 01/01/98 300 5 Archana 62 Cardiology 12/01/98 350 6 Arpit 75 Nuclear 13/01/98 650 Medicine 7 Kamal 80 Cardiology 19/02/98 800 (5) Sex M F F F F M M

(a) To show all information about the patients of cardiology department. (b) To list the names of female patients who are in orthopedic department. (c) To list names of all patients with their date of admission in ascending order. (d) To display Patients Name, Charges, Age for only male patients only. (e) To count number of patients with age > 30 .

You might also like