0% found this document useful (0 votes)
18 views54 pages

Atishay Final

cs practical file
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)
18 views54 pages

Atishay Final

cs practical file
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/ 54

S.

No TOPIC SIGN
.
PYTHON
1. WAP to print the pattern
*
**
***
2. WAP that reads a string and then
prints a string that capitalizes
every other letter in the string.
3. WAP to input the total number
of sections and stream names in
11th class and display all
information.
4. WAP input ‘n’ names and phone
no. to store it in a dictionary and
print the phone number of a
particular name.
5. Write a program to count the
frequency of elements in a tuple.
6. WAP to print all the elements of
a tuple in the reverse order.
7. WAF that accepts a string and
calculates the number of
uppercase letters and lowercase
letters.
8. Write a menu driven program to
manipulate student entries and
store the data in a binary file
1. WAP to print the pattern
*
**
***

CODE

OUTPUT

2. WAP that reads a string and then


prints a string that capitalizes
every other letter in the string.
CODE

OUTPUT

3. WAP to input the total number of


sections and stream names in 11th
class and display all information.
CODE
OUTPUT

4. WAP input ‘n’ names and phone


no. to store it in a dictionary and
print the phone number of a
particular name.
CODE

OUTPUT
5. Write a program to count the
frequency of elements in a tuple.
CODE

OUTPUT
6. WAP to print all the elements of a
tuple in the reverse order.

CODE

OUTPUT

7. WAF that accepts a string and


calculates the number of
uppercase letters and lowercase
letters.
CODE

OUTPUT

8. Write a menu driven program to


manipulate student entries and
store the data in a binary file
CODE
OUTPUT
9. WAP that fills a list with random
numbers.
CODE

OUTPUT
10. WAP to perform binary search
using randint ().
CODE

OUTPUT
11. WAF to calculate factorial of a
given number. The function should
return the factorial using return
statement.
CODE

OUTPUT

12. WAF listChange() in python,


which accepts a list of numbers
and replaces each even number by
value 10 and multiply odd number
by 5.
CODE

OUTPUT

13. WAP to store and display


multiple integers in and from a
binary file.
CODE
OUTPUT
14. Write a menu drive program to
perform all built in functions on
string.
CODE:-
OUTPUT:-
15. Write a menu drive program to
perform all built in functions on
the list.
CODE: -
OUTPUT:-
16. Write a menu drive program to
perform all built in functions on
tuple.
CODE: -
OUTPUT:-
17. Write a menu drive program to
perform all built in functions on
dictionary.
CODE: -
OUTPUT:-
18. Write a program to create a
Stack called Employee, to perform
the basic operations on Stack
using list. The list contains the two
values-employee number and
employee name. The program
should include the options for
addition, deletion and display of
employee details.
CODE: -
OUTPUT:-
19. Write a program to implement
a Stack for these book- details
(book no, book name). That is,
now each item node of the Stack
contains two types of information -
a book no. and its name. Just
implement PUSH display
operations.
CODE: -
OUTPUT:-
TABLE 1: -
Q1. Display Pname, Quantity and
rate for all the orders that are
either pencil or pen.

Q2. Display the orders which are


not getting any Discount
Q3. Display the Pname, Quantity
and Sale_date for all the orders
whose total cost is greater than
500.

Q4. Display the orders whose Rate


is in the range 20 to 100

Q5. Display the minimum quantity,


maximum quantity and total
quantity of orders.
TABLE 2: -
Q1. Display details of all PCs with
stock more than 110.

Q2. Find the stock value of the BPL


company where stock value is the
sum of the products of price and
stock.

Q3. List the company which gives


warranty of more than 2 years
Q4. Count the number of products
which shall be out of warranty on
20-NOV2020.
Q5. Show the number of products
from each company.

TABLE 3: -
Q1. DisplayEqui Join of both tables
STUDENTS12 and FEES

Q2. Display Natural Join of the


tables.
Q3. Display Cartesian Product for
STUDENTS12 × FEES.

Q4. Perform table aliases of


STUDENTS12
Q5. Display Name and Class from
the table STUDENTS12 in
descending ord er of Name.
TABLE 4: -
Q1. Display average of French
marks.
Q2. Increase Maths marks of Roll
No 4 by 10.

Q3. Delete the marks of all


subjects of Ritu.
Q4. Display Science marks in
ascending order.
Q5. Display Roll No and Name
whose Hindi marks are greater

than 80.
TABLE 5: -
Q1. Display the names of students
with grade 'C' in Game1 or Game2

or both.
Q2. Add a new column named
'Marks'.

Q3. Display the number of


students getting grade 'A' in
Cricket.
Q4. Assign a value 200 for marks
for all getting grade 'B' or 'A' in

Game1 and Game2.


Q5. Display the names of the
students who have the same game
for both Game1 and Game2.

Q6. Display the game taken up by


the students, whose name starts
with 'A'.

You might also like