Computer SC - XI
Computer SC - XI
Computer SC - XI
[CLASS XI]
COMPUTER SCIENCE (083)
and tuples, keys- candidate key, primary key, alternate key, foreign
key; Degree and cardinality of a table.
Use SQL – DDL/ DML commands to CREATE TABLE, INSERT INTO,
UPDATE TABLE, DELETE FROM, ALTER TABLE,MODIFY TABLE, DROP
TABLE, keys, and foreign keys; to view content of a table: SELECT-
FROM- WHERE-ORDER BY alongwith BETWEEN, IN, LIKE, (Queries
only on single table)
June 11
July 26
August 17
September 22
October 15
November 17
December 17
January 10
*Excluding Examination days.
GUIDELINES FOR PRACTICAL WORK
DISTRIBUTION OF MARKS
Sl. UNITNAME MARKS
No.
1 Lab Test (12 marks)
Python programs to test PCT 8
(60% logic + 20% documentation +20% code quality)
SQL program (at least 4 queries) 4
2 Report File + viva (10 marks)
Report file: Minimum 20 Python programs (PCT + DH) and at least 8 SQL 7
commands
Viva voce (based on the report file) 3
3 Project Work (that uses most of the concepts that have been learnt) 8
Project may be allotted to group of 2-3 students.
Programming in Python: At least the following Python concepts should be covered in the lab sessions:
expressions, conditionals, loops, list, dictionary, and strings. The following are some representative lab
assignments.
Find the largest and smallest numbers in a list.
Find the third largest number in a list.
Test for primarily
Find whether a string is a palindrome or not.
Given two integers x and n, compute xn.
Compute the greatest common divisor and the least common multiple of two integers.
Test if a number is equal to the sum of the cubes of its digits. Find the smallest and largest
such numbers.
Data Management: SQL Commands At least the following SQL commands should be covered during the
labs: create, insert, delete, select, and join. The following are some representative assignments.
Create a student table with the student id, name, and marks as attributes where the student id
is the primary key.
Insert the details of a new student in the above table.
Delete the details of a particular student in the above table.
Use the select command to get the details of the students with marks more than 80.
Create a new table (name, date of birth) by joining two tables (student id, name) and (student id,
date ofbirth).
Create a new table (orderID, customerName, and orderDate) by joining two tables (orderID,
customerID, and orderDate) and (customerID, customerName, contact Name, country).
SUGGESTIVE LIST OF PROGRAMS (LAB WORK)
COMPUTER SCIENCE (083)
CLASS - XI (NEW SYLLABUS)
[Minimum 20 Programs from Python Programming & 8 SQL queries - covering all the topics
must be tested in the Lab and recorded on Practical copy with flow charts, as applicable.]
1. Write a Python program to accepts two integers and print their sum.
2. Write a Python program that accepts radius of a circle and prints its area.
3. Write a Python program that inputs a student’s marks in five subjects (out of 100) and prints the
total marks and percentage of marks.
4. Write a Python program to accept length and width of a rectangle and compute its perimeter and
area.
5. Write a Python program to compute simple interest for given Principal amount, time and rate of
interest.
6. Write a Python program to find whether a given number is even or odd?
7. Write a Python program to find largest among three numbers.
8. Write a Python program to print roots of a quadratic equation ax2 + bx +c=0 (where a≠0).
9. Write a Python program to perform arithmetic calculation. This program accepts two operands
and an operator then displays the calculated result.
10. Write a Python program to check whether a given year is leap year or not.
11. Write a Python program to print table of a given number.
12. Write a Python Program to print first n Natural numbers and their sum.
13. Write a Python Program to accept two integers X and N, compute XN
14. Write a Python Program to calculate factorial of given number using while loop.
15. Write a program to print Fibonacci series. i.e. 0 1 1 2 3 5 8…
16. Write a Python program to check whether a given number is equal to the sum of the cubes of its
digits.
17. Write a program to print following pattern on screen.
*
***
*****
*****
**
18. Program to add the odd numbers up to (and including) a given value N and print the result.
19. Compute the greatest common divisor and the least common multiple of two integers.
20. Write a Python program to generate prime numbers for given range.
21. Write a Python Program to read a sentence and count number of alphabets, digits, spaces and
other characters.
22. Write a Python Program to check whether the given string is palindrome or not.
23. Write a Python program to input numbers and create two tuples containing even and odd numbers.
24. Write a Python Program to input some numbers in a tuples and create second tuple which contain
only unique values (non-repeating) values from the first tuple.
25. Write a Python program to create a tuple storing prime numbers in given range.
26. Write a Python program to calculate mean of a given list of numbers.
27. Write a Python program to count the frequency of a given number in alist.
28. Write a Python program to create Phone Directory (mobile number and name) using dictionary
and search and display name for given mobile number.
29. Write a Python program to sort a list of 10 numbers using Bubble Sort method.
30. Write a Python program to sort a list of 10 numbers using Insertion Sort method.
SQL Commands (At least 15 SQL queries related to create, insert, delete, select, and join operation
etc. should be covered during the lab activities: