JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III SCRIPTING LANGUAGES Previous Question Paper (March - 2021 - R16)
Answer any five questions
All questions carry equal marks
Main
Write the procedure for searching a file and directory.
Answer
To search for files and directories in a Linux environment, the find command is the primary utility. The basic syntax is:
The procedure involves the following steps:
- Specify the starting directory (e.g., '.' for current, '/' for root).
- Define the search criteria using options such as -name (by filename), -type (f for file, d for directory), -size (by file size), or -user (by owner).
- Optionally, use logical operators like -o (OR) or -not to refine the search.
- Execute the command to traverse the directory tree recursively and return matches.
Example: To find all files named 'config.txt' in the /etc directory, use:
Discuss the File System of the Linux.
Answer
The Linux file system follows a hierarchical tree structure, starting from a single root directory denoted by a forward slash (/). Everything in Linux, including hardware devices, is treated as a file.
Key characteristics and standard directories include:
- /bin and /usr/bin: Contain essential user command binaries.
- /etc: Stores system-wide configuration files.
- /home: Contains personal directories for individual users.
- /root: The home directory for the superuser.
- /var: Holds variable data files, such as logs and spool files.
- /dev: Contains device files representing hardware components.
- /proc: A virtual file system providing information about processes and kernel parameters.
Linux supports various file system types (e.g., ext4, XFS, Btrfs) that manage data storage, access permissions, and metadata. The Virtual File System (VFS) layer allows the kernel to interact with these different physical file systems uniformly, providing a consistent interface for applications.
Give a brief note on zipping and unzipping concepts.
Answer
Sign in to view the complete answer paper.
Explain the Network file system.
Answer
Sign in to view the complete answer paper.
Describe the Network information Services.
Answer
Sign in to view the complete answer paper.
List and explain the tools used in Linux networking.
Answer
Sign in to view the complete answer paper.
Write a short note on References and Subroutines in Perl.
Answer
Sign in to view the complete answer paper.
Discuss the Files and Data in Perl Scripting.
Answer
Sign in to view the complete answer paper.
With the help of examples, explain pattern and regular expressions in Perl.
Answer
Sign in to view the complete answer paper.
Compare scripting languages. Among TCL, TK and Perl which one is better suitable for web application? Why?
Answer
Sign in to view the complete answer paper.
Write about exception handling in python in detail with a snippet of code.
Answer
Sign in to view the complete answer paper.