JNTU
JNTU B.Tech III SCRIPTING LANGUAGES Previous Question Paper (September - 2021 - R16)
Answer any five questions
All questions carry equal marks
Main
Elaborate the basic file system functions in Linux with examples.
Answer
Linux provides a set of system calls to manage files, which are the fundamental building blocks of the file system. Key functions include:
- open(): Used to create or open a file. It returns a file descriptor. Example:
int fd = open("file.txt", O_RDWR | O_CREAT); - read(): Reads data from a file descriptor into a buffer. Example:
read(fd, buffer, size); - write(): Writes data from a buffer to a file descriptor. Example:
write(fd, "Hello", 5); - close(): Terminates the association between the file descriptor and the file. Example:
close(fd); - lseek(): Repositions the read/write file offset. Example:
lseek(fd, 0, SEEK_SET); - stat(): Retrieves file metadata such as size, permissions, and ownership. Example:
stat("file.txt", &file_info);
Illustrate the features and components of Linux kernels.
Answer
The Linux kernel is the core interface between hardware and processes. Its primary features include modularity, multitasking, and support for symmetric multiprocessing (SMP). The key components are:
- System Call Interface (SCI): Acts as the bridge between user-space applications and kernel services.
- Process Management: Handles the creation, scheduling, and termination of processes using the scheduler.
- Memory Management: Manages virtual memory, paging, and physical RAM allocation to ensure process isolation.
- Virtual File System (VFS): Provides an abstraction layer that allows the kernel to support multiple file system formats transparently.
- Network Stack: Implements protocols like TCP/IP to manage network communication.
- Device Drivers: Modules that allow the kernel to communicate with specific hardware components like disks, keyboards, and network cards.
What is Linux and how does it work? Explain in detail.
Answer
Sign in to view the complete answer paper.
Discuss the General usage of Linux kernel and basic commands.
Answer
Sign in to view the complete answer paper.
Explain in detail about DHCP.
Answer
Sign in to view the complete answer paper.
Explain the File Transfer Protocol in Linux.
Answer
Sign in to view the complete answer paper.
Explain about various options used in /etc/exports file.
Answer
Sign in to view the complete answer paper.
What are the configuration files in NFS of Linux OS?
Answer
Sign in to view the complete answer paper.
Discuss about Lists and Hashes.
Answer
Sign in to view the complete answer paper.
What are the logical operators used for small scale operations? Explain them briefly.
Answer
Sign in to view the complete answer paper.
Briefly explain the regular expressions in Perl.
Answer
Sign in to view the complete answer paper.
Explain the TCL data structures.
Answer
Sign in to view the complete answer paper.
Discuss about the Pack Geometry Manager.
Answer
Sign in to view the complete answer paper.
Explain in detail about control flow tools in python.
Answer
Sign in to view the complete answer paper.
Explain about methods in Lists of Python with appropriate examples.
Answer
Sign in to view the complete answer paper.