JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2019 SCRIPTING LANGUAGES Previous Question Paper (April/May - 2019 - R17)
Note: This question paper contains two parts A and B. Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit. Each question carries 10 marks and may have a, b, c as sub questions.
Part A
Answer all questions. 5 × 5 Marks = 25
What is the phenomenon of Perl? Explain about hashes.
Answer
Perl is often described by the phenomenon of TMTOWTDI (There's More Than One Way To Do It), which emphasizes flexibility and expressive power, allowing developers to solve problems using various programming paradigms. Hashes in Perl are associative arrays that store data as unordered collections of key-value pairs. They are denoted by the prefix %. Keys are unique strings used to index the hash, and values can be any scalar data. Accessing a specific value is performed using the syntax $hash_name{$key}.
Discuss about objects in detail.
Answer
Objects in Perl are implemented using references and packages. An object is simply a reference that knows which class it belongs to, achieved through the bless function. A class is a package that provides methods to operate on these objects. When a method is called, the object reference is passed as the first argument, typically referred to as $self. Perl supports inheritance through the @ISA array, allowing classes to inherit methods from parent classes.
What are features of PHP? Explain.
Answer
Sign in to view the complete answer paper.
Explain about variables and data in the Tcl.
Answer
Sign in to view the complete answer paper.
What are Python statements? Explain.
Answer
Sign in to view the complete answer paper.
Part B
Answer one question from each unit. 5 × 10 Marks = 50
What are uses for scripting languages? Explain in detail.
Answer
Sign in to view the complete answer paper.
What are characteristics of scripting languages? Explain.
Answer
Sign in to view the complete answer paper.
Explain about working with arrays and lists in Perl.
Answer
Sign in to view the complete answer paper.
Explain about data structure and packages in Perl.
Answer
Sign in to view the complete answer paper.
Discuss about dirty hands interment programming.
Answer
Sign in to view the complete answer paper.
Describe modules in Perl.
Answer
Sign in to view the complete answer paper.
Explain about interfacing to the operating system in Perl.
Answer
Sign in to view the complete answer paper.
Discuss about string interpolation in PHP.
Answer
Sign in to view the complete answer paper.
Explain functions of merging, slicing, splicing and dissecting arrays.
Answer
Sign in to view the complete answer paper.
Describe creating function and passing arguments in PHP.
Answer
Sign in to view the complete answer paper.
What are file inclusion statements in PHP? Explain with examples.
Answer
Sign in to view the complete answer paper.
How to work with files and pipes in Tcl? Explain with examples.
Answer
Sign in to view the complete answer paper.
What is a procedure? Explain procedures in Tcl with examples.
Answer
Sign in to view the complete answer paper.
What are fundamental concepts of Tk? Explain in detail.
Answer
Sign in to view the complete answer paper.
Loops in Python
Answer
Sign in to view the complete answer paper.
Web application framework.
Answer
Sign in to view the complete answer paper.
Explain Exception handing in python.
Answer
Sign in to view the complete answer paper.