JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2020 SCRIPTING LANGUAGES Previous Question Paper (October/ November - 2020 - R15)

MCA | 2020 | II | R15 | October/ November - 2020

Answer PaperPaper Code: 821AHMaximum Marks: 75Time: 2 Hours

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

What are the applications of Scripting Languages?

8 marks

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.
b

Write a Perl script to find whether given string is a palindrome or not.

7 marks

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";
}
2

Illustrate the Control Structures supported by Perl with syntax and examples.

15 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Discuss about various security issues in Perl in detail.

8 marks

Answer

Sign in to view the complete answer paper.

b

What is Dirty Hands Internet Programming?

7 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Illustrate the concept of string interpolation in PHP with an example.

8 marks

Answer

Sign in to view the complete answer paper.

b

Distinguish pass by value and pass by reference mechanisms in PHP.

7 marks

Answer

Sign in to view the complete answer paper.

5

Explain about Database based and IP based authentication methodologies.

15 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

What are the advantages of Mcrypt Package in PHP? Write PHP script to using Mcrypt package.

8 marks

Answer

Sign in to view the complete answer paper.

b

How to embed a PHP code in to web pages? Explain it with an example.

7 marks

Answer

Sign in to view the complete answer paper.

7

What are the benefits of Visual Tool kit? Discuss about the concept of Events and Binding in tk.

15 marks

Answer

Sign in to view the complete answer paper.

8

Describe Exception Handling Mechanism in Python with suitable examples.

15 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of SCRIPTING LANGUAGES from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for MCA 2020 II, October/ November - 2020, R15.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in SCRIPTING LANGUAGES

Loading Question Papers

Fetching data from database...