JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2019 SCRIPTING LANGUAGES Previous Question Paper (December - 2019 - R17)
This question paper contains two parts A and B. Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit.
Part A
Answer all questions. Each question carries 5 marks.
Differentiate between scripting language and programming language.
Answer
Scripting languages and programming languages differ primarily in their execution model, compilation process, and typical use cases.
- Execution: Programming languages are typically compiled into machine code before execution, resulting in faster performance. Scripting languages are usually interpreted line-by-line by an interpreter or virtual machine at runtime.
- Compilation: Programming languages require a separate compilation step (e.g., C, C++). Scripting languages do not require an explicit compilation step, allowing for faster development cycles (e.g., Python, JavaScript).
- Integration: Scripting languages are often designed to act as 'glue' code to automate tasks or control other software components. Programming languages are generally used to build standalone, complex applications from scratch.
- Performance: Because they are compiled, programming languages offer superior performance and direct hardware access. Scripting languages prioritize developer productivity and ease of use over raw execution speed.
- Complexity: Programming languages often require strict syntax, explicit memory management, and strong typing. Scripting languages typically feature dynamic typing, automatic memory management, and more concise, flexible syntax.
Illustrate the significance of tied variables.
Answer
Tied variables are a powerful feature in languages like Perl that allow a programmer to associate a standard variable (scalar, array, or hash) with a specific class or object. This association intercepts standard operations performed on the variable, such as fetching, storing, or deleting values, and redirects them to user-defined methods within that class.
The significance of tied variables includes:
- Custom Data Behavior: They enable the creation of variables that behave in non-standard ways, such as variables that automatically log every access, enforce data validation rules, or maintain data consistency.
- Persistence: They are commonly used to map variables to external storage systems like DBM files or databases. When a program reads from or writes to the variable, the tied class handles the underlying I/O operations, making the external storage appear as a native data structure.
- Abstraction: They provide an interface to hide complex implementation details. A user can interact with a tied hash as if it were a standard hash, while the actual data might be retrieved from a remote API or a complex configuration file.
- Debugging and Monitoring: By tying a variable, developers can easily track modifications or access patterns without altering the core logic of the application, which is invaluable for debugging state-related issues.
What type of care is required in PHP file handling?
Answer
Sign in to view the complete answer paper.
Write about globbing for pattern matching in Tcl.
Answer
Sign in to view the complete answer paper.
Which features of Python have made it a most preferred language in market?
Answer
Sign in to view the complete answer paper.
Part B
Discuss the simple uses of regular expressions.
Answer
Sign in to view the complete answer paper.
Explain List and hashes in PERL.
Answer
Sign in to view the complete answer paper.
Demonstrate the creation and implementation subroutines in PERL.
Answer
Sign in to view the complete answer paper.
What are the two ways Perl allows execution of shell commands?
Answer
Sign in to view the complete answer paper.
How Perl provides interfacing to the operating system? Explain with illustrations.
Answer
Sign in to view the complete answer paper.
Discuss the need of internet ware application. Give examples and explain its creation process in detail.
Answer
Sign in to view the complete answer paper.
Explain PHP functions that are used to implant authentication procedures.
Answer
Sign in to view the complete answer paper.
Write a PHP program to wish the user based on the current time, good morning, good afternoon, good evening and good night.( use regular convention)
Answer
Sign in to view the complete answer paper.
List the data types of PHP language.
Answer
Sign in to view the complete answer paper.
Does Tcl support event-driven programming? Explain your answer with necessary program.
Answer
Sign in to view the complete answer paper.
What are the different ways of termination of a Tcl command? Quote examples.
Answer
Sign in to view the complete answer paper.
List the Tcl commands related to procedures and strings.
Answer
Sign in to view the complete answer paper.
Describe exception handling in Python and give illustrations.
Answer
Sign in to view the complete answer paper.
Construct a simple web application using Python to display the customer account balance if the customer number and password are valid.
Answer
Sign in to view the complete answer paper.