JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech IV Year SCRIPTING LANGUAGES Previous Question Paper (February/March - 2022 - R18)

B.Tech | IV Year | I Semester | R18 | February/March - 2022

Answer PaperPaper Code: 157DUMaximum Marks: 75Time: 3 Hours

Answer Any Five Questions. All Questions carry equal marks.

Main

115 marks
a

What does the directory file in UNIX contain? Explain.

8 marks

Answer

In UNIX, a directory file is a specialized file that acts as a container for other files and directories. Unlike regular files that contain data, a directory file contains a list of mappings that associate filenames with their corresponding inode numbers.

The structure of a directory file is essentially a table with two primary columns: the filename and the inode number. When a user accesses a file by name, the system kernel reads the directory file to find the associated inode number, which then provides the metadata and physical location of the file on the disk.

Key characteristics include:

  • It maintains the hierarchical structure of the file system.
  • Every directory contains at least two entries: . (representing the current directory) and .. (representing the parent directory).
  • Only the kernel can directly modify the contents of a directory file, while users interact with it through system calls like mkdir or rmdir.
b

Explore the following commands with examples: i) mkdir ii) rmdir iii) chdir iv) getcwd

7 marks

Answer

The following commands are essential for directory management in UNIX environments:

  • mkdir: Used to create a new directory.
    Example:
    mkdir project_files
    This creates a directory named 'project_files' in the current location.
  • rmdir: Used to remove an empty directory. It will fail if the directory contains any files.
    Example:
    rmdir temp_folder
  • chdir (cd): Used to change the current working directory to a specified path.
    Example:
    cd /home/user/documents
    This moves the user into the 'documents' folder.
  • getcwd: This is typically a system call or a function used in programming (like Python or C) to retrieve the absolute path of the current working directory.
    Example (Python):
    import os
    print(os.getcwd())
    This prints the full path of the directory where the script is currently executing.
215 marks
a

Explain the role of Kernel and its functions in Linux.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain zipping and unzipping commands.

8 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Explain the working of DHCP in Linux.

7 marks

Answer

Sign in to view the complete answer paper.

b

How does a Network File System differ from an FTP? Explain.

8 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Briefly explain the following Networking tools: i) ping ii) finger iii) netstat iv) tracepath

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain the working of a NFS and its functions.

7 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

How do you activate Perl debugger? What does it do?

7 marks

Answer

Sign in to view the complete answer paper.

b

List and explain any six Perl debugger commands.

8 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Give the rules of Regular expression matching of Perl.

8 marks

Answer

Sign in to view the complete answer paper.

b

Write Perl statements using regular expressions for the following: i) Matches the date format dd-mm-yyyy ii) Count the number of times the word “the” occurs in the given text iii) Substitute lower case with upper case

7 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

Discuss in detail about the variables and data structures in TCL.

7 marks

Answer

Sign in to view the complete answer paper.

b

Write a Tk program to demonstrate Keyboard events?

8 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Describe the different types of Exceptions in Python.

8 marks

Answer

Sign in to view the complete answer paper.

b

Write a small code to illustrate try and except statements in Python?

7 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 IV Year I Semester, February/March - 2022, R18.

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

Other papers in SCRIPTING LANGUAGES

Loading Question Papers

Fetching data from database...