0% found this document useful (0 votes)
38 views2 pages

List of Practicals XI IP

The document lists 14 practical tasks related to a class 11 Informatics Practices subject. The tasks involve writing Python programs to perform calculations, accept and display user input, use conditional statements and loops. They also involve writing SQL queries to create a database and table, insert data, and retrieve data based on various conditions.

Uploaded by

Aditya Raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views2 pages

List of Practicals XI IP

The document lists 14 practical tasks related to a class 11 Informatics Practices subject. The tasks involve writing Python programs to perform calculations, accept and display user input, use conditional statements and loops. They also involve writing SQL queries to create a database and table, insert data, and retrieve data based on various conditions.

Uploaded by

Aditya Raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

LIST OF PRACTICALS

SESSION 2022-23
SUBJECT: INFORMATICS PRACTICES CLASS: XI
S.No. Practical Title Date

1 (a) Write a Simple Python Program to print “Hello World” on screen.


(b) Write a program to define 3 variables: - A = 5, B = 10 and C = 15.
Now print the following on screen—
5
10
15
(c) Modify above Program to print 5@10@15
2 (a) Write a program to get 2 numbers from user and print its sum
(b) Write a program to get name, class and rollno. Of user and print it on screen in below
format—
Roll Number :
Name :
Class :
3 Write a program to get radius of a circle from user and calculate following—
Diameter of Circle:
Area of Circle:
4 Write a program to get marks of 5 subjects of a student and calculate –
(a) Total Marks :
(b) Average marks :
5 (a) Write a program to get time in seconds from user and display it in form HH:MM:SS
(b) Write a program to obtain temperature in Celsius and convert it into Fahrenheit using
formula: ◦F = 9/5 * ◦ C + 32
6 Write a program to compute Simple Interest and Compound Interest.
Hint. Formula for C.I. = P*(1+r/100)t – P
7 Write a program to calculate profit-loss for given Cost and Sell Price.
8 (a) Write a program to get a number N from user and print ODD if it’s odd number and print
EVEN if it’s even number.
(b) Write a program to get a number N from user and print POSITIVE, NEGATIVE or ZERO
according to its value.
(c) Write a program to get month number from user and print month name. e.g. if y=user
enters 11, print November. Hint: use if elif
9 Write a program to print ‘KENDRIYA VIDYALAYA KHANAPARA’ 100 times on screen using for
loop and while loop
10 (a) Write a program to get a number N from user and calculate its factorial
(b) Write a program to calculate sum of first N natural numbers. Here N is to be entered
by user.
11 (a) Write a program to get a 3 digit number from user and print it’s –
Digit at Unit’s place-
Digit at ten’s place-
Digit at hundred’s place-
(b) Write a program to get a 3 digit number from user and print it in reverse order. e.g. if
user enters 123, print 321
12 Write a program to check whether a number is prime or not
13 Write a Program that reads a List of numbers from user and print the largest and smallest
number in the List.
14 Write a program to get a list of numbers from user and do following operations-
 Append an element to list
 Insert an element at position 1 in list
 Delete element from position 2 in list
 Sort the list
 Reverse the list
15 Write a program to create a dictionary of students in following format-
{Name : Marks}
And the display name of students who scored more than 75 marks.
18 Write SQL commands to do the following—
(A) Create a database “KVK” and connect it.
(B) Create a table ‘STUDENT’ with details as below:
COLUMN UID NAME CLASS GENDER DOB AdharID DEPT_ID FEE
NAME
DATA Small Text Small 1 Char Date Number TEXT(10) Decimal
TYPE Number (100 Number
chars)
CONSTR Primary NOT
AINT Key NULL
19 Write commands to insert data into STUDENT table as given below.
UID NAME CLASS GENDER DOB AdharID DEPT_ID FEE
101 Joya 12 F 12-01-2005 1201 HUM 1500
102 Suresh 12 M 09-08-2006 1202 SCI 2800
103 Mahesh 11 M 09-09-2007 1203 COM 1800
104 Aman 12 M 19-10-2006 SCI 3100
105 Priyanka 12 F 15-01-2005 COM 2400
106 Sheena 11 F 29-05-2007 1206 HUM 1200
107 Pankaj 11 M 24-09-2007 1207 SCI 3500
108 Tarun 11 M 17-04-2007 COM 2200
109 Bisakha 10 F 18-04-2008 1810 SCI 1500
110 Shanaya 9 F 26-03-2009 1941 COM 1200
20 Write SQL commands using MySQL for the following tasks—
(i) To display all data from student table.
(ii) To display only UID and Name of all students.
(iii) To display Name and Class of only girl students.
(iv) To display Fee of SCI students increased by 20% (use column alias also)
(v) To display details of boy students of class 12.
(vi) To display UID, Name and AdhaarID of students whose UID falls between 102 and 106
(vii) To display details of Boy whose name starts with letter ‘P’
(viii) To display details of class 11 students whose 2nd character of name is letter ‘a’
(ix) To display details of students whose AdhaarID is null.
(x) To display details of students whose AdhaarID is available?
(xi) To display the details of students in decreasing order of UID.
(xii) To display different values in Dept_ID column.
(xiii) To display details of those students who are either or their fee is more than 3000
(xiv) To display the details of all students born before 01-02-2006

You might also like