Jawaharlal Nehru Technological University Hyderabad
Jawaharlal Nehru Technological University Hyderabad B.Tech III Year SCRIPTING LANGUAGES Previous Question Paper (February - 2023 - R18)
Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.
Part A
What do you mean by an iterator in Ruby?
Answer
An iterator in Ruby is a method that allows you to traverse the elements of a collection, such as an array or a hash. It uses a block of code to perform operations on each element sequentially without requiring explicit loop management.
State the importance of RubyGems.
Answer
RubyGems is the standard package manager for Ruby. Its importance lies in providing a unified format for distributing Ruby programs and libraries, simplifying the installation, management, and versioning of dependencies, and enabling easy sharing of code within the Ruby ecosystem.
Write about Fixnum immediate value in Ruby.
Answer
Sign in to view the complete answer paper.
Write an extension code in C that is plug-compatible with that Ruby class.
Answer
Sign in to view the complete answer paper.
Define the term Web scripting.
Answer
Sign in to view the complete answer paper.
How does chop( ) and chomp( ) functions in PERL differ?
Answer
Sign in to view the complete answer paper.
Define a module and a package.
Answer
Sign in to view the complete answer paper.
Give a brief file system operations in PERL.
Answer
Sign in to view the complete answer paper.
How to create a list in TCL? Give an example.
Answer
Sign in to view the complete answer paper.
What is the purpose of ‘exec’ and ‘append’ command in Tcl?
Answer
Sign in to view the complete answer paper.
Part B
"Embedding Ruby in HTML is a very powerful concept". Support this statement using code snippets.
Embedding Ruby in HTML.
Answer
Sign in to view the complete answer paper.
How to access Tk features from Ruby? Discuss briefly creating a simple application.
Answer
Sign in to view the complete answer paper.
How Ruby CGI handles cookies and sessions? Demonstrate using the sample Ruby CGI Scripts.
Answer
Sign in to view the complete answer paper.
Explain various C/Ruby data type conversion functions and macros with clear syntax and illustrative examples for each.
Answer
Sign in to view the complete answer paper.
Explain StringValue and StringValuePtr macros in Ruby with sample Ruby script.
Answer
Sign in to view the complete answer paper.
How to embed ruby in your application? What is the role of Ruby interpreter? Explain.
Answer
Sign in to view the complete answer paper.
Explain various regular expressions and pattern matching operators available in PERL with examples.
Answer
Sign in to view the complete answer paper.
What are the uses of scripting languages?
Answer
Sign in to view the complete answer paper.
Explain various string and numeric built-in functions available in PERL.
Answer
Sign in to view the complete answer paper.
Outline the security issues in internet programming of PERL.
Answer
Sign in to view the complete answer paper.
Give a detail note on using PERL interfacing to an operating system.
Answer
Sign in to view the complete answer paper.
How to create packages and modules in PERL? Describe in detail.
Answer
Sign in to view the complete answer paper.
What is the need of pack( ) and unpack( ) functions in Perl.
Answer
Sign in to view the complete answer paper.
What are the major functionalities of a Tcl Parser? Explain in detail about namespaces and recursive procedures in TCL.
Answer
Sign in to view the complete answer paper.
Write Tk script to create a login form.
Answer
Sign in to view the complete answer paper.
How are events handled in Tk?
Answer
Sign in to view the complete answer paper.