Final OS Question Bank
Final OS Question Bank
1. What are the key steps involved in installing a Linux operating system? Write step-by-
step guide for installing Linux OS on a new computer.
2. How can you choose the appropriate file system (e.g., ext4, Btrfs) during the Linux
installation, and what factors might influence this decision?
3. What is the significance of configuring user accounts and passwords during the Linux
installation, and how does it contribute to system security?
1. What are the prerequisites for installing macOS on a Mac computer, and how can you
check if your system meets these requirements?
2. Describe the process of creating a bootable macOS installer, and when might this be
necessary?
1. Explain Commands Who, PS, MAN, PWD, Uname, Echo, Print, Tput Clear, Exit,
Make Shell Script using VI
2. Explain Commands CD, MKDIR, RMDIR, CAT, LS
3. Explain Commands EXPR, DATE, CAL, BC
4. Explain IF (Conditional Statement) in Detail with Syntax & Example.
5. Write Explanation of For, While Loop with Example (Print number 1 to 10)
6. A simple program that prints "Hello, World!" to the console.
7. A script that performs basic arithmetic operations.
8. An employee basic salary is input through keyboard where DA is 40% of basic salary
and HRA
is 20% of basic salary. write a program to calculate gross salary
9. Write a program to calculate the area and perimeter of the rectangle, and the area and
circumference of the circle
10.Write a script to swap two integer values.
11.Write a shell program to calculate the simple interest for which the principle amount,
no. of years and rate of interest are passed as arguments on command line.
12.Write a shell program to find the average of 3 numbers which are passed on command
line
13.Write a shell program which receives 5 words on command line arguments and prints
them in reverse order.
14.Write a script Find Given year Is Leap year Or Not
15.A script that uses a conditional statement to check if a number is positive, negative, or
zero.
16.A script that uses a conditional statement to check if a number is even or Odd
17.A script that uses a conditional statement to check greater number from two numbers.
18.The marks obtained by a student in 5 different subjects are input through the keyboard.
The
student gets division as per following rules.
Percentage above or equal 70 - Distinction
Percentage between 60 and 70 - first
Percentage between 50 and 60 - Second
Percentage between 40 and 50 - Third
19.Write a shell Program to find out the factorial of input
20.Write a shell Program to find sum of all digits from a given number (123=1+2+3=6).
21.Write a shell program to print Fibonacci series 1, 1, 2, 3, 5, 8, 13, 21……
22.Write a Unix shell script to find the sum of first n numbers.
23.Write a script to reverse a no and string