Page 1 :
AMBUJA VIDYA PEETH, TERM 1 PRACTICAL – CS -CLASS 12, Note: Total Practical Time: 1:30 Mins, , MM:15, , The following practical is to be done within 45 mins, (A) Write a menu driven program in python to carry out the following task, (1) To generate 3 random numbers and calculate the sum of all the numbers, demonstrating the concept of user defined function, (2) Create a text file named Student having 3 records of name, rollno, class, marks, and display the content, (3) Create a CSV content of Q2., , (B) Write a menu driven program in python to carry out the following task, (1) To take two numbers form the user and display the factorial of both the numbers, (2) Create a binary file named Employee having 3 records of name, empno, depart,, salary and display the content., (3) Create a CSV content of Q2., , (C) Write a menu driven program in python to carry out the following task, (1) To calculate the 7th term of Fibonacci series., (2) Create a text file named Poem having 4 lines of any Nursery poem. Display the, content and then your program should count the number of vowels present in the, file., (3) Create a CSV content of Q2., , (D) Write a menu driven program in python to carry out the following task, (1) To search any word in a given string., (2) Read any text file present in the system and display the total number of, consonants and lower case in the file., (3) Create a CSV content of Q2., , (E) Write a menu driven program in python to carry out the following task, (1) To create a list of 10 elements from the user and display all the prime number, elements with index number., (2) Create a binary file named Doctor having 3 records of name, docno, depart,, consultation_fee and display the detail of a searched docno., (3) Create a CSV content of Q2.