1.
Which of the following conditions can cause QTP smart identification to fail:

  1. Smart identification is not supported by element

  2. More than one method matches the learned description

  3. No object matches learned description

  4. Multiple objects matches the learned description

  5. None of the methods matches the learned description


  6.  
2.
In QTP, which of these are ways to share the values from one action with other actions:

  1. Storing values from one action in the global data table and use these values as data table parameters in other actions.

  2. Set a value from one action as user-defined environment variable and use environment variable in other actions.

  3. Add a value to a dictionaries object in one action and retrieve the values in other actions.


  4.  
3.
After the following program is executed, what is the value of z?
Sub MyTest(ByVal MyTest1)
MyTest1 = 100
End Sub
Dim z
z=111
MyTest z
4.
What will be the value of counter after the execution of the following QTP code :
Dim Counter
Counter=10
While Counter<10
Counter=Counter-1
Wend
msgbox Counter
5.
Which CSS selector is a valid statement to select Opera in the following code:  
<ul>
    <li>Firefox</li>
    <li>Google Chrome</li>
    <li>Internet Explorer</li>
    <li>Opera</li>
    <li>Safari</li>
    </ul>
6.
You test the following procedure with WebDriver:

  1. Launch the web browser and open "gmail.com"

  2. Enter a valid username

  3. Enter a valid password

  4. Click on the sign in button

  5. Wait for the Compose button to be visible after the page loads


  6.  
Which of the following types of wait will you use in your script to get the test result Pass?
7.
Which of the following will find the location of b in the given code:  
<Button>a</button>
    <Button>b</button>
    <Button>c</button>
8.
Arrange the following testng.xml tags in ascending order (parent to child):
1. test
2. suite
3. class
4. methods
5. classes
9.
What is the output of the following Selenium code:
@Test()
public void dividedByZeroExample1(){
int e = 5/0;
}