(i) Binary equivalent
(ii) Octal equivalent
Question 2: Consider the following set of processes that arrive in the ready queue at the same time:
Consider the following scheduling algorithms:
First Come First Serve (FCFS), Shortest job first(SJF) and Round Robin (quantum = 1)
What is the turnaround time of each process for each of the above scheduling algorithms? Also find the average turnaround time.
What is the waiting time of each process for each of the above scheduling algorithms? Also, find the average waiting time.
Question 3: Summarize the important features of LINUX operating system. Justify, how is it more advanced than earlier UNIX operating systems?
Question 4: Write a shell programs for the following:
(i) Greatest Common Divisor (GCD) of the given three numbers.
(ii) To check whether the given number is an Avogadro number or not.
Question 5: Derive a regular grammar to describe the syntax of any two looping constructs of C programming language.
Question 6: List and execute the following UNIX commands:
(a) To change the password.
(b) To search files in the current directory/subdirectory for lines that match a particular string pattern given.
(c) To print the first 5 lines of a file.
(d) To print the number of processes run by a particular user.
(e) To kill a process which is running in the background.
(f) To display the number of blank spaces in a given file.
(g) To sort alphabetically, a list of numbers stored in a data file in an ascending order.
(h) To convert the upper case letters to corresponding lower case letters in a text file.
(i) To count the number of users currently logged on.
(j) To display the calendar for a given month and year.