0% found this document useful (0 votes)
27 views64 pages

IP Practical File Final

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)
27 views64 pages

IP Practical File Final

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
You are on page 1/ 64

Venkateshwar Global School

Informatics practices
Practical file
2023-2024

Navya Arora
XI Sagitta
Roll no.-15
INDEX
S.NO. QUESTION
PYTHON
1 WAP that accepts radius of a circle and print its area

2 WAP that accept marks in 5 subjects and outputs


average marks.
3 WAP to find the area of a triangle
4 WAP to input a number and print its first 5 multiples.

5 WAP to read details like name, class, age of a student


and then print the details, firstly in the same line and
then in separate lines.
6 WAP to read 3 numbers in 3 variables and swap first 2
variables with the sums of I st and 2nd, 2nd and 3rd
numbers, respectively.
7 WAP to swap digits without using. a third variable.
8 WAP to print largest number out of two numbers
accepted from the user.
9 WAP to check if it is a vowel or a consonant and print
next alphabet
10 WAP to find the area and the perimeter of a square, a
rectangle and the area and the circumference of a
circle.

11 WAP to print the multiplication table of a given number.

12 WAP to check whether the number entered by the user


is an Armstrong no. or not
13 WAP to check whether the number entered by the user
is palindrome. or not
14 WAP to print sum of all positive, negative, odd, and even
numbers
15 WAP to print the Fibonacci series
16 WAP to find the factorial of a number.
17 WAP to find the sum of squares of the first x natural
numbers.
18 WAP to write the sum of 1/x + 1/x**2 + 1/x**3 ··· +
1/x**n.
19 WAP to program to check if the number is positive or
negative and display a message
20 WAP to convert temperature in Fahrenheit to Celsius

21 WAP to display even nos. between 10 to 20


22 WAP to find sum of all digits of the respective number

23 WAP to print series 1-x^1/2!+x^2/3-


x^3/4!...........x^n/(n+1)!-exponential series
24 WAP to display the sum of given series
sum=1+(1+2)+(1+2+3)+(1+2+3+………n)
25 WAP to accept 2 lists, namely L 1 and L2, from the
user. Now join the 2 lists and replicate each one of
them and print on the screen
26 WAP to add the elements of two lists.
27 There are students in the class. Each student has a Roll
no, Name, EngMarks, MarketingMarks, HistMarks,
PolScMarks, IPMarks. WAP to calculate and print
TotalMarks and Percentage for all students
28 WAP to count the total number of odd and even
numbers from the list
29 WAP to search for a particular number in a list and
print its position.
30 WAP to print the largest element in a list.
31 WAP to print alternate elements in a list.

32 WAP to accept a number of terms, let's say n from the


user and display the dictionary in the form of { n:n* 51
33 WAP to accept and join 2 dictionaries from the user
and create the new dictionary.
34 WAP which takes key as an argument and check
whether that key is present in dictionary or not.

35 WAP to accept a dictionary from the user and display


the product of all the values of the dictionary
36 WAP to input 'n' classes and names of their class
teachers to store it in a dictionary and display the
same. Also accept a particular class from the user and
display the name of the class teacher of that class.
37 W AP to store student names and their percentage in a
dictionary, delete a particular student's name from the
dictionary . Also display the dictionary after deletion.
38 WAP to input names of 'n' customers and their details
like items bought, their cost and phone number. Store
it in a dictionary and display all the details in a tabular
form.
39 WAP to store student names and their percentage in a
dictionary, delete a particular student's name from the
dictionary . Also display the dictionary after deletion.
40 WAP to input names of'n' customers and their details
like items bought, their cost and phone number. Store it
in a dictionary and display all the details in a tabular
form.
My SQL
41 Consider the table ‘books’. Create the table and write
the mentioned SQL Queries
42 Consider the table ‘products’. Create the table and write
the mentioned SQL Queries
43 Consider the table ‘schoolbus’. Create the table and
write the mentioned SQL Queries
44 Consider the table ‘furniture’. Create the table and write
the mentioned SQL Queries
45 Consider the table ‘student’ Create the table and write
the mentioned SQL Queries
46 Consider the table ‘hospital’. Create the table and write
the mentioned SQL Queries
Program 1
Ques) WAP that accepts radius of a circle and print its area.
Program 2
Ques) WAP that accept marks in 5 subjects and outputs average
marks.
Program 3
Ques) WAP to find the area of a triangle
Program 4
Ques) WAP to input a number and print its first 5 multiples.
Program 5
Ques) WAP to read details like name, class, age of a student and then
print the details, firstly in the same line and then in separate lines.
Program 6
Ques) WAP to read 3 numbers in 3 variables and swap first 2
variables with the sums of I st and 2nd, 2nd and 3rd numbers,
respectively.
Program 7
Ques) WAP to swap digits without using. A third variable.
Program 8
Ques) WAP to print largest number out of two numbers accepted
from the user.
Program 9
Ques) WAP to check if it is a vowel or a consonant and print next
alphabet.
Program 10
Ques) WAP to find the area and the perimeter of a square, a
rectangle and the area and the circumference of a circle.
Program 11
Ques) WAP to print the multiplication table of a given number.
Program 12
Ques) WAP to check whether the number entered by the user is an
Armstrong no. or not
Program 13
Ques) WAP to check whether the number entered by the user is
palindrome. or not
Program 14
Ques) WAP to print sum of all positive, negative, odd, and even
numbers
Program 15
Ques) WAP to print the Fibonacci series
Program 16
Ques) WAP to find the factorial of a number.
Program 17
Ques) WAP to find the sum of squares of the first x natural numbers.
Program 18
Ques) WAP to write the sum of 1/x + 1/x**2 + 1/x**3 ··· + 1/x**n.
Program 19
Ques) WAP to program to check if the number is positive or negative
and display a message
Program 20
Ques)WAP to convert temperature in Fahrenheit to Celsius
Program 21
Ques) WAP to display even nos. between 10 to 20
Program 22
Ques) WAP to find sum of all digits of the respective number
Program 23
Ques) WAP to print series 1-x^1/2!+x^2/3-x^3/4!...........x^n/(n+1)!-
exponential series
Program 24
Ques) WAP to display the sum of given series
sum=1+(1+2)+(1+2+3)+(1+2+3+………n)
Program 25
Ques) WAP to accept 2 lists, namely L 1 and L2, from the user. Now
join the 2 lists and replicate each one of them and print on the screen
Program 26
Ques) WAP to add the elements of two lists.
Program 27
Ques) There are students in the class. Each student has a Roll no,
Name, EngMarks, MarketingMarks, HistMarks, PolScMarks, IPMarks.
WAP to calculate and print TotalMarks and Percentage for all
students
Program 28
Ques) WAP to count the total number of odd and even numbers from
the list.
Program 29
Ques) WAP to search for a particular number in a list and print its
position.
Program 30
Ques) WAP to print the largest element in a list.
Program 31
Ques) WAP to print alternate elements in a list
Program 32
Ques) WAP to accept a number of terms, let's say n from the user
and display the dictionary in the form of { n:n* 51}
Program 33
Ques) WAP to accept and join 2 dictionaries from the user and create
the new dictionary.
Program 34
Ques) WAP which takes key as an argument and check whether that
key is present in dictionary or not.
Program 35
Ques) WAP to accept a dictionary from the user and display the
product of all the values of the dictionary
Program 36
Ques) WAP to input names of 'n' customers and their details like
items bought, their cost and phone number. Store it in a dictionary
and display all the details in a tabular form.
Program 37
Ques) WAP to store student names and their percentage in a
dictionary, delete a particular student's name from the dictionary .
Also display the dictionary after deletion.
Program 38
Ques) WAP to input 'n' classes and names of their class teachers to
store it in a dictionary and display the same. Also accept a particular
class from the user and display the name of the class teacher
Program 40
Ques) WAP to store student names and their percentage in a
dictionary, delete a particular student's name from the dictionary .
Also display the dictionary after deletion.
Program 41
Ques) WAP to input names of'n' customers and their details like
items bought, their cost and phone number. Store it in a dictionary
and display all the details in a tabular form.
Program 42
Ques) Create a table ‘books’ and write the SQL commands and
output for the queries.
➢ Creating the table

➢ Inserting records

➢ TABLE
➢ QUERIES
i. To show books of first publisher written by J.Mukhi

ii. To display cost of all the books published for first publisher

iii. Depreciate price of all books by EPB Publisher by 5%


iv. Display book name, price of books where more than 3
copies has been issued.

v. To show details of books where quantity is more than 30


Program 41
Ques) Create table ‘hospital’ and perform the SQL commands and
output.
➢ Creating a table

➢ Inserting records
➢ Table

➢ Queries

i. To list the name of patients admitted after 15/01/98


ii. To list name of female patients who are of ENT
department

iii. To list patients with date of admission

iv. To display name, charges and age of female patients only


Program 42
Ques)create table ‘student’ and perform the SQL queries
➢ Queries
i. Write query to create table

ii. Write query to increase the size of Sname to hold 30


characters

iii. Write a query to remove hobby

iv. Query to insert a record in the table


Program 43
Ques) Create table ‘graduates1’ and write SQL commands and
output
➢ Creating table

➢ Inserting records
➢ Table

➢ Queries
i. List the name of students whose average greater than 65

ii. List students who have average greater than 60 and subject
is computer
iii. List name of all students

iv. Select* from graduate2 where subject=’physics’;


Program 44
Ques)create table ‘furniture’ and perform the SQL commands
➢ Creating table

➢ Inserting records

➢ Table
➢ Queries
i. List the details of furniture whose price is more than 1000

ii. To list name and price of furniture whose discount is btw 10


and 20

iii. To display all items whose discount is 30

iv. To display price for ‘babycot’

v. Select distinct type from furniture;


Program 45
Ques) create table ‘school_bus’ and perform SQL commands
➢ Creating table

➢ Inserting values

➢ Table
➢ Queries
i. To show capacity more than 70

ii. To show area covered is more than 20 but cost is less than
4000

iii. Show transporter wise name with charges


iv. To show rtno, area_covered and average cost per student
for allroutes where average cost per student is --- charge /
noofstudents.

v. Add a new record with the following data:(11, "Motibagh",


35, 32, 10, "kisan tours", 3500)
Program 45
Ques) create table ‘product’ and perform SQL commands
➢ Creating table

➢ Inserting values

➢ Table
➢ Queries
(i) To show details of all PCs with stock more than 110.

(ii) To list the company which gives warranty of more than 2


years.

(iii) To find stock value of the BPL company where stock value is
the sum of the products of price and stock.

(iv) To show number of products from each company.


(v) To count the number of PRODUCTS which shall be out of
warranty on 20-NOV-2020.

You might also like