0% found this document useful (0 votes)
1 views11 pages

Class 11 IP Program File

The document contains a list of Python programs and MySQL commands for various tasks, including calculating sums, finding largest numbers, generating Fibonacci series, and managing a student database. Each program and command is designed to demonstrate fundamental programming concepts and database operations. The document serves as a guide for beginners to practice coding and database management skills.

Uploaded by

khushboooojn02
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)
1 views11 pages

Class 11 IP Program File

The document contains a list of Python programs and MySQL commands for various tasks, including calculating sums, finding largest numbers, generating Fibonacci series, and managing a student database. Each program and command is designed to demonstrate fundamental programming concepts and database operations. The document serves as a guide for beginners to practice coding and database management skills.

Uploaded by

khushboooojn02
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/ 11

INDEX

PYTHON PROGRAMS:
1. WAP to display the sum of numbers from 1 to 10 using for loop.

2. WAP to find the largest of three numbers using if-elif-else. Accept the numbers from
the user.
3. WAP to calculate the factorial of a number using while loop. Accept the number from
the user.
4. WAP to print the multiplication table of a number using for loop. Accept the number
from the user. e.g., the pattern displayed must be 3X2=6
5. WAP to print the Fibonacci series up to n terms using a for loop.
6. WAP to check whether a person is eligible to vote or not.
7. WAP to check whether the entered year is a leap year or not.
8. WAP to print all prime numbers from 1 to 100.
9. Write a menu driven program for the following options of calculator:
a. Addition
b. Subtraction
c. Multiplication
d. Division
e. exponentiation
10.Write a menu-driven program
a. to check whether a number is even or odd using if-else.
b. to check whether a number is positive, negative or zero.
c. to count the number of vowels, present in the string.
d. To check there a number is palindrome or not.

MySQL Commands:
11.Create a table named 'students' with columns for student ID, name, class, age and
contact number where studentID is primary key and contact number is NOT NULL.
12.Insert 10 records into the 'students' table
13.Update the class of a student in the 'students' table
14.Delete a record from the 'students' table
15.Display all records from the 'students' table

PYTHON PROGRAMS:
 WAP to find the largest of three numbers using if-elif-else. Accept the
numbers from the user.
 Program:
 Output:

 WAP to find the largest of three numbers using if-elif-else. Accept the numbers from the
user.
 Program:

 Output:
 WAP to calculate the factorial of a number using while loop. Accept the
number from the user.
 Program:

 Output:

 WAP to print the multiplication table of a number using for loop. Accept
the number from the user. e.g., the pattern displayed must be 3X2=6
 Program:

 Output:
 WAP to print the Fibonacci series up to n terms using a for loop.
 Program:

 Output:

 WAP to check whether a person is eligible to vote or not.


 Program:

 Output:

 WAP to check whether the entered year is a leap year or not.


 Program:

 Output:

 WAP to print all prime numbers from 1 to 100.


 Program:
 Output:

 Write a menu driven program for the following options of calculator:


a) Addition
b) Subtraction
c) Multiplication
d) Division
e) Exponentiation
 Program:

 Output:

 Write a menu-driven program


a) to check whether a number is even or odd using if-else.
b) to check whether a number is positive, negative or zero.
c) to count the number of vowels, present in the string.
d) To check there a number is palindrome or not.
 Program:

 Output:

MYSQL COMMANDS:
 Create a table named 'students' with columns for student ID, name,
class, age and contact number where studentID is primary key and
contact number is NOT NULL.
 Command & Output:

 Insert 10 records into the 'students' table.


 Command:

 Output:
 Update the class of a student in the 'students' table.
 Command & Output:

 Delete a record from the 'students' table.


 Command:

 Output:

 Display all records from the 'students' table.


 Command & Output:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy