Scripts_Markup Code Interview Questions
Questions Answers Views Company eMail

How to write a reusable function for testing an "Button" Objects in a page without passing the page name to a function? (Think if page names are dynamic and doesn't have any pattern matching between each page). Send me code which works in QTP 9.2.....

Infosys,

2 4877

The sum of three numbers is 20. The second number is 4 times the first number , and the sum of the first and third is8. Find the numbers.

7 10149

could you please tell me for what javac, javax,swing,awt.*; are using. what is the meaning and differences. and also there are 4 access modifiers in java. public, private, protected, default. what is the meaning of these 4 access modifiers and difference. public is the access modifier void means return data type disp() means function name what mean by static

Infosys,

1 4574

If basic HR function like recruitment, training are outsoureced then, why do companies have their own HR department?

Wellspring,

3 6714

Hi I have a dynamic dropdown reading in data from a MQSql database, I need to refresh just the dropdown (not the whole page) for any new values in the database. I am trying to use the getElementById in javascript but I have no idea how to get it to refresh. Does any one have an examples or any ideas how this can be done? Regards Srilanka_3

4 5725

1)how i get the current system time using php?

22 75551

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space:

TCS,

2 7464

Pls provide basic funtionality Winrunner scripts for Health care domain and Phishing

HCL,

1150

How can a procedure fetch data from FTP? I need a general code for this..

Infosys,

1361

How to write QTP script to exit from loop? suppose I am using parametize functionality and in data table there is 3 password corresponding 3 username and second pasword is wrong. Now I want to exit after completion of second iteration and continue with third iteration.

2 7810

how to write a program to accept names and marks of 10 students from the user and display the names and markes of only the passed students. Marks greater than or equal to 35 is considered as pass.

4 9425

can we pass variable in array to traverse it?

1936

program that will accept any name and will be stored in an array

2 3950

I have a doubt regarding including tags in a function. I have written a function in javascript in a html page. The function got called by clicking a button, i want to display the results in same html page by placing tags in the function. (this hmtl page is static page) Is this possible? example:


function to combine two or more arrays

1689


can everyone explain this code Private Sub DrawRect(rectSource As RECT, lngColour As Long) Line (rectSource.Left, rectSource.Top)-(rectSource.Left, rectSource.Bottom), lngColour Line (rectSource.Left, rectSource.Top)- (rectSource.Right, rectSource.Top), lngColour Line (rectSource.Right, rectSource.Bottom)- (rectSource.Right, rectSource.Top), lngColour Line (rectSource.Right, rectSource.Bottom)- (rectSource.Left, rectSource.Bottom), lngColour End Sub

2248


Write a python program to find the second largest number in a list?

469


What is XML Parser?

442


I have a doubt regarding including tags in a function. I have written a function in javascript in a html page. The function got called by clicking a button, i want to display the results in same html page by placing tags in the function. (this hmtl page is static page) Is this possible? example: