JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2022 SCRIPTING LANGUAGES Previous Question Paper (October/November - 2022 - R17)
Answer any five questions
All questions carry equal marks
Main
What are the characteristics of scripting languages? Compare them with markup languages and programming language.
Answer
Scripting languages are high-level, interpreted languages designed for automating tasks, gluing together disparate software components, and facilitating rapid application development. Their primary characteristics include:
- Interpretation: Code is executed line-by-line by an interpreter rather than being compiled into machine code, allowing for faster development cycles and dynamic debugging.
- Dynamic Typing: Variable types are determined at runtime, providing flexibility and reducing the amount of boilerplate code required.
- High-Level Abstraction: They handle memory management, garbage collection, and complex data structures automatically, allowing developers to focus on logic rather than hardware constraints.
- Extensibility and Embedding: They are often designed to be embedded within larger host applications or to call functions from libraries written in compiled languages like C or C++.
- Ease of Use: They typically feature simple syntax, making them accessible for quick scripting and prototyping.
The comparison between scripting, programming, and markup languages is as follows:
| Feature | Scripting Languages | Programming Languages | Markup Languages |
|---|---|---|---|
| Execution | Interpreted at runtime | Compiled into machine code | Parsed/Rendered by browsers |
| Primary Goal | Automation and glue code | Building complex systems | Structuring and formatting data |
| Performance | Generally slower | High performance | Not applicable (data representation) |
| Typing | Dynamic | Static or Dynamic | N/A (No logic/variables) |
| Examples | Python, Perl, JavaScript | C, C++, Java | HTML, XML, SGML |
In summary, programming languages are used to build robust, high-performance software from the ground up; scripting languages act as the bridge to automate and integrate these systems; and markup languages provide the structural framework for data presentation without inherent computational logic.
What are the control structures of Perl language?
Answer
Perl provides a robust set of control structures to manage the flow of execution, categorized into conditional statements and looping constructs.
Conditional Statements:
- if/elsif/else: Used for decision making. Perl requires block braces even for single-line statements.
- unless: The logical inverse of an if statement; executes the block only if the condition is false.
- given/when/default: Introduced in newer versions as a switch-like mechanism for complex conditional branching.
Looping Constructs:
- while/until: Executes a block repeatedly as long as a condition is true (while) or false (until).
- for/foreach: The foreach loop is commonly used to iterate over lists or arrays, while the C-style for loop uses three-part expressions (initialization, condition, increment).
- do-while/do-until: Ensures the block executes at least once before checking the condition.
Perl also provides loop control operators like last (break), next (continue), and redo to modify the flow within these structures.
What is the support Perl provides for regular expressions?
Answer
Sign in to view the complete answer paper.
Write a Perl script to create a web application for customer complaint launch.
Answer
Sign in to view the complete answer paper.
How does Perl handle security issues in internet applications?
Answer
Sign in to view the complete answer paper.
Does Perl support constructors? Justify your answer.
Answer
Sign in to view the complete answer paper.
Illustrate the use of LWP::Simple and LWP::User Agent modules.
Answer
Sign in to view the complete answer paper.
How to create function libraries in PHP?
Answer
Sign in to view the complete answer paper.
What is the use of key( ) and reset( ) functions of PHP arrays.
Answer
Sign in to view the complete answer paper.
Write PHP script for validating form data in a function and explain the process.
Answer
Sign in to view the complete answer paper.
Explain a typical authentication process in HTTP.
Answer
Sign in to view the complete answer paper.
Write TCL script to demonstrate event driven programming.
Answer
Sign in to view the complete answer paper.
How to integrate Tk with TCL and Perl? Explain the advantages of these integrations.
Answer
Sign in to view the complete answer paper.
Demonstrate exception handling in Python programming.
Answer
Sign in to view the complete answer paper.
Develop a web application to collect customer reviews about the service provided by your organization. Use standard application framework.
Answer
Sign in to view the complete answer paper.