Course: IntegratedMSc (IT)
B.Sc. (IT) Semester- II
Subject Code: 50020404
Subject Name: Operating Systems andVirtualization
Date: Tuesday 11thApril, 2023 Max Marks [26 Practical + 24 Viva]
Practical Exam - April 2023
SET-I
Q.1 Write commands for performing the followings: [6]
1. Convert a binary number to an octal number.
2. To list the file names in the home directory in the reverse order.
3. To create file named “log_file” containing the currently logged in users.
Q.2 Write a shell script to display the date in the format Day of the week, month and year ( Ex : [6]
Friday April 2023) by using command line arguments.
Q.3 Create an “Emp_file” with field names Emp_Id, Emp_Name, Emp_City, Emp_Designation, [12]
Emp_Salary. Write a menu driven program for the following operations.
1.Sort the file on the field Emp_Name
1. Display only the employee names whose designation is “Manager”
2. Count number of Directors
3. Exit from the menu
Course: IntegratedMSc (IT)
B.Sc. (IT) Semester- II
Subject Code: 50020404
Subject Name: Operating Systems andVirtualization
Date: Tuesday 11thApril, 2023 Max Marks [26 Practical + 24 Viva]
Practical Exam - April 2023
SET-II
Q.1 Write commands for performing the followings: [6]
1. To display the file name which has been accessed last in the home directory.
2. To convert upper case letters to lower case letters.
3. List the current running processes along with some background process.
Q.2 Write a shell script to enter the names of five friends of yours using command line arguments [6]
and display the file name of the current script, the number of arguments supplied and the list
of your friends.
Q.3 Create an “Student_file” with field names Stu_Id, Stu_Name, Stu_City, Stu_standard, Stu_gender, [12]
Marks1,Marks2, Marks3 and Total_Marks.Write a menu driven program for the following operations.
1. Display the student names whose Id begins with digit 2.
2. Display those student records that contains first name with “Anubhav” or “Prachi”
3. Count number of students whose gender is not “Female”
4. Exit from the menu
Course: IntegratedMSc (IT)
B.Sc. (IT) Semester- II
Subject Code: 50020404
Subject Name: Operating Systems andVirtualization
Date: Tuesday 11thApril, 2023 Max Marks [26 Practical + 24 Viva]
Practical Exam - April 2023
SET-III
Q.1 Write the commands for the followings [6]
1. Change the current permissions of a file to give read and write permissions to the
owner, the group and the other members.
2. Display the home directory, the shell name.
3. Reverse a given string.
Q.2 Write a shell script to check that a given file is existing and is writable. Print the appropriate [6]
messages accordingly. Append some data into the file.Use command line arguments.
Q.2 Create an “Product_file” with field names Pro_Id, Pro_Name, Pro_size, Pro_price, Pro_stock, [12]
and Pro_workshop. Write a menu driven program for the following operations.
1. Display the product names whose Pro_workshop is at “Ahmedabad”
2. Sort the records according tpthe price in the descending order
3. Split the file by number of lines with each part having two lines.
4. Exit from the menu