Scripts Interview Questions
Questions Answers Views Company eMail

my @array=('data1','data2'); my @array1=('data1','data2'); my ($i,$k); $i=7; $k=7; while($i){ $array [++$#array] = 'ree'; $i--; print "@array"; } while($k){ push(@array1,'ree'); $k--; print "@array1"; } Are these two while loop are doing the same functionality ? What may be the difference?

A1 Technology,

1 3254

I have installed QTP version 9.0. I have installed Mozilla firefox version 2.0. But QTP "Record and Run settings" in WEB tab shows FIREFOX 1.5 in drop down to run session begins. So QTP does not record anything which I type in firefox. How can i recognise firefox 2.0 and how can i update browser version in QTP?

1774

What is the difference between $array[1] and @array[1]?

1 3889

How can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?

2495

my @array=('data1','data2'); my @array1=('data1','data2'); my ($i,$k); $i=7; $k=7; while($i){ $array [++$#array] = 'ree'; $i--; print "@array"; } while($k){ push(@array1,'ree'); $k--; print "@array1"; } Are these two while loop are doing the same functionality ? What may be the difference?

2 3283

Consider the following example #! /bin/perl use strict; sub sample { my @arr=(1,2,3,4); return @arr; } my ($a,$b,$c,$d) = &sample; print "$a\n$b\n$c\n$d\n"; In the above code, How can I get the $c without using the arguments such as $a,$b. I don't want to use any array to get the return values.

2 3164

package MYCALC; use Exporter; our @EXPORT = (); our @ISA = qw(Exporter); our @EXPORT_OK = qw(addition multi); our %EXPORT_TAGS = (DEFAULT => [qw(&addition)],Both => [qw(&addition & +multi)]); sub addition { return $_[0] + $_[1]; } sub multi { return $_[0] * $_[1]; } 1; Program: use strict; use warnings; my @list = qw (2 2); use Module qw(:DEFAULT); print addition(@list),"\n"; Above coding is my module MYCALC and the program which using this module, I have not exported any function using @EXPORT, but I have used the DEFAULT in %EXPORT_TAGS with the function addition, when I call this function from the main it says the error as,

2265

I Am Planning to Write ISTQB foundation level Ceritification of inida. can Any Body let me know how to prepare for it & Any Study material can you provide or Any other E-books i should need to Study. Please Mail to me ajaybe_2004@yahoo.co.in THnaks in advance Ajay

1834

how show video in own page.

1326

What is the difference between AJAX using .net over AJAX using Java?

Wipro,

2 6483

I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?

1544

Write a shell script in Linux to shift all characters in a file forward by five characters. (Thus “a” becomes “f’”).

Ignou, Tripura Info,

2 7525

Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.

1568

1)Declare array with five elements a[]={8,4,6,2,1,10} Print minimum and maximum no from array. 2)Accept values from Textbox and add into Listbox on click ok button. 2)Accept these values store them in cookie collection and show them in next form. Assignment 3 20Marks 1) Display EmpId ,EmpName ,EmpSal usind datagrid view (use sqlerver 2005) 2) Insert Item Id, Item Name, Qty, Rate using ado.net(use sqlerver 2005)

5 7650

accessdenied javanet disconnet

Reliance,

1576


Un-Answered Questions { Scripts }

How long does it take to learn javascript?

492


In what cases would you use a class component over a functional component?

168


What is the purpose of “_file_ literal” and “_line_ literal” in perl?

535


How do you share data between controllers?

424


How can we detect os of the client machine using javascript?

530






What is the difference between "#" and "." selector in JQuery?

479


How we can remove an attribute of an html tag in jquery?

437


What is the role of scriptmanager in ajax?

509


How ajax is different?

526


How does el search for an attribute?

510


How will you close a file using node?

263


What are the steps involved in configuring a server using cgi programming?

481


Why are browsers unable to read jsx?

175


What is singleton pattern? How does angular use it?

446


What are different types of inheritence? Which inheritance is followed in javascript.

437