JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III SCRIPTING LANGUAGES Previous Question Paper (August - 2022 - R16)
Answer any five questions. All questions carry equal marks.
Main
How to extract files from a .tar.gz and .tar.bz2 files on Linux system? List and explain the utilities used with various options associated with them.
Answer
To extract files from compressed archives in Linux, the tar utility is used. While tar originally stood for Tape Archive, it is now the standard tool for handling archives with compression.
For a .tar.gz file, use the following command:
For a .tar.bz2 file, use the following command:
The common options used are:
- -x: Extract files from the archive.
- -z: Filter the archive through gzip (for .gz files).
- -j: Filter the archive through bzip2 (for .bz2 files).
- -v: Verbose mode, which lists the files being processed.
- -f: Specifies the filename of the archive.
Draw the architecture of Linux operating system and explain various components in it.
Answer
The Linux operating system architecture is organized into layers that separate the user applications from the physical hardware. The primary components are:
- Hardware Layer: Consists of physical components such as the CPU, RAM, hard drives, and peripheral devices.
- Kernel: The core of the operating system. It manages hardware resources, memory, process scheduling, and file systems. It acts as the bridge between hardware and software.
- System Call Interface: A set of functions that allow user-space applications to request services from the kernel, such as file I/O or process creation.
- Shell: A command-line interpreter that provides an interface for users to interact with the kernel by executing commands.
- User Utilities/Applications: The top layer containing software like text editors, compilers, and web browsers that users interact with directly.
The architecture ensures security and stability by restricting direct hardware access to the kernel, forcing applications to communicate through defined system calls.
Explain the functionality and usage with various options of the following commands: a) wc b) ls c) cp d) mv e) cat
Answer
Sign in to view the complete answer paper.
What is the purpose of FTP protocol? Explain its usage and functionality in detail along with the commands and options available.
Answer
Sign in to view the complete answer paper.
Explain how Network File System allows hosts for remote operations? Explain the fundamental concepts and working of NFS.
Answer
Sign in to view the complete answer paper.
Explain the following control statements with an example script in Perl: a) while b) until c) for d) foreach
Answer
Sign in to view the complete answer paper.
What is a regular expression? Explain various regular expressions and pattern matching operators in PERL.
Answer
Sign in to view the complete answer paper.
Explain with an example how to create and use references in PERL.
Answer
Sign in to view the complete answer paper.
How the following operations on Tcl lists are implemented? Explain briefly. a) Creating lists b) Getting list elements c) Sorting lists.
Answer
Sign in to view the complete answer paper.
Demonstrate the concept of recursive functions in python.
Answer
Sign in to view the complete answer paper.
How does a set data structure differ from a list data structure? Explain how to create and use them in python scripts.
Answer
Sign in to view the complete answer paper.