X=10,Y=20 you need to swap the numbers without using a
third variable?

Answer Posted / test

Dim a,b
a=10
b=20
a = a + b
b = a - b
a = a - b
Msgbox a
msgbox b

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does QTP record on Objects created on XWindows Environment?

1765


I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian

1666


Explain qtp(quick test professional)?

659


How to handle Java tree in QTP?

856


Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?

1585






How many types of Automation frameworks are there in UFT? Describe them.

641


How to handle dynamic objects in quicktest professional?

589


What is checkpoint in qtp?

648


Which functionalities of QTP used in banking project? pls any say answer?

1529


Explain process of smart Identification in QTP?

685


What are the check points can be inserted without recording?

693


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

1786


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

1992


What are the Test design techniques you uses in ur project?

1576


What is 'sleep' in sync point?

713