0% found this document useful (0 votes)
16 views2 pages

Class XII Computer Science Practical List

This document outlines a practical list of 20 computer science tasks for Class XII students for the 2023-24 academic year. The tasks include writing programs to calculate factorials and check for prime numbers, find Armstrong numbers, and search text. Additional tasks involve creating and manipulating binary files to store and retrieve student records, CSV files to store user data, and SQL databases to perform CRUD operations on tables of student data.

Uploaded by

NARUTO UZUMAKI
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)
16 views2 pages

Class XII Computer Science Practical List

This document outlines a practical list of 20 computer science tasks for Class XII students for the 2023-24 academic year. The tasks include writing programs to calculate factorials and check for prime numbers, find Armstrong numbers, and search text. Additional tasks involve creating and manipulating binary files to store and retrieve student records, CSV files to store user data, and SQL databases to perform CRUD operations on tables of student data.

Uploaded by

NARUTO UZUMAKI
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

Class XII

Practical List -Computer Science


2023-24
1. Write a program to input any number from user and factorial of that
number.
2. Write a program to input any number from user and find whether
number is prime or not.
3. Write a program to check whether number is Armstrong or not.
4. Write a program to find the frequency of any word in a string.
5. Write a python program to read a text file line by line and display
each word separated by #.
6. Write a python program to read a text file and display the number of
vowels, consonant, uppercase and lowercase characters in a file.
7. Write a python program to read text file and the lines that contains
the character a write in another file.
8. Write a python program to create a binary file to store a rollno, name
and marks of 10 students.
9. Write a python program to update a marks of student in above file
by taking input of that student’s rollno.
[Link] a binary program to store book information
[bookid,bookname,price] of 10 books then search any book by
bookid. If book is found display message book is present otherwise
book is not present.
[Link] a function to create a csv file by entering user id and password
then write another function to search userid if userid is present
display appropriate message and vice versa.
[Link] a function to implement stack using list.
[Link] a program to generate a random number(1-6) till user want. If
user enter ‘N’ then stop to generate numbers.
[Link] a table
customer(custid,custname,accno,acctype,contact,amount,city,branchi
d) and Branch(branched,branchname) and insert records.( At least
10)
[Link] the unique city from customer table and display in ascending
order.
[Link] average amount ,minimum amount,maximum amount, sum of
amount and total number of rows from customer table.
[Link] total amount of according to each acctype.
[Link] the natural join on customer and branch table.
[Link] a program to connect the database ‘School ’from sql using sql
connectivity.
[Link] a program to insert student
record[sid,sname,percentage,contact,city] in student table using
connectivity.
[Link] a program to search a student record in student table by
entering [Link] student not found than display appropriate message.
[Link] a program to update student marks of entered sid using
connectivity.
[Link] a program to delete a student record of entered sid from
student table using connectivity.

Common questions

Powered by AI

Using SQL connectivity to update student records enhances understanding of database operations by bridging theoretical SQL command knowledge with practical application. It entails managing database connections, executing update statements accurately, and handling potential network issues such as connection errors. This task equips students with skills crucial for developing web applications and services that depend on robust and efficient data management practices, emphasizing the role of databases in networked environments .

Incorporating CSV file creation and search functionality exercises into the curriculum encourages students to work with plain text data formats, which are widely used in data interoperability between systems. These tasks teach reading and writing structured data, using Python's 'csv' module, and implementing search algorithms. It fosters an understanding of user management systems, error handling, and data validation. Furthermore, these exercises promote thinking around data security and efficiency, preparing students for data-intensive applications and analytical roles .

Creating a binary file to store student information consolidates comprehension of file handling by introducing binary data processes different from text files. It requires students to understand data serialization and deserialization techniques through modules like 'pickle' in Python. This exercise also emphasizes the differences in how binary files are read and written compared to text files, reinforcing critical concepts of data storage in computer science .

Finding the factorial of a number is a classic introductory programming task that helps students grasp fundamental concepts such as loops, function definitions, and basic arithmetic operations. It requires understanding iterative or recursive processes, which are foundational in programming. Additionally, the factorial function naturally leads to discussions on performance and optimization, particularly when dealing with recursion in Python .

Programming tasks that involve calculating statistical measures related to database entries help students understand and practice SQL aggregate functions, such as SUM, AVG, MIN, and MAX. These operations are crucial for data analysis and reporting, fundamental components of real-world database management. Such tasks demonstrate the practical application of SQL in managing and manipulating data, providing students with the skills to extract meaningful insights and perform data summaries, which are key in various domains like finance, data science, and business intelligence .

Implementing a stack using a list in Python provides a practical understanding of data structures and the Last In, First Out (LIFO) principle. It reinforces concepts such as pushing and popping elements, and understanding these operations' time complexity. Lists in Python naturally support stack operations through 'append' and 'pop' methods, making them an ideal structure for demonstrating stacks. This exercise aids students in visualizing abstract data structures concretely, preparing them for more complex algorithms and structures .

Tasks focusing on SQL joins, such as natural joins, provide essential insights into relational database management and querying multiple tables effectively. By practicing these tasks, students learn to retrieve related data across different tables and understand the relational model's efficiency. SQL joins demonstrate how complex data can be integrated, which is foundational for real-world data applications where information is spread across various tables .

Implementing random number generation in exercises like simulating a dice roll introduces students to non-deterministic programming and randomness. This task allows learners to explore Python's 'random' module and understand how pseudo-random numbers can simulate real-world phenomena. Such exercises are vital in game development and simulations and foster creativity and problem-solving skills as students consider user interaction, program flow, and uncontrolled variables .

Exercises that involve reading and manipulating text files expose students to real-world file I/O operations and string processing. Students learn to open files, read content, and employ string methods for tasks such as counting specific types of characters or tokenizing input. These exercises solidify their understanding of sequential data processing and error handling, which are essential for integrating with larger information systems or analyzing textual data .

Students might struggle with the concept of an Armstrong number, which involves calculating the sum of its digits each raised to the power of the number of digits. A common challenge is correctly implementing the conversion between number representations and ensuring calculations are accurately performed without logical errors. To overcome these challenges, students can first break down the problem into smaller parts: extracting digits, calculating powers, and summing them. Thorough testing with known Armstrong numbers can also help verify their solutions .

You might also like