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 3264

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?

1778

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

1 3898

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 ?

2498

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 3292

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 3175

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,

2270

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

1840

how show video in own page.

1330

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

Wipro,

2 6506

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?

1553

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 7546

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.

1574

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 7683

accessdenied javanet disconnet

Reliance,

1580


Un-Answered Questions { Scripts }

What are global variables in node.js?

253


What is lazy loading images?

421


What is difference between jsp and javascript?

485


What is the difference between let and var?

557


Define garbage collection?

537






Does angular js depends on jquery library?

438


What is the difference between undefined and not defined in JavaScript?

526


What is data binding in angularjs and what is the difference between one-way and two-way binding?

441


How to create a package?

527


How can javascript language be separated from objects?

544


How node.js works?

255


Explain how can you submit a form using JavaScript?

494


How do you turn on the perl warnings?

501


What is binding in java?

398


What is repl? What purpose it is used for?

235