JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2020 SCRIPTING LANGUAGES Previous Question Paper (October/ November - 2020 - R15)
Answer any five questions. All questions carry equal marks.
Main
What are the applications of Scripting Languages?
Answer
Scripting languages are versatile tools used across various domains due to their ease of use, rapid development capabilities, and powerful text-processing features. Key applications include:
- System Administration: Automating routine tasks such as file management, user account creation, system monitoring, and log analysis using languages like Bash, PowerShell, or Python.
- Web Development: Enabling server-side logic and dynamic content generation. Languages like PHP, Ruby, and JavaScript (Node.js) interact with databases and handle HTTP requests.
- Data Processing and Extraction: Efficiently parsing, filtering, and transforming large datasets or log files. Perl and Python are widely used for data scraping and text manipulation.
- GUI Automation: Controlling desktop applications and automating user interactions through scripts that simulate mouse clicks and keyboard inputs.
- Software Testing: Writing test scripts to perform automated regression testing, unit testing, and continuous integration workflows.
- Rapid Prototyping: Developing functional software prototypes quickly to validate concepts before implementing them in high-performance compiled languages.
- Embedded Systems: Configuring and controlling hardware components in IoT devices and embedded environments where resource-efficient scripting is required.
Write a Perl script to find whether given string is a palindrome or not.
Answer
The following Perl script reads a string from the user, reverses it, and compares it with the original to determine if it is a palindrome:
#!/usr/bin/perl
use strict;
use warnings;
print "Enter a string: ";
my $str = ;
chomp($str);
my $reversed = reverse($str);
if ($str eq $reversed) {
print "The string '$str' is a palindrome.\n";
} else {
print "The string '$str' is not a palindrome.\n";
}Illustrate the Control Structures supported by Perl with syntax and examples.
Answer
Sign in to view the complete answer paper.
Discuss about various security issues in Perl in detail.
Answer
Sign in to view the complete answer paper.
What is Dirty Hands Internet Programming?
Answer
Sign in to view the complete answer paper.
Illustrate the concept of string interpolation in PHP with an example.
Answer
Sign in to view the complete answer paper.
Distinguish pass by value and pass by reference mechanisms in PHP.
Answer
Sign in to view the complete answer paper.
Explain about Database based and IP based authentication methodologies.
Answer
Sign in to view the complete answer paper.
What are the advantages of Mcrypt Package in PHP? Write PHP script to using Mcrypt package.
Answer
Sign in to view the complete answer paper.
How to embed a PHP code in to web pages? Explain it with an example.
Answer
Sign in to view the complete answer paper.
What are the benefits of Visual Tool kit? Discuss about the concept of Events and Binding in tk.
Answer
Sign in to view the complete answer paper.
Describe Exception Handling Mechanism in Python with suitable examples.
Answer
Sign in to view the complete answer paper.