0% found this document useful (0 votes)
101 views

Informatics Practices, Project File Class 11

Uploaded by

Zed Kay
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)
101 views

Informatics Practices, Project File Class 11

Uploaded by

Zed Kay
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/ 10

INFORMATICS PRACTICES

PRACTICAL FILE;
Python and SQL Programs

Name: [Redacted]
Class: [Redacted]
Roll No: [Redacted]
─ PYTHON

; Textbook Programs

Program 3-2 #Write a Python program to find the sum of two numbers.

Program 3-3 #Write a Python program to find the area of a rectangle given
that its length is 10 units and breadth is 20 units.

Output:
200


Program 3-4 #Program to print even numbers in a given sequence using for
loop
Output:

Program 3-5 #Program to print the multiples of 10 for numbers in a given


range.

Output:

10
20
30
40

Program 3-6 #Program to demonstrate working of nested for loops.


Output:

; Practical Questions

PQ1 #Program to enter first and last name, then display the full name

Output:

PQ2 #Program to add two numbers entered by user

Output:
PQ3 #Program to calculate the perimeter of a rectangle

Output:

PQ4 #Program to calculate the area of a given triangle

Output:
PQ5 #Program to check whether a given number is positive, negative or zero

Output:

PQ6 #Program to check whether a given number is even or odd


Output:

PQ7 #Program to print 1 to 10 numbers in a single line using for loop

Output:

PQ8 #Program to print sum of all odd numbers between 10 to 100

Output:

PQ9 #Program to print out all even numbers in a given list


Output:
─ SQL
#Create database

#Create table

#Add Details

#Show any name in the table that starts with ‘Ro’


#Show whole table

#Show students born in 2008

#Show male students

You might also like