How To Exam?

a knowledge trading engine...


Jawaharlal Nehru Technological University Hyderabad 2010-5th Sem M.C.A Iester Regular s PERL PROGRAMMING - Question Paper

Tuesday, 02 July 2013 02:05Web

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
M.C.A IV Semester Regular exams July 2010
PERL PROGRAMMING
Time: 3hours Max.Marks:60
ans any 5 ques.
All ques. carry equal marks
- - -
1. a) Differentiate ranging from the subsequent control statements of Perl.
i) If and unless
ii) While and until
iii) Next and last
b) What is the output of the subsequent Perl program segment?
$a=567;
$b=123;
$c=3;
print $a + $b;
print $a. $b;
print $a x $c;
print "$a is not equal to $b"
print $a <=> $b;
print '$a is not equal to $b'
2. a) How do you activate Perl debugger? What does it do?
b) List and discuss any 6 Perl debugger commands.
3. List out the categories of Perl functions and write any 2 functions for every
category.
4. a) List the rules of regular expression matching of Perl
b) Write Perl statements using regular expressions for the following:
i) Matches any of these words in the string: cat , rat, mat
ii) Matches the date format dd -mm- yyyy
iii) Count the number of times the word "the" occurs in the provided text.
iv) Occurrence of digit five for three or more times
v) Substitute lower case with upper case
vi) Splitting snippet into phrases
5. Write a Perl subroutine that takes a text string as input parameter and returns the
frequency of occurrences of different words in the text as a hash.
6. a) What is a reference? Where do you use references?
b) Write a Perl program that reads a file containing city and country as records
and creates a hash of arrays containing countries as key and cities as values. For
example for the input {Delhi: India, Hyderabad: India, New York: USA, Chicago:
USA}, the program is needed to create hash table {India: [Delhi, Hyderabad],
USA: [New York, Chicago]}
7. Create a CGI form that inputs user name and outputs Hello followed by username.
8. a)What is a cookie? Write 1 application using cookies.
b) Write CGI script for uploading the opted file.



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Jawaharlal Nehru Technological University Hyderabad 2010-5th Sem M.C.A Iester Regular s PERL PROGRAMMING - Question Paper