JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2021 SCRIPTING LANGUAGES Previous Question Paper (July/August - 2021 - R15)

MCA | 2021 | II | R15 | July/August - 2021

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

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

Discuss the various characteristics of a scripting languages.

8 marks

Answer

Scripting languages are high-level, interpreted languages designed for automating tasks and integrating software components. Their key characteristics include:

  • Interpretation: Code is executed line-by-line by an interpreter rather than being pre-compiled into machine code, facilitating rapid development and testing.
  • Dynamic Typing: Variables do not require explicit type declarations; types are determined at runtime, allowing for greater flexibility.
  • Ease of Use: They feature simplified syntax and high-level abstractions, reducing the amount of boilerplate code required compared to languages like C or C++.
  • Built-in Data Structures: Most scripting languages provide powerful, native support for complex data types like associative arrays (hashes), lists, and dictionaries.
  • Extensibility and Embedding: They are often designed to be embedded within larger applications or to act as 'glue' code, calling functions from external libraries or system APIs.
  • Automatic Memory Management: They typically include garbage collection, which handles memory allocation and deallocation, preventing common errors such as memory leaks.
  • Rapid Prototyping: Due to the lack of a compilation step and the concise syntax, they are ideal for quick development cycles and iterative design.
b

Write a Perl program to find the maximum and minimum numbers in a list of arguments.

7 marks

Answer

The following Perl script processes command-line arguments to identify the minimum and maximum values:

#!/usr/bin/perl
use strict;
use warnings;

if (@ARGV == 0) {
    print "No arguments provided.\n";
    exit;
}

my $min = $ARGV[0];
my $max = $ARGV[0];

foreach my $num (@ARGV) {
    if ($num < $min) { $min = $num; }
    if ($num > $max) { $max = $num; }
}

print "Minimum: $min\n";
print "Maximum: $max\n";
215 marks
a

Explain the modern applications of scripting languages.

8 marks

Answer

Sign in to view the complete answer paper.

b

What is the difference between hashes and arrays?

7 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Explain how to create internet ware applications using PERL scripts with an illustrative example.

8 marks

Answer

Sign in to view the complete answer paper.

b

Write about the data structures used in PERL scripts.

7 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Write briefly about eval function in PERL.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain about importing the module names in PERL.

7 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Explain the functions for dealing with arrays in PHP.

8 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about One-Time URLs and Password Recovery in PHP.

7 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Explain the procedure to send a Plain-Text E-mail in PHP.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain looping statements in detail by giving appropriate examples.

7 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

List out all control structures in Tcl with examples.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain events and its usage in Tk with examples. List out Fundamental Concepts of Tk.

7 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Explain about the interaction between different components of a web framework.

8 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the sequence types that python supports. Explain in detail about strings.

7 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of SCRIPTING LANGUAGES from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for MCA 2021 II, July/August - 2021, R15.

For the question paper without answers, switch to the Question Paper tab.

Other papers in SCRIPTING LANGUAGES

Loading Question Papers

Fetching data from database...