Jawaharlal Nehru Technological University Hyderabad

Jawaharlal Nehru Technological University Hyderabad B.Tech III Year SCRIPTING LANGUAGES Previous Question Paper (February - 2023 - R18)

B.Tech | III Year | II Semester | R18 | February - 2023

Answer PaperPaper Code: 156CUMaximum Marks: 75Time: 3 Hours

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

125 marks
a

What do you mean by an iterator in Ruby?

2 marks

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.

b

State the importance of RubyGems.

3 marks

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.

c

Write about Fixnum immediate value in Ruby.

2 marks

Answer

Sign in to view the complete answer paper.

d

Write an extension code in C that is plug-compatible with that Ruby class.

3 marks

Answer

Sign in to view the complete answer paper.

e

Define the term Web scripting.

2 marks

Answer

Sign in to view the complete answer paper.

f

How does chop( ) and chomp( ) functions in PERL differ?

3 marks

Answer

Sign in to view the complete answer paper.

g

Define a module and a package.

2 marks

Answer

Sign in to view the complete answer paper.

h

Give a brief file system operations in PERL.

3 marks

Answer

Sign in to view the complete answer paper.

i

How to create a list in TCL? Give an example.

2 marks

Answer

Sign in to view the complete answer paper.

j

What is the purpose of ‘exec’ and ‘append’ command in Tcl?

3 marks

Answer

Sign in to view the complete answer paper.

Part B

2

"Embedding Ruby in HTML is a very powerful concept". Support this statement using code snippets.

10 marks
a

Embedding Ruby in HTML.

5 marks

Answer

Sign in to view the complete answer paper.

b

How to access Tk features from Ruby? Discuss briefly creating a simple application.

5 marks

Answer

Sign in to view the complete answer paper.

OR
3

How Ruby CGI handles cookies and sessions? Demonstrate using the sample Ruby CGI Scripts.

10 marks

Answer

Sign in to view the complete answer paper.

4

Explain various C/Ruby data type conversion functions and macros with clear syntax and illustrative examples for each.

10 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Explain StringValue and StringValuePtr macros in Ruby with sample Ruby script.

4 marks

Answer

Sign in to view the complete answer paper.

b

How to embed ruby in your application? What is the role of Ruby interpreter? Explain.

6 marks

Answer

Sign in to view the complete answer paper.

6

Explain various regular expressions and pattern matching operators available in PERL with examples.

10 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

What are the uses of scripting languages?

4 marks

Answer

Sign in to view the complete answer paper.

b

Explain various string and numeric built-in functions available in PERL.

6 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Outline the security issues in internet programming of PERL.

5 marks

Answer

Sign in to view the complete answer paper.

b

Give a detail note on using PERL interfacing to an operating system.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

How to create packages and modules in PERL? Describe in detail.

6 marks

Answer

Sign in to view the complete answer paper.

b

What is the need of pack( ) and unpack( ) functions in Perl.

4 marks

Answer

Sign in to view the complete answer paper.

10

What are the major functionalities of a Tcl Parser? Explain in detail about namespaces and recursive procedures in TCL.

10 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Write Tk script to create a login form.

5 marks

Answer

Sign in to view the complete answer paper.

b

How are events handled in Tk?

5 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 B.Tech CSE III Year II Semester, February - 2023, R18.

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