Operating System Lab Test
Made By: Muhammad Qasim Ashraf
Time 2:30 - 4:30 (2 Hours)
Remember
 No Internet, You can use your Lab manuals.
 No Paper work, Lab test is program based, you can use your machines.
 Do not communicate with other students.
 If there is query, students are to raise their hands for clarification.
 Students are not permitted to leave the Lab during Test.
 Using of mobile phone is not allowed.
 Backup/Save your work during test.
 Assign proper and valid name for scripts files and variables
 Checking starts at 4:00 pm
Select Only One Language for lab test:
 Bash (.sh)
 Python (.py)
 Batch (.bat)
☺ Best of Luck ☺
Operating System Lab Test
Made By: Muhammad Qasim Ashraf
Attempt Any Five Questions.
1. Write a program that performs floating point calculations?
2. Write a program that prompt user for two number (range of tables) and show
output in any following pattern? (Only one)
(a)
(b)
3. Number Guessing Game
a. Show Total Guess
b. Show Total Playing Time
4. Write a Program to Generate Random Color Matrix?
5. Write a Program to get following information? (Any Two)
a. IP Address
b. Machine Name
c. User Name
6. Write a Program to create process and then kill created process?
7. Write a Program that print and store following in different variables?
(Any Five)
a. Year
b. Month
c. Day
d. Date
e. Hour
f. Minute
g. Seconds

Operating system lab task

  • 1.
    Operating System LabTest Made By: Muhammad Qasim Ashraf Time 2:30 - 4:30 (2 Hours) Remember  No Internet, You can use your Lab manuals.  No Paper work, Lab test is program based, you can use your machines.  Do not communicate with other students.  If there is query, students are to raise their hands for clarification.  Students are not permitted to leave the Lab during Test.  Using of mobile phone is not allowed.  Backup/Save your work during test.  Assign proper and valid name for scripts files and variables  Checking starts at 4:00 pm Select Only One Language for lab test:  Bash (.sh)  Python (.py)  Batch (.bat) ☺ Best of Luck ☺
  • 2.
    Operating System LabTest Made By: Muhammad Qasim Ashraf Attempt Any Five Questions. 1. Write a program that performs floating point calculations? 2. Write a program that prompt user for two number (range of tables) and show output in any following pattern? (Only one) (a) (b) 3. Number Guessing Game a. Show Total Guess b. Show Total Playing Time 4. Write a Program to Generate Random Color Matrix? 5. Write a Program to get following information? (Any Two) a. IP Address b. Machine Name c. User Name 6. Write a Program to create process and then kill created process? 7. Write a Program that print and store following in different variables? (Any Five) a. Year b. Month c. Day d. Date e. Hour f. Minute g. Seconds