DEV Community

Fahad Vahora
Fahad Vahora

Posted on

VNSGU TYBCA Linux(Unix) Semester 5 OCT/Nov 2025 Practical Question Papers Sets

VNSGU TYBCA Sem 5 Linux (UNIX) Practical Question Paper – OCT/Nov 2025

Are you preparing for the VNSGU TYBCA Semester 5 Linux (UNIX) Practical Examination?

This article contains the Linux (UNIX) Shell Scripting Practical Question Paper Sets A to H for the OCT/Nov 2025 examination.

These practical sets cover important topics such as shell scripting, string handling, file handling, command-line arguments, file searching, validation, and arithmetic operations.


📚 VNSGU TYBCA Sem 5 – Linux (UNIX)

Details Information
University Veer Narmad South Gujarat University (VNSGU)
Course TYBCA
Semester Semester 5
Subject Linux (UNIX)
Exam OCT/Nov 2025
Type Practical Examination
Sets A to H

🐧 Linux (UNIX) Practical Question Sets

📌 Set A – Simple Interest & Compound Interest

Write a shell script to calculate the Simple Interest and Compound Interest for given amount.


📌 Set B – Vowels Count & Case Conversion

Write a script to count the number of vowels in the entered string and convert the string into upper case or lower case.


📌 Set C – Palindrome String

Write a script to check whether a given string is palindrome or not.


📌 Set D – File Operations & Text Processing

Write a shell script to perform following:

  1. Create a file named marks.txt and insert 5 lines of text.
  2. Display the first 3 lines of marks.txt.
  3. Display the last 2 lines of marks.txt.
  4. Count the number of words, lines, and characters in marks.txt.
  5. Search for the word Linux in marks.txt.

Commands Covered

  • cat
  • head
  • tail
  • wc
  • grep

📌 Set E – Display Specific Lines from File

Write a shell script that will pass file name and two numbers a1 and a2. Display line a1 to a2 from that file.

Proper validation required.

The script should properly validate the input and handle invalid arguments or file names.

Concepts Covered

  • Command-line arguments
  • File validation
  • Line numbers
  • sed
  • Input validation

📌 Set F – Count Files and Directories

Write a shell script to find total number of files and total number of directories in current working directory.

Concepts Covered

  • Directory handling
  • File testing
  • Loops
  • find
  • Current working directory

📌 Set G – Recently Modified Files

Write a shell script to find all files in the current directory that were modified in the last 7 days and display their names and sizes.

Concepts Covered

  • File searching
  • Modification time
  • find
  • File size
  • Shell scripting

📌 Set H – Employee Gross Salary

Write a shell script that computes the gross salary of an employee according to the following:

If Basic Salary is < 50000

  • HRA = 20% of Basic Salary
  • DA = 164% of Basic Salary

If Basic Salary is > 50000

  • HRA = 15% of Basic Salary
  • DA = 136% of Basic Salary

Input

The basic salary should be entered interactively through the keyboard.

Formula

Gross Salary = Basic Salary + DA + HRA
Enter fullscreen mode Exit fullscreen mode

📖 Topics Covered in These Practical Sets

These eight practical sets cover several important Linux and UNIX shell scripting concepts:

  • Shell Scripting
  • Variables
  • User Input
  • Arithmetic Operations
  • if-else
  • Loops
  • String Handling
  • String Case Conversion
  • Palindrome Checking
  • File Handling
  • Command-Line Arguments
  • File Validation
  • Text Processing
  • head
  • tail
  • wc
  • grep
  • find
  • File Size
  • File Modification Time
  • Input Validation

🎯 Linux Practical Exam Preparation Tips

If you are preparing for the VNSGU TYBCA Linux practical examination, practice each set yourself instead of only memorizing the script.

1. Understand Shell Syntax

Practice basic shell scripting syntax such as:

#!/bin/bash
Enter fullscreen mode Exit fullscreen mode

variables, read, conditions, loops, and command substitution.

2. Practice Linux Commands

Make sure you are comfortable with commands such as:

cat
head
tail
wc
grep
find
cut
tr
sed
Enter fullscreen mode Exit fullscreen mode

3. Practice Validation

For programs involving files or command-line arguments, always check:

  • Whether the required arguments are provided
  • Whether the file exists
  • Whether the file is readable
  • Whether the entered values are valid

4. Practice Without Copy-Paste

Try writing every program from scratch. This will help you understand the logic and make it easier to solve variations of the same question during the practical exam.


📝 Quick Revision

Set Practical Topic
A Simple Interest & Compound Interest
B Vowels Count & Case Conversion
C Palindrome String
D File Operations & Text Processing
E Display Lines with Validation
F Count Files & Directories
G Recently Modified Files
H Employee Gross Salary

📌 Conclusion

These VNSGU TYBCA Semester 5 Linux (UNIX) Practical Sets A–H cover a useful range of shell scripting problems for practical examination preparation.

Students should practice each program on a Linux/UNIX environment and understand the logic behind every command and statement.

All the best for your Linux (UNIX) Practical Examination! 🐧💻


⚠️ Disclaimer

This article is intended for educational and examination preparation purposes. Students should verify official examination details and question papers with the relevant VNSGU sources.

Top comments (0)