JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

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

MCA | 2022 | II | R17 | October/November - 2022

Answer PaperPaper Code: 842ACMaximum Marks: 75Time: 3 Hours

Answer any five questions

All questions carry equal marks

Main

1

What are the characteristics of scripting languages? Compare them with markup languages and programming language.

15 marks

Answer

Scripting languages are high-level, interpreted languages designed for automating tasks, gluing together disparate software components, and facilitating rapid application development. Their primary characteristics include:

  • Interpretation: Code is executed line-by-line by an interpreter rather than being compiled into machine code, allowing for faster development cycles and dynamic debugging.
  • Dynamic Typing: Variable types are determined at runtime, providing flexibility and reducing the amount of boilerplate code required.
  • High-Level Abstraction: They handle memory management, garbage collection, and complex data structures automatically, allowing developers to focus on logic rather than hardware constraints.
  • Extensibility and Embedding: They are often designed to be embedded within larger host applications or to call functions from libraries written in compiled languages like C or C++.
  • Ease of Use: They typically feature simple syntax, making them accessible for quick scripting and prototyping.

The comparison between scripting, programming, and markup languages is as follows:

FeatureScripting LanguagesProgramming LanguagesMarkup Languages
ExecutionInterpreted at runtimeCompiled into machine codeParsed/Rendered by browsers
Primary GoalAutomation and glue codeBuilding complex systemsStructuring and formatting data
PerformanceGenerally slowerHigh performanceNot applicable (data representation)
TypingDynamicStatic or DynamicN/A (No logic/variables)
ExamplesPython, Perl, JavaScriptC, C++, JavaHTML, XML, SGML

In summary, programming languages are used to build robust, high-performance software from the ground up; scripting languages act as the bridge to automate and integrate these systems; and markup languages provide the structural framework for data presentation without inherent computational logic.

215 marks
a

What are the control structures of Perl language?

7 marks

Answer

Perl provides a robust set of control structures to manage the flow of execution, categorized into conditional statements and looping constructs.

Conditional Statements:

  • if/elsif/else: Used for decision making. Perl requires block braces even for single-line statements.
  • unless: The logical inverse of an if statement; executes the block only if the condition is false.
  • given/when/default: Introduced in newer versions as a switch-like mechanism for complex conditional branching.

Looping Constructs:

  • while/until: Executes a block repeatedly as long as a condition is true (while) or false (until).
  • for/foreach: The foreach loop is commonly used to iterate over lists or arrays, while the C-style for loop uses three-part expressions (initialization, condition, increment).
  • do-while/do-until: Ensures the block executes at least once before checking the condition.

Perl also provides loop control operators like last (break), next (continue), and redo to modify the flow within these structures.

b

What is the support Perl provides for regular expressions?

8 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Write a Perl script to create a web application for customer complaint launch.

8 marks

Answer

Sign in to view the complete answer paper.

b

How does Perl handle security issues in internet applications?

7 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Does Perl support constructors? Justify your answer.

7 marks

Answer

Sign in to view the complete answer paper.

b

Illustrate the use of LWP::Simple and LWP::User Agent modules.

8 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

How to create function libraries in PHP?

7 marks

Answer

Sign in to view the complete answer paper.

b

What is the use of key( ) and reset( ) functions of PHP arrays.

8 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Write PHP script for validating form data in a function and explain the process.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain a typical authentication process in HTTP.

7 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

Write TCL script to demonstrate event driven programming.

7 marks

Answer

Sign in to view the complete answer paper.

b

How to integrate Tk with TCL and Perl? Explain the advantages of these integrations.

8 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Demonstrate exception handling in Python programming.

7 marks

Answer

Sign in to view the complete answer paper.

b

Develop a web application to collect customer reviews about the service provided by your organization. Use standard application framework.

8 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 2022 II, October/November - 2022, R17.

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

Other papers in SCRIPTING LANGUAGES

Loading Question Papers

Fetching data from database...