XII - Comp - SC Practical
XII - Comp - SC Practical
B. Write a program to print those elements of a matrix of order 3X3 that are not diagonal
elements after input from the user .
C. Write a program to input the elements of 3X3 array & display the sum of elements of the
alternate position as given below i.e 6 + 77 + 44 +99 .
OUTPUT :
sum of alternate elements = 226
3 6 9
77 66 44
88 99 100
D. Write a program to input the elements in the Array A [3][3] and Array B [3][3]. Store each
element of both array in a third array C [3][3] after addition . Display the third array C in
matrix form .
E. Write a program to input the elements in the array A [10] and B[10]. Store the elements
rowwise of array A in ascending order and in descending order in B and merge in the
third array C[20] in ascending order .Display the third array
I. Write a program to accept the elements in an array of maximum size 50 . Ask the user
how many elements to input and subsequently input the elements in the array in sorted
order . Now input an element to be searched in the array . If found , then display its
index and position otherwise display an error message “sorry ! given element could not
be found”. The function mentioned below is to be taken for the above process.
N. Write a program to enter the information i.e. a number to be stored in the queue using an array
and also display the elements in the queue with help of the following functions mention below.
Also remove an element from the queue . The above process will continue till the user wants.
Given :
int insert(int queue[ ],int ele); // this function will help you to insert the element in a stack
int remove(int queue[ ]);// remove the element from the queue
void display(int queue[ ],int front, int rear) ;// this function will display the contents of the stack
O. Write a program to declare a structure student with rollno , name , totalmark . Input the data for 3
students and store the data in a file student.dat .If the file exists , then the data will stored at the end
otherwise at the beginning of the file .Also display the contents of the file in the same program
BOOKID QUANTITYISSUED
F0001 4
C0001 5
F0001 2
Write SQL statement for the queries :-
Table: PRODUCT
PID PRODUCTNAME MANUFACTURER PRICE
TP01 Talcom powder LAK 40
FW05 Face wash ABC 45
BS01 Bath soap ABC 55
SH06 shampoo XYZ 120
FW12 Face wash XYZ 95
Table : CLIENT
3. Project Work
05
4. Practical File
06
5. Viva Voce 04