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 4854

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 10122

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 4568

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

Wellspring,

3 6689

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 5699

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

22 75472

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

TCS,

2 7446

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 7789

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 9399

can we pass variable in array to traverse it?

1928

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

2 3932

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:


How to call JavaScript Function from Code-behind in asp.net?

657


function to combine two or more arrays

1681


sample code to auto focusing the first field in a form

2016


What is an XML Schema?

369


code to create a new window

1736


Write a function that takes an integer and returns the smallest number that is greater than the given number which is a palendrome. For example, if the input was 111 the next palindromic number would be 121.

1386


Given a string=”me,I,myself”; .Using javascript only create an array out of this string and then send a POST request to the url “record.php” without reloading the page. The post key parameters should be n1,n2 and n3 respectively.

2342


What is XSNL?

339


how to convert between arrays and strings

2090


Write a python program to count the number of vowels in a string?

478