Cs Portfolio
Cs Portfolio
Cs Portfolio
Suumyadip Debnath
CERTIFICATE
This is to certify that Soumyadip Debnath, student of Class
XII, Techno India Group Public School Raiganj has
completed the PRACTICAL FILE during the academic year
2023-2024 towards partial fulfilment of credit for the
Computer Science practical evaluation of CBSE and
submitted satisfactory report, as compiled in the following
pages, under my supervision.
INPUT:-
OUTPUT:-
Q2. Write a Python program to input a list of numbers and swap elements at the even location
with the elements at the odd location.
INPUT:-
OUTPUT:-
Q3. Write a Python program to input a list/tuple of elements, search for a given element in the
list/tuple
INPUT:-
OUTPUT:-
INPUT:-
OUTPUT:-
Q5. Write a Python program to input a list and remove all occurrences of the given element
from the list.
INPUT:-
OUTPUT:-
Q6. Write a Python program to read a list of n integers(both positive and negative).Create two
new lists , one having all positive numbers and the other having all the negative numbers from
the given list. Print all the three lists
INPUT:-
OUTPUT:-
Q7. Write a Python program to input a tuple and check if it contains all elements as the same.
INPUT:-
OUTPUT:-
Q8. Write a Python program to print minimum, maximum, sum of keys of numbers dictionary
as given below
INPUT:-
OUTPUT:-
Q9. Write a Python program to split dictionary keys and values into separate lists.
INPUT:-
OUTPUT:-
Q10. Create a dictionary with the roll number, name and marks of n students in a class and
display the names of students who have scored marks above 75.
INPUT:-
OUTPUT:-
Q11. Input two numbers and display the larger / smaller number.
INPUT:-
OUTPUT:-
OUTPUT:-
INPUT:-
OUTPUT:-
Pattern 2
INPUT:-
OUTPUT:-
Patter 3
INPUT:-
OUTPUT:-
Q14.Write a program to input the value of x and n and print the sum of the following series:
a) 1 + 𝑥 + 𝑥 2 + 𝑥 3 + 𝑥 4 + ⋯𝑥 n
b) INPUT:-
OUTPUT:-
Q15. Determine whether a number is a perfect number, an Armstrong number or a palindrome.
INPUT:-
OUTPUT:-
Q16 Input a number and check if the number is a prime or composite number.
INPUT:-
OUTPUT:-
Q17. Display the terms of a Fibonacci series.
INPUT:-
OUTPUT:-
Q18. Compute the greatest common divisor and least common multiple of two integers.
INPUT:-
OUTPUT:-
Q19. Count and display the number of vowels, consonants, uppercase, lowercase characters in
string.
INPUT:-
OUTPUT:-
Q20. Input a string and determine whether it is a palindrome or not; convert the case of
characters in a string.
INPUT:-
OUTPUT:-
Q21. Input a list/tuple of elements, search for a given element in the list/tuple.
INPUT:-
OUTPUT:-
INPUT:-
OUTPUT:-
Q23. Create a binary file with name and roll number. Search for a given roll number and
display the name, if not found display appropriate message
INPUT:-
OUTPUT:-
Q.24.Write a random number generator that generates random numbers between 1 and 6
(simulates a dice).
INPUT:-
OUTPUT:-
Q.25. Write a Python program to implement a stack using list.
INPUT:-
OUTPUT:-
SQL QUERIES
Q26. Using SQL Query display the names of Students who are getting a
grade “C” in either GAME or SUPW.
Q.27. Using SQL Query display different games offered in the school
Q.28. Using SQL Query to display the SUPW taken up by the students
whose name starts with ‘A’.
Q.29. Using SQL Query display the names of Students who play Cricket
from class 10.
PYTHON:-
SQL:-
PYTHON:-
SQL:-
Q.34. INSERT INTO STUDENT (id, name) VALUES (01, "John") in
MySQL with Python.
PYTHON:-
SQL:-
Q.35. Delete column "salary" from STUDENT in sql using python.
PYTHON:-
SQL:-