0% found this document useful (0 votes)
28 views41 pages

CS EXERCISES Grade-12 Printout

Uploaded by

dvj300507
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)
28 views41 pages

CS EXERCISES Grade-12 Printout

Uploaded by

dvj300507
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/ 41

Ex.no.

1 Word separation in text file

Program:

Output:
Ex.No.2. Display Characters in text file

Program:

Output:
Ex.No.3. Creating new file from source file

Program:

Output:
Ex.No.4. Searching data in a binary file

Program:
Ex.No.5. Updating Data in binary file

Program:
Ex.No.6. Searching data in CSV file

Program:

Output:
Ex.No.7. Navigations of cursor position in text file

Program:

Output:
Ex.No.8. OPERATIONS IN CSV FILE

Program:
Output:
Ex.No.9. Menu driven program to check numbers

Program:
Output:
Ex.No.10. Random number generator

Program:

Output:
Ex.No.11. Function with variable length arguments

Program:

Output:
Ex.No.12. Python String functions

Program:

Output:
Ex.No.13. Implementation of Stack operations

Program:
Output:
Ex.No.14. Implementation of Stack for employee details

Program:
Output:
Ex.No.15. To reverse a string using stack

Program:

Output:
Ex.no.16 Queries Set 1 (DDL Commands)

SQL Queries and Output:

1.Database Creation:
Query:

Output:

2. TEAM Table Creation:


a, b &c. Creation of table
Query:

Output:
(a),(b)&(c)

d. Display the structure of table


Query:

Output:

e. Inserting into table

Query:
Output:

f. To show records

Query:

Output:

g. Creation of new table

Query:
Output:
Ex.no.17 Queries Set 2 (Database Fetching records)

SQL Queries and Output:

1.Query:

Output:

2.Query:

Output:

3.Query:

Output:
4. Query:

Output:

5.Query:

Output:

6.Query:

Output:
Ex.no.18 Queries set 3 (Based on Two Tables)

SQL Queries and Output:

1. QUERY:

OUTPUT:

2. QUERY:

OUTPUT:

3. QUERY:

OUTPUT:

4.QUERY:

OUTPUT:
5. QUERY:

OUTPUT:
Ex.no.19 Queries Set 4 (Group by , Order By)

SQL Queries and Output:

1.QUERY:

OUTPUT:

2.QUERY:

OUTPUT:

3.QUERY:

OUTPUT:

4.QUERY:

OUTPUT:
5.QUERY:

OUTPUT:
Ex.no.20 Queries Set 5 (Based on Functions)

SQL Queries and Output:

1.QUERY:

OUTPUT:

2.QUERY:

OUTPUT:

3.QUERY:

OUTPUT:

4.QUERY:

OUTPUT:

5.QUERY:

OUTPUT:

6.QUERY:

OUTPUT:
7.QUERY:

OUTPUT:

8.QUERY:

OUTPUT:

9.QUERY:

OUTPUT:

10.QUERY:

OUTPUT:
Ex.No.21. MySQL connectivity program in Python-1

Program:

Output:
Ex.No.22. MySQL connectivity program in Python-2

Program:
Output:
Ex.No.23. MySQL connectivity program in Python-3

Program:

Output:
Ex.No.24. MySQL connectivity program in Python-4

Program:

Output:

You might also like