JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2023 SCRIPTING LANGUAGES Previous Question Paper (March - 2023 - R17)
Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.
Part A
Write down the characteristics of scripting languages.
Answer
Scripting languages are characterized by the following features:
- Interpreted nature: Code is executed line-by-line by an interpreter rather than being compiled into machine code.
- Dynamic typing: Variables do not require explicit type declarations; types are determined at runtime.
- Ease of use: They generally have simpler syntax and require less boilerplate code compared to system programming languages.
- High-level abstraction: They provide built-in support for complex data structures like lists, dictionaries, and associative arrays.
- Extensibility: They are often designed to be embedded within or to control other software applications.
Explain briefly about pack and unpack commands in Perl.
Answer
In Perl, pack and unpack are used for binary data conversion:
- pack: Converts a list of values into a binary string based on a specified template. It is essential for creating data structures that can be written to binary files or sent over network sockets.
- unpack: Performs the inverse operation, taking a binary string and converting it back into a list of Perl values according to the provided template.
These commands are crucial for handling fixed-length binary formats and interfacing with C structures or low-level system protocols.
Write the procedure for uploading a file using PHP.
Answer
Sign in to view the complete answer paper.
Describe the grammar that determines valid statements in TCL.
Answer
Sign in to view the complete answer paper.
Why is python Indentation more important? State some of the indentation rules. How to avoid python Indentation errors?
Answer
Sign in to view the complete answer paper.
Part B
Explore the basic capabilities and features of PERL.
Answer
Sign in to view the complete answer paper.
How to define and call subroutines in Perl? Illustrate by example scripts.
Answer
Sign in to view the complete answer paper.
What is meant by web scripting? Explain the need and uses of web scripting.
Answer
Sign in to view the complete answer paper.
Illustrate how to create arrays and list data structures in Perl with example scripts?
Answer
Sign in to view the complete answer paper.
Describe the concept of typeglob in Perl.
Answer
Sign in to view the complete answer paper.
Demonstrate sysread() and syswrite() functions in perl.
Answer
Sign in to view the complete answer paper.
What is the need for referencing and dereferencing operations?
Answer
Sign in to view the complete answer paper.
Explain the application of references to arrays and hashes with illustration.
Answer
Sign in to view the complete answer paper.
Examines PHP’s built-in authentication feature and demonstrates several authentication methodologies.
Answer
Sign in to view the complete answer paper.
Explain in detail about printf() and sprint() statements in PHP.
Answer
Sign in to view the complete answer paper.
Discuss briefly about md5() and mhash() functions in PHP.
Answer
Sign in to view the complete answer paper.
Give the structure of the TCL application and illustrate the interaction between the TCL interpreter and the application.
Answer
Sign in to view the complete answer paper.
How to build, create and use list and arrays in TCL? Explain.
Answer
Sign in to view the complete answer paper.
Explain the for and for each loops available in TCL.
Answer
Sign in to view the complete answer paper.
Write down the nuts and bolts of internet programming using TCL.
Answer
Sign in to view the complete answer paper.
How to read and even change global variables from inside functions? Illustrate with an example python program.
Answer
Sign in to view the complete answer paper.
Demonstrate nested function in python with an example code.
Answer
Sign in to view the complete answer paper.
How to build an efficient web system using python? Explain in detail.
Answer
Sign in to view the complete answer paper.