JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III SCRIPTING LANGUAGES Previous Question Paper (August - 2022 - R16)

B.Tech | III | I | R16 | August - 2022

Answer PaperPaper Code: 135DAMaximum Marks: 75Time: 3 Hours

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

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.

7 marks

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:

tar -xzvf filename.tar.gz

For a .tar.bz2 file, use the following command:

tar -xjvf filename.tar.bz2

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.
b

Draw the architecture of Linux operating system and explain various components in it.

8 marks

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.

2

Explain the functionality and usage with various options of the following commands: a) wc b) ls c) cp d) mv e) cat

15 marks

Answer

Sign in to view the complete answer paper.

3

What is the purpose of FTP protocol? Explain its usage and functionality in detail along with the commands and options available.

15 marks

Answer

Sign in to view the complete answer paper.

4

Explain how Network File System allows hosts for remote operations? Explain the fundamental concepts and working of NFS.

15 marks

Answer

Sign in to view the complete answer paper.

5

Explain the following control statements with an example script in Perl: a) while b) until c) for d) foreach

15 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

What is a regular expression? Explain various regular expressions and pattern matching operators in PERL.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain with an example how to create and use references in PERL.

7 marks

Answer

Sign in to view the complete answer paper.

7

How the following operations on Tcl lists are implemented? Explain briefly. a) Creating lists b) Getting list elements c) Sorting lists.

15 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Demonstrate the concept of recursive functions in python.

7 marks

Answer

Sign in to view the complete answer paper.

b

How does a set data structure differ from a list data structure? Explain how to create and use them in python scripts.

8 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of SCRIPTING LANGUAGES from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech ITE III I, August - 2022, R16.

For the question paper without answers, switch to the Question Paper tab.

Other papers in SCRIPTING LANGUAGES

Loading Question Papers

Fetching data from database...