Question 1. Write code to insert multiple rows in the above CSV file.
OR
Write a program that reads a date as an integer in the format MMDDYYYY. The program will call a function that prints print out the date in the format <Month Name><day>, <year>.
Question 2. A binary file "emp.dat" has structure [employee id, employee name]. Write a function delrec(employee number) in Python that would read contents of the file "emp.dat" and delete the details of those employee whose employee number is passed as argument.
OR
Write a short note about twisted pair cable. What are its advantages and disadvantages?
Question 3. Write a program to write into file "one.csv" Rollno, Name and Marks separated by comma. It should have header row and then take in input from the user for all following rows. The format of the file should be as shown if user enters 2 records.
Roll.No,Name,Marks
20, ronit, 67
56, nihir,69
OR
Write a function in C++ TWOTOONE( ) which accepts two array X[], Y[] and their size \( n \) as argument. Both the arrays \( X[ \) ] and \( \mathrm{Y}[ \) ] have the same number of elements. Transfer the content from two arrays X[], Y[] to array Z[]. The even places \( (0,2,4 \ldots) \) of array \( \mathrm{Z}[] \) should get the contents from the array \( \mathrm{X}[] \) and odd places \( (1,3,5 \ldots) \) of array Z[] should get the contents from the array \( \mathrm{Y}[ \).
Example: If the X[] array contains \( 30,60,90 \) and the \( \mathrm{Y}[ \) ] array contains
10.20.50. Then Z ] should contain
30.10 .60 .20 .90 .50 .