JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2022 SCRIPTING LANGUAGES Previous Question Paper (May - 2022 - R17)
Answer any five questions. All questions carry equal marks.
Main
What are the features that characterize scripting languages?
Answer
Scripting languages are characterized by several key features that distinguish them from traditional compiled programming languages:
- Interpreted Execution: Code is executed line-by-line by an interpreter rather than being compiled into machine code, which facilitates rapid prototyping and debugging.
- Dynamic Typing: Variable types are determined at runtime rather than compile-time, allowing for greater flexibility and less boilerplate code.
- High-Level Abstraction: They provide built-in support for complex data structures like lists, dictionaries, and associative arrays, hiding low-level memory management details.
- Ease of Use: They feature concise syntax and minimal declarations, significantly reducing the lines of code required to perform common tasks.
- Extensibility and Embedding: Scripting languages are often designed to be embedded within larger host applications or extended via libraries written in lower-level languages like C or C++.
- Platform Independence: Most scripting languages are cross-platform, as the interpreter abstracts the underlying operating system differences.
What activities does traditional scripting include? Explain.
Answer
Traditional scripting focuses on automating repetitive tasks and managing interactions between software components. The primary activities include:
- Task Automation: Automating routine system administration tasks such as file management, backup operations, and user account provisioning using shell scripts or batch files.
- Glue Code Development: Acting as a bridge between disparate software components or applications, allowing them to exchange data and function as a cohesive system.
- Data Processing and Extraction: Parsing text files, logs, or structured data formats (like CSV or XML) to extract information or transform data for reporting and analysis.
- System Configuration: Managing environment variables, setting up application configurations, and orchestrating the startup sequence of complex software environments.
- Rapid Prototyping: Quickly building functional models of software features to test logic or user interfaces before committing to a full-scale implementation in a compiled language.
Illustrate the simple uses of regular expressions in Perl.
Answer
Sign in to view the complete answer paper.
Describe semi private variables with illustrations.
Answer
Sign in to view the complete answer paper.
Which features of PHP attract both new and expert programmers alike? Explain them.
Answer
Sign in to view the complete answer paper.
How to aggregate functions together as libraries and include them into the script?
Answer
Sign in to view the complete answer paper.
With examples, explain complex array manipulation tasks in PHP.
Answer
Sign in to view the complete answer paper.
Discuss validation of web forms. Quote common predefined validation rules.
Answer
Sign in to view the complete answer paper.
Explain the configuration directives pertinent to PHP’s mail function and give examples to highlight this function’s usage variations.
Answer
Sign in to view the complete answer paper.
How to encrypt data with MCrypt package?
Answer
Sign in to view the complete answer paper.
Illustrate PHP authentication mechanisms.
Answer
Sign in to view the complete answer paper.
Create a web page for your department using PHP.
Answer
Sign in to view the complete answer paper.
Discuss the fundamental concepts of Tk.
Answer
Sign in to view the complete answer paper.
"Eval is a general purpose building block for creating and executing Tcl scripts". Comment.
Answer
Sign in to view the complete answer paper.
How exceptions are handled in Python?
Answer
Sign in to view the complete answer paper.
What is a module in Python? Discuss any three modules being widely used by programmers.
Answer
Sign in to view the complete answer paper.