100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

Computer Science NCERT – CBSE – Practical Programmes – For Class XII – 2023-24

Beoordeling
-
Verkocht
-
Pagina's
43
Cijfer
A+
Geüpload op
02-07-2024
Geschreven in
2023/2024

Computer Science NCERT – CBSE – Practical Programmes – For Class XII – 2023-24

Instelling
Vak

Voorbeeld van de inhoud

COMPUTER SCIENCE
PRACTICAL PROGRAMS
FOR GRADE – XII
[2023-2024]




Prepared by:
Mr. Appan Raj D M.C.A., B.Ed., - PGT CS/IP
1

, TABLE OF CONTENTS

S.No Name of the Exercise Page.No
Python Programs
1. Creating a menu driven program to perform arithmetic operations. 3
2. Creating a python program to display Fibonacci series 5
3. Creating a menu driven program to find factorial and sum of list of numbers using 7
function.
4. Creating a python program to implement returning value(s) from function. 9
5. Creating a python program to implement mathematical functions. 10
6. Creating a python program to generate random number between 1 to 6 11
7. Creating a python program to read a text file line by line and display each word 12
separated by '#'.
8. Creating a python program to read a text file and display the number of 13
vowels/consonants/lower case/ upper case characters.
9. Creating python program to display short words from a text file 15
10. Creating a python program to copy particular lines of a text file into another text 16
file.
11. Creating a python program to create and search records in binary file. 17
12. Creating a python program to create and update/modify records in binary file. 19
13. Creating a python program to create and search employee’s record in csv file. 21
14. Creating a python program to implement stack operations (List). 23
15. Creating a python program to implement stack operations (Dictionary). 26
Python – SQL connectivity programs
16. Creating a python program to integrate MYSQL with Python (Creating database 28
and table)
17. Creating a python program to integrate MYSQL with Python (Inserting records 30
and displaying records)
18. Creating a python program to integrate MYSQL with Python (Searching and 32
displaying records)
19. Creating a python program to integrate MYSQL with Python (Updating records) 33
SQL Queries
20. SQL COMMANDS EXERCISE – 1 35
21. SQL COMMANDS EXERCISE – 2 36
22. SQL COMMANDS EXERCISE – 3 38
23. SQL COMMANDS EXERCISE – 4 40
24. SQL COMMANDS EXERCISE – 5 42



2

,EX.NO: 1
DATE:

CREATING A MENU DRIVEN PROGRAM TO PERFORM ARITHMETIC
OPERATIONS
AIM:

To write a menu driven Python Program to perform Arithmetic operations (+,-*,/)
based on the user’s choice.


SOURCE CODE:




Result:
Thus, the above Python program has been executed and the output is verified
successfully.




3

, SAMPLE OUTPUT:


Python Program Executed Output:




***************************************************************************************




4

Geschreven voor

Vak

Documentinformatie

Geüpload op
2 juli 2024
Aantal pagina's
43
Geschreven in
2023/2024
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

€4,53
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
kbzone

Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
kbzone ICSE
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
0
Lid sinds
2 jaar
Aantal volgers
0
Documenten
279
Laatst verkocht
-
Notes On All Subjects

A Store where Notes, Presentations, Questions & Answers, Classnotes, Study mqaterials and Studyguides are available at a very nominal preice. The notes are very useful for both the Students and Teachers.

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen