Вы находитесь на странице: 1из 2

COMPUTER SCIENCE [PRACTICAL]

C++(POP)

1. Program to print the fibonacci series.


2. Program to check whether the given number is prime or not.
3. Program to find the given number is palindrome or not.
4. Program to find whether the given string is palindrome or not.
5. Program to print the binary equivalent of a decimal number.
6. Program to print the decimal equivalent of a binary number.
7. Program to add two matrices.
8. Program to find the product of two matrices.
9. write a program to display the total number of vowels in a string.
10Write a program to get the output
g
gn
gnu
gnul
gnuli
gnulin
gnulinu
gnulinux
11. area by function overloading

Classes(OOP)

12.Swap class with data members a, b and member function to


(i) Input values
(ii) Swap the values
(iii) Display the values

13.Program for temperature conversion using class


(a) Fahrenheit to Celsius
(b) Celsius to Fahrenheit

14.Student class with data members rollno, name, marks in 6 subjects and member
Functions
(i) Read the details of the student
(ii) Calculate the total marks
(iii) Display information along with total and percentage

15.Program to find the solution of quadratic equation using class

SQL(ORACLE)

16 Create a table Student with fields


Rollno - number -Primary Key
Name -varchar (20)
Sub1 -nummber
Sub2 -number
Sub3 -number
Total -number
Write SQL queries to
(a) Insert data in the fields Rollno, Name, Sub1, Sub2, Sub3 (at least 5 records)
(b) Update field total with sum of Sub1, Sub2 and Sub3.
(c) Display the name of the student having highest mark in Sub3.
17 Create a table Student with fields
Rollno -number -Primary Key
Name -varchar (20)
Batch -varchar (15)
Total -number
Batch can have values COMMERCE, SCIENCE, HUMANITIES
Write SQL queries to
(a) Insert data in the fields Rollno, Name, Batch, Total (at least 5 records)
(b) Display the list of students having marks>400.
(c) Display the number of students in each batch.
18 Create a table Student with fields
Rollno -number -primary key
Name -varchar (20)
Batch -varchar (15)
Total -number
Batch can have values COMMERCE, SCIENCE, HUMANITIES
Write SQL queries to
(a) Insert data in the fields Rollno, Name, Batch, Total (at least 5 records)
(b) Display the names of all students in SCIENCE batch.
(c) Display the highest mark in the table.
19 Create a table Employee with fields
Empno -number Primary Key
Name -varchar (20)
Designation -varchar (20)
Department -varchar (20)
Basic pay -Number (8,2)
DA -Number (8,2)
Total -Number (8,2)
Write SQL queries to
(a) Insert data in the fields Empno, Name, Designation, Department and Basic
pay (at least 5 records)
(b) Update DA in the table as 40% of Basic pay.
(c) Update Total as the sum of Basic pay and DA.
20 Create a table Deposit with fields
Accno -number Primary Key
Name -varchar (20)
Branch -varchar (20)
Amount -Number (8,2) Not Null
Branches can be CALICUT, COCHIN, THIRUVANANTHAPURAM.
Write SQL queries to
(a) Insert data in all fields (at least 5 records)
(b) Display total deposits in each branch.
(c) Display branch in ascending order of Accno.

Вам также может понравиться