JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III SCRIPTING LANGUAGES Previous Question Paper (November/December - 2020 - R16)
Answer any five questions. All questions carry equal marks.
Main
Describe the uses of scripting languages.
Answer
Scripting languages are primarily used to automate tasks, integrate disparate software components, and enhance the functionality of existing applications. Their key uses include:
- Automation: Automating repetitive system administration tasks, such as file management, backups, and log analysis, using shell scripts or Python.
- Web Development: Enabling dynamic content generation on the server-side (e.g., PHP, Node.js) and interactive behavior on the client-side (JavaScript).
- Glue Code: Serving as an interface to connect different software components or libraries written in compiled languages like C or C++, allowing developers to leverage existing high-performance code.
- Rapid Prototyping: Facilitating quick development cycles for testing concepts before committing to a full-scale implementation in a more complex language.
- Data Processing: Simplifying text manipulation, data extraction, and report generation through powerful string handling and regular expression support.
Outline the features of visual scripting.
Answer
Visual scripting is a programming paradigm that allows users to create programs by manipulating graphical elements instead of writing text-based code. Its primary features include:
- Node-Based Interface: Logic is represented as nodes (representing functions or data) connected by wires (representing data flow or execution order), making the program structure visually explicit.
- Abstraction of Syntax: It removes the need for memorizing complex language syntax, semicolons, or braces, which lowers the barrier to entry for non-programmers.
- Real-time Feedback: Many visual scripting environments provide immediate visual cues when connections are made or broken, allowing for rapid debugging and experimentation.
- Modularity: Complex functionalities are encapsulated into reusable nodes or sub-graphs, promoting a modular design approach.
- Event-Driven Architecture: These systems are often designed to respond to user inputs or system events, making them highly effective for game development and interactive media.
- Lower Cognitive Load: By mapping logic to a spatial layout, it helps users visualize the flow of data, which is particularly useful for complex state machines and animation logic.
Describe the operating system interface facilities that are common to both Windows and UNIX implementations of PERL.
Answer
Sign in to view the complete answer paper.
With an example PHP script, explain how to create and validate a simple form.
Answer
Sign in to view the complete answer paper.
Explain briefly about the following commands: i) eval ii) exec
Answer
Sign in to view the complete answer paper.
Explain about Perl toolkits. Mention how it is different from TCL/TK.
Answer
Sign in to view the complete answer paper.
Describe in detail on building small and efficient python web systems.
Answer
Sign in to view the complete answer paper.
List and explain various operators available in PERL.
Answer
Sign in to view the complete answer paper.
Define Hash. How to create and implement hashes in PERL? Explain.
Answer
Sign in to view the complete answer paper.
How to embed PHP code into your web pages directly?
Answer
Sign in to view the complete answer paper.
Explain the following control structures in PHP: i) for ii) foreach iii) while iv) do-while
Answer
Sign in to view the complete answer paper.
Explain in detail about how to implement authentication via a PHP script using hard-coded and data-based methods.
Answer
Sign in to view the complete answer paper.