0% found this document useful (0 votes)
5 views

Table 2

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Table 2

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

6. A binary file “STUDENT.

DAT” has structure


( admission_number, Name, percentage). Write a function
countrec ( ) in Python that would read contents of the file
“STUDENT.DAT” and display the details of those students
whose percentage is above 75. Also display number of
students scoring above 75%.
7 Write a program to create a binary file with roll number ,name
and marks. Input a roll number and update the marks.
8 Write a program to create a CSV file “emp.CSV” having
structure[empid,emp_name, salary, mobile_no]. The program
should ask from user how many records he wants to enter.
9 Write a program to read above mentioned a CSV file
“emp.CSV” and show data in tabular form (without comma).
The program should also show the sum of salary of all
employees.
10 Write a program to search the record from “emp.CSV” file on
the basis of input empid. If record found update mobile no.
otherwise display appropriate message. Search for a given
empid, update the record and display the records.

STACK
1. Write a Menu Driven Program to IMPLEMENT A STACK
using LIST.
2. Write a program to create a Stack for storing only odd
numbers out of all the numbers entered by the user. Display
the content of the Stack along with largest odd number in the
Stack.

MYSQL
1. Create a database ‘EMP_data’ on the database server, show the
list of databases and select the database you want to use.
2. Create the following table named ‘Dept’ and ‘Emp’ with
appropriate data type, size and constraint(s).
3. Insert few records/tuples into the table. Verify the entered
records.
4. Display all the information of employees whose job is
NEITHER Salesman NOR Clerk.
5. Display the details of all the employees whose hiredate is after
April 1991. (Considered the SQL’s standard date format)
6. Display the details of all the employees whose Hiredate is
maximum.
7. Display all information of Salesman and Manager in
descending order salary wise. (method 1, method 2)
8. List all employees whose name has the character ‘a’.

You might also like